From: Chris Antaki Date: Sat, 2 Nov 2013 08:38:37 +0000 (-0700) Subject: No ticket: Reduce size by reordering variable declarations. Close gh-1416. X-Git-Tag: 2.1.0-beta2~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cc19a6bd3b6183887b52a965e77234f4dd9684ca;p=jquery.git No ticket: Reduce size by reordering variable declarations. Close gh-1416. --- diff --git a/src/manipulation.js b/src/manipulation.js index 738864293..ff7a0d51a 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -76,8 +76,8 @@ function restoreScript( elem ) { // Mark scripts as having already been evaluated function setGlobalEval( elems, refElements ) { - var l = elems.length, - i = 0; + var i = 0, + l = elems.length; for ( ; i < l; i++ ) { data_priv.set( @@ -190,10 +190,10 @@ jQuery.extend({ buildFragment: function( elems, context, scripts, selection ) { var elem, tmp, tag, wrap, contains, j, - i = 0, - l = elems.length, fragment = context.createDocumentFragment(), - nodes = []; + nodes = [], + i = 0, + l = elems.length; for ( ; i < l; i++ ) { elem = elems[ i ];