diff options
author | John Resig <jeresig@gmail.com> | 2007-08-20 07:08:01 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-08-20 07:08:01 +0000 |
commit | bd78d4f65dea2fc5fbfd58a0f099f8839ee9707d (patch) | |
tree | 4b9f09d538ab74c54dfd49f51985e6cfefd1b1b0 /src/jquery/jquery.js | |
parent | 05fb8eaa1058578f911ab5d0d4436e97010f4cc7 (diff) | |
download | jquery-bd78d4f65dea2fc5fbfd58a0f099f8839ee9707d.tar.gz jquery-bd78d4f65dea2fc5fbfd58a0f099f8839ee9707d.zip |
Fixed two cases where []. was used instead of Array.prototype. (Bug #1427)
Diffstat (limited to 'src/jquery/jquery.js')
-rw-r--r-- | src/jquery/jquery.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 76b08edf0..797280e07 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -301,7 +301,7 @@ jQuery.fn = jQuery.prototype = { */ setArray: function( a ) { this.length = 0; - [].push.apply( this, a ); + Array.prototype.push.apply( this, a ); return this; }, |