From bc70e0c718e3c517e4551dddffd31663b53337b7 Mon Sep 17 00:00:00 2001 From: Oleg Date: Thu, 20 Dec 2012 02:45:22 +0400 Subject: [PATCH] Speed up iteration in jQuery#domManip if it called with function inside first argument --- src/manipulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); }); -- 2.39.5