diff options
| author | Misko Hevery | 2010-12-08 16:52:08 -0800 |
|---|---|---|
| committer | Igor Minar | 2011-01-04 16:40:40 -0800 |
| commit | d0270d92568e1b7c762b42a0ee0712b65d9acc5c (patch) | |
| tree | 2a0f0680e6f9713c8c7a2c01d50e7a97d8b01d11 /src/services.js | |
| parent | 5f080193cbc0d84676cf267adcdc6307fb601610 (diff) | |
| download | angular.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 'src/services.js')
| -rw-r--r-- | src/services.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/services.js b/src/services.js index 36c43564..5356d612 100644 --- a/src/services.js +++ b/src/services.js @@ -295,7 +295,7 @@ angularServiceInject("$location", function(browser) { return h; } -}, ['$browser'], EAGER_PUBLISHED); +}, ['$browser']); /** @@ -678,7 +678,7 @@ angularServiceInject('$route', function(location) { } this.$watch(function(){return dirty + location.hash;}, updateRoute); return $route; -}, ['$location'], EAGER_PUBLISHED); +}, ['$location']); /** * @workInProgress @@ -1124,7 +1124,7 @@ angularServiceInject('$cookies', function($browser) { } } } -}, ['$browser'], EAGER_PUBLISHED); +}, ['$browser']); /** * @workInProgress |
