Skip to content

Commit

Permalink
add: onRepeat+add update rate
Browse files Browse the repository at this point in the history
  • Loading branch information
suoluo committed Sep 4, 2018
1 parent aabc59f commit cc4bdf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tween.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ TWEEN.Tween.prototype = {
}

if (this._onUpdateCallback !== null) {
this._onUpdateCallback(this._object,elapsed);
this._onUpdateCallback(this._object, elapsed);
}

if (elapsed === 1) {
Expand Down Expand Up @@ -434,7 +434,7 @@ TWEEN.Tween.prototype = {
this._startTime = time + this._delayTime;
}

if (this._onRepeatCallback!=null) {
if (this._onRepeatCallback !== null) {
this._onRepeatCallback();
}

Expand Down

0 comments on commit cc4bdf8

Please sign in to comment.