]> source.dussan.org Git - jquery.git/commitdiff
No ticket: Reduce size by reordering variable declarations. Close gh-1416.
authorChris Antaki <ChrisAntaki@gmail.com>
Sat, 2 Nov 2013 08:38:37 +0000 (01:38 -0700)
committerRichard Gibson <richard.gibson@gmail.com>
Tue, 5 Nov 2013 22:16:38 +0000 (17:16 -0500)
src/manipulation.js

index 73886429322bea1db52f69e635f86e511a29de60..ff7a0d51a4ebf67ad623bea3b92d97a735393886 100644 (file)
@@ -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 ];