blob: ea75e1230cc219a4b84f24e18f55b12f6b961551 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
(function ($) {
var ready = $.fn.ready;
$.fn.ready = function (fn) {
if (this.context === undefined) {
// The $().ready(fn) case.
ready(fn);
} else if (this.selector) {
ready($.proxy(function(){
$(this.selector, this.context).each(fn);
}, this));
} else {
ready($.proxy(function(){
$(this).each(fn);
}, this));
}
}
})(jQuery);
|