aboutsummaryrefslogtreecommitdiffstats
path: root/test/markupSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-12 15:23:30 -0800
committerMisko Hevery2011-11-14 20:31:19 -0800
commite88dfb734a64aad4dbd402642816781b0e1725ec (patch)
tree19fb3dde697d1dc3082be9550c76aa29a8c232a7 /test/markupSpec.js
parent8d6dc0b9a7b3dbff5f8edb3217b60b0cc5b66be4 (diff)
downloadangular.js-e88dfb734a64aad4dbd402642816781b0e1725ec.tar.bz2
refactor(injector): $injector is no longer a function.
- $injector('abc') -> $injector.get('abc'); - $injector(fn) -> $injector.invoke(null, fn);
Diffstat (limited to 'test/markupSpec.js')
-rw-r--r--test/markupSpec.js2
1 files changed, 1 insertions, 1 deletions
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('<div ng:' + name + '="some"></div>')(newScope())