From 16086aa37c5c0c98f5c4a42d2a15136bb6d18605 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 4 Jan 2011 17:54:37 -0800 Subject: $location service should utilize onhashchange events instead of polling --- src/AngularPublic.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/AngularPublic.js') 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; -- cgit v1.2.3