diff options
author | Oleg <markelog@gmail.com> | 2012-12-20 02:45:22 +0400 |
---|---|---|
committer | Oleg <markelog@gmail.com> | 2012-12-24 03:04:18 +0400 |
commit | bc70e0c718e3c517e4551dddffd31663b53337b7 (patch) | |
tree | 99d71377f71f74b586dd06ce1188ea5d008f5061 /src | |
parent | f07e6758ae42f8f73251be9b434aedfa4c42ec85 (diff) | |
download | jquery-bc70e0c718e3c517e4551dddffd31663b53337b7.tar.gz jquery-bc70e0c718e3c517e4551dddffd31663b53337b7.zip |
Speed up iteration in jQuery#domManip if it called with function inside first argument
Diffstat (limited to 'src')
-rw-r--r-- | src/manipulation.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index af2d8b8a6..aff90bd4a 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -264,7 +264,7 @@ jQuery.fn.extend({ return this.each(function( index ) { var self = set.eq( index ); if ( isFunction ) { - args[0] = value.call( this, index, table ? self.html() : undefined ); + args[ 0 ] = value.call( this, index, table ? self.html() : undefined ); } self.domManip( args, table, callback ); }); |