mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Speed up iteration in jQuery#domManip if it called with function inside first argument
This commit is contained in:
parent
f07e6758ae
commit
bc70e0c718
@ -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 );
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user