Check typeof length instead of instanceof

This commit is contained in:
Jimmy Yuen Ho Wong
2014-03-04 23:27:08 +08:00
committed by Adam Krebs
parent fca75fb6bd
commit 6cef2f12e5

View File

@@ -29,7 +29,7 @@
var result = view.$('a b');
strictEqual(result[0].innerHTML, 'test');
ok(result instanceof NodeList || result instanceof Array || result instanceof Backbone.$);
ok(result.length === +result.length);
});
test("_setEl", 2, function() {