Tweak whitespace in iteratorTemplate.

Former-commit-id: 2f9fdbd72d316a1668d34fa95a3f1ecb325d625b
This commit is contained in:
John-David Dalton
2013-05-07 23:31:29 -07:00
parent 1dfebad790
commit e1c8e95e11

View File

@@ -512,10 +512,10 @@
// exit early if the first argument is falsey // exit early if the first argument is falsey
'if (!iterable) return result;\n' + 'if (!iterable) return result;\n' +
// add code before the iteration branches // add code before the iteration branches
'<%= top %>;\n' + '<%= top %>;' +
// array-like iteration: // array-like iteration:
'<% if (arrays) { %>' + '<% if (arrays) { %>\n' +
'var length = iterable.length; index = -1;\n' + 'var length = iterable.length; index = -1;\n' +
'if (<%= arrays %>) {' + 'if (<%= arrays %>) {' +
@@ -535,7 +535,7 @@
// object iteration: // object iteration:
// add support for iterating over `arguments` objects if needed // add support for iterating over `arguments` objects if needed
' <% } else if (support.nonEnumArgs) { %>\n' + ' <% } else if (support.nonEnumArgs) { %>\n' +
' var length = iterable.length; index = -1;\n' + ' var length = iterable.length; index = -1;\n' +
' if (length && isArguments(iterable)) {\n' + ' if (length && isArguments(iterable)) {\n' +
' while (++index < length) {\n' + ' while (++index < length) {\n' +