Skip to content

Commit

Permalink
Fixing copy-paste bug introduced in the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Apr 22, 2014
1 parent c877e93 commit 0184147
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions javascript/selenium-core/scripts/selenium-browserbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -2349,10 +2349,10 @@ IEBrowserBot.prototype.modifySeparateTestWindowToDetectPageLoads = function(wind
var pageUnloadDetector = function() {
self.pageUnloading = true;
};
if (win.addEventListener) {
win.addEventListener('beforeunload', pageUnloadDetector, true);
if (windowObject.addEventListener) {
windowObject.addEventListener('beforeunload', pageUnloadDetector, true);
} else {
win.attachEvent('onbeforeunload', pageUnloadDetector);
windowObject.attachEvent('onbeforeunload', pageUnloadDetector);
}
BrowserBot.prototype.modifySeparateTestWindowToDetectPageLoads.call(this, windowObject);
};
Expand Down

0 comments on commit 0184147

Please sign in to comment.