Skip to content

Commit d8b4f09

Browse files
authored
Merge pull request #606 from tweenjs/remove-string-arg-from-start-method
remove support for string arguments to start and mark the argument as…
2 parents 07e3472 + 2733e64 commit d8b4f09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tween.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class Tween<T extends UnknownProps> {
7878
return this
7979
}
8080

81-
start(time?: number): this {
81+
start(time: number = now()): this {
8282
if (this._isPlaying) {
8383
return this
8484
}
@@ -108,7 +108,7 @@ export class Tween<T extends UnknownProps> {
108108

109109
this._isChainStopped = false
110110

111-
this._startTime = time !== undefined ? (typeof time === 'string' ? now() + parseFloat(time) : time) : now()
111+
this._startTime = time
112112
this._startTime += this._delayTime
113113

114114
this._setupProperties(this._object, this._valuesStart, this._valuesEnd, this._valuesStartRepeat)

0 commit comments

Comments
 (0)