diff options
Diffstat (limited to 'src/Scope.js')
| -rw-r--r-- | src/Scope.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/Scope.js b/src/Scope.js index 1ab583e8..b2b8cdb4 100644 --- a/src/Scope.js +++ b/src/Scope.js @@ -472,7 +472,7 @@ function createScope(parent, providers, instanceCache) {          forEach(Class.prototype, function(fn, name){            instance[name] = bind(instance, fn);          }); -        instance.$service.apply(instance, concat([Class, instance], arguments, 1)); +        instance.$service.invoke(instance, Class, slice.call(arguments, 1, arguments.length));          //TODO: backwards compatibility hack, remove when we don't depend on init methods          if (isFunction(Class.prototype.init)) { @@ -525,7 +525,7 @@ function createScope(parent, providers, instanceCache) {       * @param {string} serviceId String ID of the service to return.       * @returns {*} Value, object or function returned by the service factory function if any.       */ -    (instance.$service = createInjector(instance, providers, instanceCache))(); +    instance.$service = createInjector(instance, providers, instanceCache);    }    $log = instance.$service('$log'); | 
