Cleanup iteratorTemplate code comments. [ci skip]

This commit is contained in:
John-David Dalton
2013-12-15 23:15:19 -08:00
parent cf33853e68
commit 08047d4ab7

View File

@@ -917,7 +917,7 @@
"if (support.enumErrorProps) { conditions.push('!(skipErrorProps && (key == \\'message\\' || key == \\'name\\'))'); }" + "if (support.enumErrorProps) { conditions.push('!(skipErrorProps && (key == \\'message\\' || key == \\'name\\'))'); }" +
'%>\n' + '%>\n' +
// else using a for-in loop // iterate over the object
'for (var key in object) {\n<%' + 'for (var key in object) {\n<%' +
" if (useHas) { conditions.push('hasOwnProperty.call(object, key)'); }\n" + " if (useHas) { conditions.push('hasOwnProperty.call(object, key)'); }\n" +
" if (conditions.length) { %> if (<%= conditions.join(' && ') %>) {\n <% } %>" + " if (conditions.length) { %> if (<%= conditions.join(' && ') %>) {\n <% } %>" +
@@ -925,10 +925,10 @@
' <% if (conditions.length) { %>\n }<% } %>\n' + ' <% if (conditions.length) { %>\n }<% } %>\n' +
'}\n' + '}\n' +
// Because IE < 9 can't set the `[[Enumerable]]` attribute of an // Lo-Dash skips the `constructor` property when it infers it's iterating
// existing property and the `constructor` property of a prototype // over a `prototype` objecte bcause IE < 9 can't set the `[[Enumerable]]`
// defaults to non-enumerable, Lo-Dash skips the `constructor` // attribute of an existing property and the `constructor` property of a
// property when it infers it's iterating over a `prototype` object. // prototype defaults to non-enumerable.
'<% if (support.nonEnumShadows) { %>\n' + '<% if (support.nonEnumShadows) { %>\n' +
'if (object !== objectProto) {\n' + 'if (object !== objectProto) {\n' +
" var ctor = object.constructor,\n" + " var ctor = object.constructor,\n" +