From e88dfb734a64aad4dbd402642816781b0e1725ec Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Sat, 12 Nov 2011 15:23:30 -0800 Subject: refactor(injector): $injector is no longer a function. - $injector('abc') -> $injector.get('abc'); - $injector(fn) -> $injector.invoke(null, fn); --- test/markupSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/markupSpec.js') diff --git a/test/markupSpec.js b/test/markupSpec.js index 8f68ee82..6b6ba664 100644 --- a/test/markupSpec.js +++ b/test/markupSpec.js @@ -150,7 +150,7 @@ describe("markups", function() { it('should bind Text with no Bindings', inject(function($compile) { var $rootScope; function newScope (){ - return $rootScope = angular.injector('ng')('$rootScope'); + return $rootScope = angular.injector('ng').get('$rootScope'); } forEach(['checked', 'disabled', 'multiple', 'readonly', 'selected'], function(name) { var element = $compile('
')(newScope()) -- cgit v1.2.3