Commit bc70e0c7 authored by Oleg's avatar Oleg

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

parent f07e6758
...@@ -264,7 +264,7 @@ jQuery.fn.extend({ ...@@ -264,7 +264,7 @@ jQuery.fn.extend({
return this.each(function( index ) { return this.each(function( index ) {
var self = set.eq( index ); var self = set.eq( index );
if ( isFunction ) { 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 ); self.domManip( args, table, callback );
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment