Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 79b3b8b

Browse files
Jon Hoguetlgalfaso
Jon Hoguet
authored andcommitted
chore($location): use $window instead of window
Fix one place were there was a reference to `window` and not to `$window`
1 parent 1b74097 commit 79b3b8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ng/location.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,8 @@ function $LocationProvider() {
788788
* @param {string=} oldState History state object that was before it was changed.
789789
*/
790790

791-
this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement',
792-
function($rootScope, $browser, $sniffer, $rootElement) {
791+
this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement', '$window',
792+
function($rootScope, $browser, $sniffer, $rootElement, $window) {
793793
var $location,
794794
LocationMode,
795795
baseHref = $browser.baseHref(), // if base[href] is undefined, it defaults to ''
@@ -871,7 +871,7 @@ function $LocationProvider() {
871871
if ($location.absUrl() != $browser.url()) {
872872
$rootScope.$apply();
873873
// hack to work around FF6 bug 684208 when scenario runner clicks on links
874-
window.angular['ff-684208-preventDefault'] = true;
874+
$window.angular['ff-684208-preventDefault'] = true;
875875
}
876876
}
877877
}

0 commit comments

Comments
 (0)