]> source.dussan.org Git - jquery.git/commitdiff
Speed up iteration in jQuery#domManip if it called with function inside first argument
authorOleg <markelog@gmail.com>
Wed, 19 Dec 2012 22:45:22 +0000 (02:45 +0400)
committerOleg <markelog@gmail.com>
Sun, 23 Dec 2012 23:04:18 +0000 (03:04 +0400)
src/manipulation.js

index af2d8b8a61d1206a68778b31cdd365b0d4dfdc12..aff90bd4afc0780a67b5c0ec699aad1c8965ee37 100644 (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 );
                        });