aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorMisko Hevery2010-12-08 16:52:08 -0800
committerIgor Minar2011-01-04 16:40:40 -0800
commitd0270d92568e1b7c762b42a0ee0712b65d9acc5c (patch)
tree2a0f0680e6f9713c8c7a2c01d50e7a97d8b01d11 /example
parent5f080193cbc0d84676cf267adcdc6307fb601610 (diff)
downloadangular.js-d0270d92568e1b7c762b42a0ee0712b65d9acc5c.tar.bz2
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.
Diffstat (limited to 'example')
-rw-r--r--example/personalLog/test/personalLogSpec.js2
1 files changed, 2 insertions, 0 deletions
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);
}