Skip to content

Commit

Permalink
Prevent alert in ie11 if there is no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ger-benjamin authored and fredj committed Oct 2, 2018
1 parent 9fe59ad commit e3adbf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contribs/gmf/src/objectediting/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ exports.Controller.prototype.refreshWMSLayer_ = function() {
* Called before the window unloads. Show a confirmation message if there are
* unsaved modifications.
* @param {Event} e Event.
* @return {string} Message
* @return {string|undefined} Message
* @private
*/
exports.Controller.prototype.handleWindowBeforeUnload_ = function(e) {
Expand All @@ -996,7 +996,7 @@ exports.Controller.prototype.handleWindowBeforeUnload_ = function(e) {
(e || window.event).returnValue = msg;
return msg;
}
return '';
return undefined;
};


Expand Down

0 comments on commit e3adbf1

Please sign in to comment.