Permalink
Browse files
chore($location): use `$window` instead of `window`
Fix one place were there was a reference to `window` and not to `$window`
- Loading branch information
Showing
with
3 additions
and
3 deletions.
-
+3
−3
src/ng/location.js
|
|
@@ -788,8 +788,8 @@ function $LocationProvider() { |
|
|
* @param {string=} oldState History state object that was before it was changed. |
|
|
*/ |
|
|
|
|
|
this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement', |
|
|
function($rootScope, $browser, $sniffer, $rootElement) { |
|
|
this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement', '$window', |
|
|
function($rootScope, $browser, $sniffer, $rootElement, $window) { |
|
|
var $location, |
|
|
LocationMode, |
|
|
baseHref = $browser.baseHref(), // if base[href] is undefined, it defaults to '' |
|
|
@@ -871,7 +871,7 @@ function $LocationProvider() { |
|
|
if ($location.absUrl() != $browser.url()) { |
|
|
$rootScope.$apply(); |
|
|
// hack to work around FF6 bug 684208 when scenario runner clicks on links |
|
|
window.angular['ff-684208-preventDefault'] = true; |
|
|
$window.angular['ff-684208-preventDefault'] = true; |
|
|
} |
|
|
} |
|
|
} |
|
|
|