mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Flip noNodeClass check to avoid breaking when Firebug's "break on all errors" option is enabled. [closes #85]
Former-commit-id: f98c3af700279cb688c5df6c696b141bf626e26b
This commit is contained in:
@@ -177,10 +177,10 @@
|
||||
/**
|
||||
* Detect if a node's [[Class]] is unresolvable (IE < 9)
|
||||
* and that the JS engine won't error when attempting to coerce an object to
|
||||
* a string without a `toString` property value of `typeof` "function".
|
||||
* a string without a `toString` function.
|
||||
*/
|
||||
try {
|
||||
var noNodeClass = ({ 'toString': 0 } + '', toString.call(document) == objectClass);
|
||||
var noNodeClass = toString.call(document) == objectClass && !({ 'toString': 0 } + '');
|
||||
} catch(e) { }
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user