diff --git a/addon/services/cart.js b/addon/services/cart.js index 11d9d9e..c3fb035 100644 --- a/addon/services/cart.js +++ b/addon/services/cart.js @@ -9,7 +9,7 @@ const { const get = Ember.get; -export default ArrayProxy.extend({ +const CartService = ArrayProxy.extend({ pushItem(item) { let cartItem; @@ -76,3 +76,9 @@ export default ArrayProxy.extend({ } })) }); + +CartService.reopenClass({ + isServiceFactory: true +}); + +export default CartService;