From cc19a6bd3b6183887b52a965e77234f4dd9684ca Mon Sep 17 00:00:00 2001 From: Chris Antaki Date: Sat, 2 Nov 2013 01:38:37 -0700 Subject: [PATCH] No ticket: Reduce size by reordering variable declarations. Close gh-1416. --- src/manipulation.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ]; -- 2.39.5