aboutsummaryrefslogtreecommitdiffstats
path: root/src/AngularPublic.js
diff options
context:
space:
mode:
authorIgor Minar2011-01-04 17:54:37 -0800
committerIgor Minar2011-01-07 14:39:41 -0800
commit16086aa37c5c0c98f5c4a42d2a15136bb6d18605 (patch)
tree8b8e4b6b585e9d267588cb324745a3246bc5bc41 /src/AngularPublic.js
parentc0a26b18531482d493d544cf1a207586e8aacaf4 (diff)
downloadangular.js-16086aa37c5c0c98f5c4a42d2a15136bb6d18605.tar.bz2
$location service should utilize onhashchange events instead of polling
Diffstat (limited to 'src/AngularPublic.js')
-rw-r--r--src/AngularPublic.js9
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;