From d0270d92568e1b7c762b42a0ee0712b65d9acc5c Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 8 Dec 2010 16:52:08 -0800 Subject: Remove many eager-publish services, lazy polling - Browser now starts the poller on first call to addPollFn() - Many services ($location, $cookies, $router) are no longer eager-publish. The result is that unless someone needs the $cookies, they will not cause the Browser to start polling for them. --- example/personalLog/test/personalLogSpec.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'example') diff --git a/example/personalLog/test/personalLogSpec.js b/example/personalLog/test/personalLogSpec.js index d3df1b64..8d8eef97 100644 --- a/example/personalLog/test/personalLogSpec.js +++ b/example/personalLog/test/personalLogSpec.js @@ -3,6 +3,8 @@ describe('example.personalLog.LogCtrl', function() { function createNotesCtrl() { var scope = angular.scope(); + var inject = scope.$inject; + scope.$cookies = inject('$cookies'); return scope.$new(example.personalLog.LogCtrl); } -- cgit v1.2.3