Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap lines in update function #4

Open
davedupplaw opened this issue May 27, 2017 · 0 comments
Open

Swap lines in update function #4

davedupplaw opened this issue May 27, 2017 · 0 comments
Assignees
Labels

Comments

@davedupplaw
Copy link
Owner

davedupplaw commented May 27, 2017

From website comment:

Just to tell you that on function _update you should switch the lines inside step function like this.

_update: function() {
var self = this;
var valueProperty = {val: this.currentValue};
$(valueProperty).animate( {val: this.valueToAttain}, {
duration: this.options.animationSpeed,
step: function() {
self.currentValue = this.val;
self._updateViewToValue(this.val);
}
} );
},

Need to look into whether this is correct.

@davedupplaw davedupplaw self-assigned this May 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant