aboutsummaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-04-01 09:57:56 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-04-01 09:57:56 +0200
commit70d25ae8e7a7dced6c2b908e687712bfd831ec55 (patch)
treeecee37488eb4a5b461cd07f1b446d4ceac32c71b /external
parenteccb95a8cdc539987712956824d947c2d37b2644 (diff)
downloadjquery-ui-70d25ae8e7a7dced6c2b908e687712bfd831ec55.tar.gz
jquery-ui-70d25ae8e7a7dced6c2b908e687712bfd831ec55.zip
Updating to latest QUnit
Diffstat (limited to 'external')
-rw-r--r--external/qunit.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/external/qunit.js b/external/qunit.js
index 0dd315530..9ef5f8d6f 100644
--- a/external/qunit.js
+++ b/external/qunit.js
@@ -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;
}