Better Underscore isType checking, in the presence of Internet Explorer host objects, which are a bit touchy.

This commit is contained in:
Jeremy Ashkenas
2010-12-01 10:25:55 -05:00
parent 00237103fc
commit 6b8bb0cacd
3 changed files with 24 additions and 11 deletions

View File

@@ -76,7 +76,7 @@ $(document).ready(function() {
setTimeout(throttledIncr, 70);
setTimeout(throttledIncr, 110);
setTimeout(throttledIncr, 120);
_.delay(function(){ ok(counter == 3, "incr was throttled"); start(); }, 180);
_.delay(function(){ ok(counter == 3, "incr was throttled"); start(); }, 200);
});
asyncTest("functions: debounce", 1, function() {