mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Fix _.throttle test for system time of 0.
This commit is contained in:
@@ -22640,12 +22640,12 @@
|
|||||||
var lodash = _.runInContext({
|
var lodash = _.runInContext({
|
||||||
'Date': {
|
'Date': {
|
||||||
'now': function() {
|
'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++;
|
callCount++;
|
||||||
return value;
|
return value;
|
||||||
}, 32);
|
}, 32);
|
||||||
|
|||||||
Reference in New Issue
Block a user