Cleanup comment blocks explaining old browser bugs.

Former-commit-id: e420cc9237565da01f60ed204fb6767bbe2cb9b4
This commit is contained in:
John-David Dalton
2013-02-01 01:36:16 -08:00
parent f2dc490d6f
commit c1eff5aebb
2 changed files with 109 additions and 116 deletions

View File

@@ -133,9 +133,7 @@
* Firefox < 3.6, Opera > 9.50 - Opera < 11.60, and Safari < 5.1
* (if the prototype or a property on the prototype has been set)
* incorrectly sets a function's `prototype` property [[Enumerable]]
* value to `true`. Because of this Lo-Dash standardizes on skipping
* the the `prototype` property of functions regardless of its
* [[Enumerable]] value.
* value to `true`.
*/
var hasEnumPrototype;
@@ -392,12 +390,7 @@
' } else {' +
' <% } %>' +
// Firefox < 3.6, Opera > 9.50 - Opera < 11.60, and Safari < 5.1
// (if the prototype or a property on the prototype has been set)
// incorrectly sets a function's `prototype` property [[Enumerable]]
// value to `true`. Because of this Lo-Dash standardizes on skipping
// the the `prototype` property of functions regardless of its
// [[Enumerable]] value.
// avoid iterating over `prototype` properties in older Firefox, Opera, and Safari
' <% if (hasEnumPrototype) { %>\n' +
" var skipProto = typeof iterable == 'function' && \n" +
" propertyIsEnumerable.call(iterable, 'prototype');\n" +