diff options
author | John Resig <jeresig@gmail.com> | 2006-06-23 14:11:39 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2006-06-23 14:11:39 +0000 |
commit | eced62567a992b4696617b555db76e4e755a26ae (patch) | |
tree | ea41076058b584ba484b2f7318763dc198840933 | |
parent | 2d9979c73fad6f9aa6e78054dedb0e4aa78ec551 (diff) | |
download | jquery-eced62567a992b4696617b555db76e4e755a26ae.tar.gz jquery-eced62567a992b4696617b555db76e4e755a26ae.zip |
Forgot to change $.apply() to fn.apply().
-rw-r--r-- | event/event.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/event/event.js b/event/event.js index 4bef51404..492ddada1 100644 --- a/event/event.js +++ b/event/event.js @@ -16,7 +16,7 @@ jQuery.prototype.toggle = function(a,b) { e.preventDefault(); // 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 @@ -38,7 +38,7 @@ jQuery.prototype.hover = function(f,g) { if ( p == this ) return false; // Execute the right function - return (e.type == "mouseover" ? f : g).apply(this,[e]); + return (e.type == "mouseover" ? f : g).apply(this, [e]); } // Bind the function to the two event listeners @@ -52,7 +52,7 @@ jQuery.prototype.ready = function(f) { // If the DOM is already ready if ( jQuery.isReady ) // Execute the function immediately - jQuery.apply( document, f ); + f.apply( document ); // Otherwise, remember the function for later else { @@ -100,7 +100,7 @@ jQuery.prototype.ready = function(f) { this[o+f]++; // 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 ) { // Execute all of them 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 jQuery.readyList = null; |