Skip to content

Commit

Permalink
Use alias for Object.prototype.toString
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Oct 10, 2011
1 parent cf76f1a commit a99a1f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qunit/qunit.js
Expand Up @@ -1280,9 +1280,9 @@ QUnit.jsDump = (function() {
type = "document";
} else if (obj.nodeType) {
type = "node";
} else if (Object.prototype.toString.call( obj ) === "[object Array]") {
} else if (toString.call( obj ) === "[object Array]") {
type = "array";
} else if (Object.prototype.toString.call( obj ) === "[object NodeList]") {
} else if (toString.call( obj ) === "[object NodeList]") {
type = "array";
} else {
type = typeof obj;
Expand Down

0 comments on commit a99a1f9

Please sign in to comment.