mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Cleanup iteratorTemplate code comments. [ci skip]
This commit is contained in:
10
lodash.js
10
lodash.js
@@ -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" +
|
||||||
|
|||||||
Reference in New Issue
Block a user