Forgot to change $.apply() to fn.apply().
This commit is contained in:
parent
2d9979c73f
commit
eced62567a
|
@ -16,7 +16,7 @@ jQuery.prototype.toggle = function(a,b) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
// and execute the function
|
// and execute the function
|
||||||
return jQuery.apply( this, this.last, [e] ) || false;
|
return this.last.apply( this, [e] ) || false;
|
||||||
}) :
|
}) :
|
||||||
|
|
||||||
// Otherwise, execute the old toggle function
|
// Otherwise, execute the old toggle function
|
||||||
|
@ -52,7 +52,7 @@ jQuery.prototype.ready = function(f) {
|
||||||
// If the DOM is already ready
|
// If the DOM is already ready
|
||||||
if ( jQuery.isReady )
|
if ( jQuery.isReady )
|
||||||
// Execute the function immediately
|
// Execute the function immediately
|
||||||
jQuery.apply( document, f );
|
f.apply( document );
|
||||||
|
|
||||||
// Otherwise, remember the function for later
|
// Otherwise, remember the function for later
|
||||||
else {
|
else {
|
||||||
|
@ -100,7 +100,7 @@ jQuery.prototype.ready = function(f) {
|
||||||
this[o+f]++;
|
this[o+f]++;
|
||||||
|
|
||||||
// And execute the bound function
|
// And execute the bound function
|
||||||
return jQuery.apply(this,f,[e]);
|
return f.apply(this, [e]);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ jQuery.prototype.ready = function(f) {
|
||||||
if ( jQuery.readyList ) {
|
if ( jQuery.readyList ) {
|
||||||
// Execute all of them
|
// Execute all of them
|
||||||
for ( var i = 0; i < jQuery.readyList.length; i++ )
|
for ( var i = 0; i < jQuery.readyList.length; i++ )
|
||||||
jQuery.apply( document, jQuery.readyList[i] );
|
jQuery.readyList[i].apply( document );
|
||||||
|
|
||||||
// Reset the list of functions
|
// Reset the list of functions
|
||||||
jQuery.readyList = null;
|
jQuery.readyList = null;
|
||||||
|
|
Loading…
Reference in a new issue