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:
John-David Dalton
2013-01-05 22:09:48 -08:00
parent 766d67d80d
commit 4e631c9e8f
3 changed files with 109 additions and 109 deletions

View File

@@ -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) { }
/**