mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Check typeof length instead of instanceof
This commit is contained in:
committed by
Adam Krebs
parent
fca75fb6bd
commit
6cef2f12e5
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user