Skip to content

Commit 0184147

Browse files
committed
Fixing copy-paste bug introduced in the previous commit
1 parent c877e93 commit 0184147

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: javascript/selenium-core/scripts/selenium-browserbot.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2349,10 +2349,10 @@ IEBrowserBot.prototype.modifySeparateTestWindowToDetectPageLoads = function(wind
23492349
var pageUnloadDetector = function() {
23502350
self.pageUnloading = true;
23512351
};
2352-
if (win.addEventListener) {
2353-
win.addEventListener('beforeunload', pageUnloadDetector, true);
2352+
if (windowObject.addEventListener) {
2353+
windowObject.addEventListener('beforeunload', pageUnloadDetector, true);
23542354
} else {
2355-
win.attachEvent('onbeforeunload', pageUnloadDetector);
2355+
windowObject.attachEvent('onbeforeunload', pageUnloadDetector);
23562356
}
23572357
BrowserBot.prototype.modifySeparateTestWindowToDetectPageLoads.call(this, windowObject);
23582358
};

0 commit comments

Comments
 (0)