diff --git a/src/v2/guide/transitioning-state.md b/src/v2/guide/transitioning-state.md index b78e8237c..7d00c82ec 100644 --- a/src/v2/guide/transitioning-state.md +++ b/src/v2/guide/transitioning-state.md @@ -445,8 +445,8 @@ Vue.component('animated-integer', { new TWEEN.Tween({ tweeningValue: startValue }) .to({ tweeningValue: endValue }, 500) - .onUpdate(function () { - vm.tweeningValue = this.tweeningValue.toFixed(0) + .onUpdate(function (object) { + vm.tweeningValue = object.tweeningValue.toFixed(0) }) .start()