aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2012-12-20 02:45:22 +0400
committerOleg <markelog@gmail.com>2012-12-24 03:04:18 +0400
commitbc70e0c718e3c517e4551dddffd31663b53337b7 (patch)
tree99d71377f71f74b586dd06ce1188ea5d008f5061 /src
parentf07e6758ae42f8f73251be9b434aedfa4c42ec85 (diff)
downloadjquery-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.js2
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 );
});