Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions jquery.readyselector.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
(function ($) {
(function(factory) {
if (typeof define === 'function' && define.amd) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use two spaces for indentation instead of tabs?

// AMD
define(['jquery'], factory);
} else {
// Browser globals
factory(jQuery);
}
}(function($) {
var ready = $.fn.ready;
$.fn.ready = function (fn) {
if (this.context === undefined) {
Expand All @@ -14,4 +22,4 @@
}, this));
}
}
})(jQuery);
}));