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

Ember 2.18 throws error on debounce #38

Open
manuel-reil opened this issue Jan 12, 2018 · 0 comments
Open

Ember 2.18 throws error on debounce #38

manuel-reil opened this issue Jan 12, 2018 · 0 comments

Comments

@manuel-reil
Copy link

On Ember 2.18 we get the error of method.apply is not a function in backburner when changing values in the slider (see screenshot attached).

In line 76 of addon/components/ui-slider.js, the debounce call needs to be extended by a self as first parameter:

Current version:
Ember.run.debounce(() => {
self.set('value', evt.value);
},30);

Corrected version:
Ember.run.debounce(self, () => {
self.set('value', evt.value);
},30);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant