diff options
| author | Viraj Mahesh <virajmahesh@gmail.com> | 2014-04-28 01:11:35 -0700 |
|---|---|---|
| committer | Viraj Mahesh <virajmahesh@gmail.com> | 2014-04-28 01:11:35 -0700 |
| commit | cdecbf86aee44226f864efd26fbd0930b309a875 (patch) | |
| tree | 9c80071c0800180ed03805b76bc642cd1c13737a /morphic.js | |
| parent | d3ec80f3748eeed2f6a4f7c75c85d56388171e2a (diff) | |
| download | snap-cdecbf86aee44226f864efd26fbd0930b309a875.tar.gz snap-cdecbf86aee44226f864efd26fbd0930b309a875.zip | |
Revert f56dc8e..d3ec80f
This rolls back to commit f56dc8ecf5f2845ed40b62eec4e0e2227bebd5ba.
Diffstat (limited to 'morphic.js')
| -rw-r--r-- | morphic.js | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -10353,17 +10353,16 @@ WorldMorph.prototype.initEventListeners = function () { false ); - // window.onbeforeunload = function (evt) { - // var e = evt || window.event, - // msg = "Are you sure you want to leave?"; - // // For IE and Firefox - // if (e) { - // e.returnValue = msg; - // } - // // For Safari / chrome - // return msg; - // }; - window.onbeforeunload = null; + window.onbeforeunload = function (evt) { + var e = evt || window.event, + msg = "Are you sure you want to leave?"; + // For IE and Firefox + if (e) { + e.returnValue = msg; + } + // For Safari / chrome + return msg; + }; }; WorldMorph.prototype.mouseDownLeft = function () { |
