Merge pull request #12984 from Snuffleupagus/more-Date-now
Replace a few `new Date().getTime()` instances with `Date.now()`
This commit is contained in:
commit
069d5b1086
@ -40,7 +40,7 @@ const TestReporter = function (browser) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.now = function () {
|
this.now = function () {
|
||||||
return new Date().getTime();
|
return Date.now();
|
||||||
};
|
};
|
||||||
|
|
||||||
this.jasmineStarted = function (suiteInfo) {
|
this.jasmineStarted = function (suiteInfo) {
|
||||||
|
@ -102,7 +102,7 @@ class PDFPresentationMode {
|
|||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
|
||||||
const delta = normalizeWheelEventDelta(evt);
|
const delta = normalizeWheelEventDelta(evt);
|
||||||
const currentTime = new Date().getTime();
|
const currentTime = Date.now();
|
||||||
const storedTime = this.mouseScrollTimeStamp;
|
const storedTime = this.mouseScrollTimeStamp;
|
||||||
|
|
||||||
// If we've already switched page, avoid accidentally switching again.
|
// If we've already switched page, avoid accidentally switching again.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user