mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-18 15:50:22 +00:00
20 lines
506 B
JavaScript
20 lines
506 B
JavaScript
'use strict';
|
|
|
|
var browserSingleton;
|
|
|
|
angularService('$browser', function($log, $sniffer) {
|
|
if (!browserSingleton) {
|
|
browserSingleton = new Browser(window, jqLite(window.document), jqLite(window.document.body),
|
|
XHR, $log, $sniffer);
|
|
}
|
|
return browserSingleton;
|
|
}, {$inject: ['$log', '$sniffer']});
|
|
|
|
|
|
publishExternalAPI(angular);
|
|
|
|
//try to bind to jquery now so that one can write angular.element().read()
|
|
//but we will rebind on bootstrap again.
|
|
bindJQuery();
|
|
|
|
|