Speed up iteration in jQuery#domManip if it called with function inside first argument

This commit is contained in:
Oleg 2012-12-20 02:45:22 +04:00
parent f07e6758ae
commit bc70e0c718

View File

@ -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 );
});