mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Fixes #403
This commit is contained in:
@@ -112,10 +112,9 @@ $(document).ready(function() {
|
||||
throttledUpdate(1); throttledUpdate(2); throttledUpdate(3);
|
||||
setTimeout(function(){ throttledUpdate(4); }, 120);
|
||||
setTimeout(function(){ throttledUpdate(5); }, 140);
|
||||
setTimeout(function(){ throttledUpdate(6); }, 260);
|
||||
setTimeout(function(){ throttledUpdate(7); }, 270);
|
||||
_.delay(function(){ ok(value == 1, "updated to latest value"); }, 40);
|
||||
_.delay(function(){ ok(value == 7, "updated to latest value"); start(); }, 400);
|
||||
setTimeout(function(){ throttledUpdate(6); }, 250);
|
||||
_.delay(function(){ equals(value, 1, "updated to latest value"); }, 40);
|
||||
_.delay(function(){ equals(value, 6, "updated to latest value"); start(); }, 400);
|
||||
});
|
||||
|
||||
asyncTest("functions: throttle once", 1, function() {
|
||||
|
||||
Reference in New Issue
Block a user