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

Mixin is incompatible with ember rc5 #1

Closed
riklaunim opened this issue Jun 19, 2013 · 2 comments
Closed

Mixin is incompatible with ember rc5 #1

riklaunim opened this issue Jun 19, 2013 · 2 comments

Comments

@riklaunim
Copy link

When trying to use the
{{#view Em.FacebookView type="login-button" data-size="xlarge" data-scope="email"}}Connect{{/view}}

I get

TypeError: view.transitionTo is not a function
view.transitionTo(state); // this is within ember

The mixin works if I downgrade to one or -pre releases I used in older projects. Quick debuging shows that transitionTo in ember.js gets objects as view variable from everything except the mixin (while mixin sends strings there).

@riklaunim
Copy link
Author

This shows up in ember rc3 (works in rc2).

Solution:

add:
attributeBindings: [],
to:
return Ember.FacebookView = Ember.View.extend({

@arafique
Copy link
Contributor

Thanks alot riklaunim. I wish I could have seen this post couple of days ago, I would have saved lots of time. It did solved the issue.

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

3 participants