Skip to content

Commit cbaa79f

Browse files
atjasonJustineo
authored andcommitted
Update onUpdate callback. (#2002)
1 parent d196b9d commit cbaa79f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/guide/transitioning-state.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ Vue.component('animated-integer', {
426426

427427
new TWEEN.Tween({ tweeningValue: startValue })
428428
.to({ tweeningValue: endValue }, 500)
429-
.onUpdate(function (object) {
430-
vm.tweeningValue = object.tweeningValue.toFixed(0)
429+
.onUpdate(function () {
430+
vm.tweeningValue = this.tweeningValue.toFixed(0)
431431
})
432432
.start()
433433

0 commit comments

Comments
 (0)