From: Oleg Date: Wed, 19 Dec 2012 22:45:22 +0000 (+0400) Subject: Speed up iteration in jQuery#domManip if it called with function inside first argument X-Git-Tag: 2.0.0b1~59^2~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bc70e0c718e3c517e4551dddffd31663b53337b7;p=jquery.git Speed up iteration in jQuery#domManip if it called with function inside first argument --- 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 ); });