Skip to content

Commit c601634

Browse files
committed
eliminate more slop
1 parent d1fe819 commit c601634

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎dist/tween.amd.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ define(['exports'], (function (exports) { 'use strict';
13861386
this._onStartCallbackFired = true;
13871387
}
13881388
var timelineLocal = time - this._startTime;
1389-
var effectiveLocal = !isFinite(this._duration) ? timelineLocal : Math.min(timelineLocal, this._duration);
1389+
var effectiveLocal = Math.min(timelineLocal, this._duration);
13901390
for (var _i = 0, _a = this._entries; _i < _a.length; _i++) {
13911391
var entry = _a[_i];
13921392
var child = entry.node;

‎dist/tween.cjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ var Timeline = /** @class */ (function () {
13881388
this._onStartCallbackFired = true;
13891389
}
13901390
var timelineLocal = time - this._startTime;
1391-
var effectiveLocal = !isFinite(this._duration) ? timelineLocal : Math.min(timelineLocal, this._duration);
1391+
var effectiveLocal = Math.min(timelineLocal, this._duration);
13921392
for (var _i = 0, _a = this._entries; _i < _a.length; _i++) {
13931393
var entry = _a[_i];
13941394
var child = entry.node;

‎dist/tween.esm.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ var Timeline = /** @class */ (function () {
13841384
this._onStartCallbackFired = true;
13851385
}
13861386
var timelineLocal = time - this._startTime;
1387-
var effectiveLocal = !isFinite(this._duration) ? timelineLocal : Math.min(timelineLocal, this._duration);
1387+
var effectiveLocal = Math.min(timelineLocal, this._duration);
13881388
for (var _i = 0, _a = this._entries; _i < _a.length; _i++) {
13891389
var entry = _a[_i];
13901390
var child = entry.node;

‎dist/tween.umd.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@
13901390
this._onStartCallbackFired = true;
13911391
}
13921392
var timelineLocal = time - this._startTime;
1393-
var effectiveLocal = !isFinite(this._duration) ? timelineLocal : Math.min(timelineLocal, this._duration);
1393+
var effectiveLocal = Math.min(timelineLocal, this._duration);
13941394
for (var _i = 0, _a = this._entries; _i < _a.length; _i++) {
13951395
var entry = _a[_i];
13961396
var child = entry.node;

‎src/Timeline.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ export class Timeline {
443443

444444
const timelineLocal = time - this._startTime
445445

446-
const effectiveLocal = !isFinite(this._duration) ? timelineLocal : Math.min(timelineLocal, this._duration)
446+
const effectiveLocal = Math.min(timelineLocal, this._duration)
447447

448448
for (const entry of this._entries) {
449449
const child = entry.node

0 commit comments

Comments
 (0)