aboutsummaryrefslogtreecommitdiffstats
path: root/src/AngularPublic.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/AngularPublic.js')
-rw-r--r--src/AngularPublic.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/AngularPublic.js b/src/AngularPublic.js
index 470eb258..176d6a91 100644
--- a/src/AngularPublic.js
+++ b/src/AngularPublic.js
@@ -1,17 +1,9 @@
var browserSingleton;
angularService('$browser', function browserFactory(){
if (!browserSingleton) {
- var XHR = XMLHttpRequest;
- if (isUndefined(XHR)) {
- XHR = function () {
- try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e1) {}
- try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch (e2) {}
- try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e3) {}
- throw new Error("This browser does not support XMLHttpRequest.");
- };
- }
- browserSingleton = new Browser(window.location, XHR);
+ browserSingleton = new Browser(window.location, window.document);
browserSingleton.startUrlWatcher();
+ browserSingleton.bind();
}
return browserSingleton;
});