mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Updating to latest QUnit
This commit is contained in:
parent
eccb95a8cd
commit
70d25ae8e7
12
external/qunit.js
vendored
12
external/qunit.js
vendored
@ -953,16 +953,14 @@ QUnit.jsDump = (function() {
|
||||
type = "date";
|
||||
} else if (QUnit.is("Function", obj)) {
|
||||
type = "function";
|
||||
} else if (QUnit.is("Array", obj)) {
|
||||
type = "array";
|
||||
} else if (QUnit.is("Window", obj) || QUnit.is("global", obj)) {
|
||||
} else if (obj.setInterval && obj.document && !obj.nodeType) {
|
||||
type = "window";
|
||||
} else if (QUnit.is("HTMLDocument", obj)) {
|
||||
} else if (obj.nodeType === 9) {
|
||||
type = "document";
|
||||
} else if (QUnit.is("HTMLCollection", obj) || QUnit.is("NodeList", obj)) {
|
||||
type = "nodelist";
|
||||
} else if (/^\[object HTML/.test(Object.prototype.toString.call( obj ))) {
|
||||
} else if (obj.nodeType) {
|
||||
type = "node";
|
||||
} else if (typeof obj === "object" && typeof obj.length === "number" && obj.length >= 0) {
|
||||
type = "array";
|
||||
} else {
|
||||
type = typeof obj;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user