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

Fix isServiceFactory deprecation with Ember 1.13 #21

Conversation

iancanderson
Copy link

Since Ember 1.13, Ember expects that services either extend Ember.Service, or they should set isServiceFactory to true at the class level. Since the Cart service already extends ArrayProxy, this commit reopens the Cart service class to set isServiceFactory to true.

See emberjs/ember.js#11261

I noticed this from a deprecation warning in a 1.13.x ember app that depends on ember-cart.

Since Ember 1.13, Ember expects that services either extend
`Ember.Service`, or they must set `isServiceFactory` to `true` at the
class level. Since the Cart service already extends `ArrayProxy`, this
commit reopens the Cart service class to set `isServiceFactory` to
`true`.

See emberjs/ember.js#11261
@DockYard DockYard locked and limited conversation to collaborators Jan 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants