aboutsummaryrefslogtreecommitdiffstats
path: root/src/AngularPublic.js
diff options
context:
space:
mode:
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;