diff options
| author | Misko Hevery | 2010-04-05 20:53:33 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-04-05 20:53:33 -0700 | 
| commit | 2107eafcde390eebbf59e829194626c488de9e29 (patch) | |
| tree | 5cd3d2e0921384edde5014f6af36280eacdde637 /src/AngularPublic.js | |
| parent | 1c670b2a7c3f6153ea2e5047722f7151b9795b33 (diff) | |
| download | angular.js-2107eafcde390eebbf59e829194626c488de9e29.tar.bz2 | |
added hover service
Diffstat (limited to 'src/AngularPublic.js')
| -rw-r--r-- | src/AngularPublic.js | 12 | 
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;  }); | 
