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 | |
parent | 05fb8eaa1058578f911ab5d0d4436e97010f4cc7 (diff) | |
download | jquery-bd78d4f65dea2fc5fbfd58a0f099f8839ee9707d.tar.gz jquery-bd78d4f65dea2fc5fbfd58a0f099f8839ee9707d.zip |
Fixed two cases where []. was used instead of Array.prototype. (Bug #1427)
-rw-r--r-- | src/event/event.js | 2 | ||||
-rw-r--r-- | src/jquery/jquery.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/event/event.js b/src/event/event.js index 59fff51da..cbad528f3 100644 --- a/src/event/event.js +++ b/src/event/event.js @@ -161,7 +161,7 @@ jQuery.event = { // Empty object is for triggered events with no data event = jQuery.event.fix( event || window.event || {} ); - var c = this.$events && this.$events[event.type], args = [].slice.call( arguments, 1 ); + var c = this.$events && this.$events[event.type], args = Array.prototype.slice.call( arguments, 1 ); args.unshift( event ); for ( var j in c ) { 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; }, |