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

this.refresh() unbinds Eventhandler #78

Closed
franklington opened this issue Aug 19, 2015 · 6 comments
Closed

this.refresh() unbinds Eventhandler #78

franklington opened this issue Aug 19, 2015 · 6 comments

Comments

@franklington
Copy link

I read following Issues #42 #47 #54 #56.
I need filter and search params in the request and my problem is, if I call this.refresh() in queryParamsDidChange() then i get the following error:

Uncaught TypeError: scrollable.height is not a function
_checkIfInView @ infinity-loader.js:48
...

This is my code in the Route:

  model: function(params){
    return this.infinityModel("product",params);
  },

  actions:{
    queryParamsDidChange:function(params){
      this.refresh();
    }
}
@ghost
Copy link

ghost commented Aug 19, 2015

Which version of ember-infinity are you using?

@ghost
Copy link

ghost commented Aug 19, 2015

Should be resolved if your using latest github with 'hhff/ember-infinity'.

How can I be sure? I fixed the error.

@hhff
Copy link
Collaborator

hhff commented Aug 19, 2015

hoping to have an npm release with the fix up soon - wanted to get the new ember data stuff in before the release

@franklington
Copy link
Author

I'm using the latest 0.0.13 and ember-cli 1.13.1.

@franklington
Copy link
Author

Thank you guys, it works with the new npm release 0.0.14 :)

@hhff
Copy link
Collaborator

hhff commented Aug 21, 2015

we GOT U dog @franklington

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

2 participants