diff options
Diffstat (limited to 'src/AngularPublic.js')
| -rw-r--r-- | src/AngularPublic.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/AngularPublic.js b/src/AngularPublic.js index 40425b8d..617a7e2e 100644 --- a/src/AngularPublic.js +++ b/src/AngularPublic.js @@ -1,16 +1,17 @@ var browserSingleton; -angularService('$browser', function browserFactory(){ +angularService('$browser', function($log){ if (!browserSingleton) { browserSingleton = new Browser( window.location, jqLite(window.document), jqLite(window.document.getElementsByTagName('head')[0]), - XHR); + XHR, + $log); browserSingleton.startPoller(50, function(delay, fn){setTimeout(delay,fn);}); browserSingleton.bind(); } return browserSingleton; -}); +}, {inject:['$log']}); extend(angular, { 'element': jqLite, |
