diff options
| author | Igor Minar | 2011-01-04 17:54:37 -0800 |
|---|---|---|
| committer | Igor Minar | 2011-01-07 14:39:41 -0800 |
| commit | 16086aa37c5c0c98f5c4a42d2a15136bb6d18605 (patch) | |
| tree | 8b8e4b6b585e9d267588cb324745a3246bc5bc41 /src/AngularPublic.js | |
| parent | c0a26b18531482d493d544cf1a207586e8aacaf4 (diff) | |
| download | angular.js-16086aa37c5c0c98f5c4a42d2a15136bb6d18605.tar.bz2 | |
$location service should utilize onhashchange events instead of polling
Diffstat (limited to 'src/AngularPublic.js')
| -rw-r--r-- | src/AngularPublic.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/AngularPublic.js b/src/AngularPublic.js index 38325404..ab37a772 100644 --- a/src/AngularPublic.js +++ b/src/AngularPublic.js @@ -10,13 +10,8 @@ var browserSingleton; */ angularService('$browser', function($log){ if (!browserSingleton) { - browserSingleton = new Browser( - window.location, - jqLite(window.document), - jqLite(window.document.getElementsByTagName('head')[0]), - XHR, - $log, - window.setTimeout); + browserSingleton = new Browser(window, jqLite(window.document), jqLite(window.document.body), + XHR, $log); var addPollFn = browserSingleton.addPollFn; browserSingleton.addPollFn = function(){ browserSingleton.addPollFn = addPollFn; |
