Skip to content
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
Jon Hoguet authored and lgalfaso committed Dec 5, 2014
1 parent 1b74097 commit 79b3b8b68643b2e2b692f6fad06f7576a7252be8
Showing with 3 additions and 3 deletions.
  1. +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;
}
}
}

0 comments on commit 79b3b8b

Please sign in to comment.
You can’t perform that action at this time.