Revert f56dc8e..d3ec80f

This rolls back to commit f56dc8ecf5.
pull/3/merge
Viraj Mahesh 2014-04-28 01:11:35 -07:00
rodzic d3ec80f374
commit cdecbf86ae
2 zmienionych plików z 11 dodań i 19 usunięć

Wyświetl plik

@ -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 () {

Wyświetl plik

@ -4764,14 +4764,7 @@ StageMorph.prototype.userMenu = function () {
menu.addItem(
"pic...",
function () {
//window.open();
//window.location.href =
var ref = myself.fullImageClassic().toDataURL().replace(/^data:image\/[^;]/, 'data:application/octet-stream');
var link = document.createElement('a');
link.download = 'download.png';
link.href = ref;
link.click();
console.log("here");
window.open(myself.fullImageClassic().toDataURL());
},
'open a new window\nwith a picture of the stage'
);