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

Support through Ember 2.4 #22

Merged
merged 1 commit into from
May 25, 2016
Merged

Support through Ember 2.4 #22

merged 1 commit into from
May 25, 2016

Conversation

Dhaulagiri
Copy link

Ember internals keep moving the goalposts for us with Rest Model.

The latest incarnation is an error Ember.Object.create no longer supports defining methods that call _super. This check has existed for the past many ember versions, but is a problem in >= Ember 2.1 because of (I think) this change. I was able to get around this by refactoring the MutatingArray mixin to just be a function we can call from inside the main rest model object instead of using .apply to consume it which avoided issues polluting _super. While this works, I'm not 100% convinced that there isn't a better, more permanent solution.

@@ -988,7 +999,8 @@ module.exports = Ember.Object.extend({
prop[key] = val;
}
});
return this.extend(cp)._super.call(this, prop);
this.extend(cp);
return this._super.call(this, prop);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can no longer chain things like we were doing before

@jmar910
Copy link

jmar910 commented May 25, 2016

👍 Realize i reviewed this earlier but never 👍 it

@Dhaulagiri Dhaulagiri merged commit 46bded1 into master May 25, 2016
@Dhaulagiri Dhaulagiri deleted the ember-2.1 branch May 25, 2016 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants