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

[1.13.beta-2 Regression] services can no longer extend Ember.Object #11292

Closed
jakehow opened this issue May 27, 2015 · 6 comments
Closed

[1.13.beta-2 Regression] services can no longer extend Ember.Object #11292

jakehow opened this issue May 27, 2015 · 6 comments

Comments

@jakehow
Copy link

jakehow commented May 27, 2015

Our app has a session service defined in app/services/session.js by extending Ember.Object.

Our suite passes on v1.13.0-beta.1.

v1.13.0-beta.2 introduced a change that breaks this. We see the following error in our test suite: Assertion Failed: Expected service:session to resolve to an Ember.Service but instead it was (unknown mixin).

While breaking, fixing this in app is a trivial change to extending from Ember.Service instead.

@pixelhandler
Copy link
Contributor

@jakehow It makes sense to just use Ember.Service going forward. Ember.Service its an Ember.Object with a class property isServiceFactory: true, see https://github.com/emberjs/ember.js/blob/master/packages/ember-runtime/lib/system/service.js#L40-L46 and https://github.com/emberjs/ember.js/blob/master/packages/ember-runtime/lib/system/object.js#L19-L24

@stefanpenner
Copy link
Member

I believe this is a regression, I actually left a comment on the PR that introduced this. It should have been a deprecation/warning for a cycle

@stefanpenner
Copy link
Member

note I made: #11261 (comment)
but appears to have been addressed by: #11273

@jakehow can you confirm?

@rwjblue
Copy link
Member

rwjblue commented May 27, 2015

This was changed into a deprecation in #11273, which is included in the latest beta builds. I am going to close now, but will happily reopen if it is still an issue with current beta or canary builds.

@rwjblue rwjblue closed this as completed May 27, 2015
@jakehow
Copy link
Author

jakehow commented May 27, 2015

👍 working for me on master

@stefanpenner
Copy link
Member

@jakehow whoop, thanks for confirming.

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

4 participants