mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Fix _.throttle test for system time of 0.
This commit is contained in:
@@ -22640,12 +22640,12 @@
|
||||
var lodash = _.runInContext({
|
||||
'Date': {
|
||||
'now': function() {
|
||||
return ++dateCount == 1 ? 0 : +new Date;
|
||||
return ++dateCount < 4 ? 0 : +new Date;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var throttled = _.throttle(function(value) {
|
||||
var throttled = lodash.throttle(function(value) {
|
||||
callCount++;
|
||||
return value;
|
||||
}, 32);
|
||||
|
||||
Reference in New Issue
Block a user