diff core.js @ 1259:96a830d58da7

Fix for bugs #1671 and #1672
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Mon, 21 Mar 2016 13:46:31 +0000
parents 3600fff74af9
children 158e06debceb
line wrap: on
line diff
--- a/core.js	Sun Mar 20 11:01:26 2016 +0100
+++ b/core.js	Mon Mar 21 13:46:31 2016 +0000
@@ -365,6 +365,8 @@
 }
 
 function createProjectSave(destURL) {
+    // Clear the window.onbeforeunload
+    window.onbeforeunload = null;
 	// Save the data from interface into XML and send to destURL
 	// If destURL is null then download XML in client
 	// Now time to render file locally