From 81a912fbb9a98e640351ebe2522c1e50ea49040b Mon Sep 17 00:00:00 2001 From: RickWinter Date: Fri, 27 Mar 2015 15:49:56 -0700 Subject: [PATCH] Fixes bug that would show "null" as a message in the don't leave dialog --- IPython/html/static/notebook/js/notebook.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 5f572adbc..3e40ceb28 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -301,9 +301,8 @@ define(function (require) { return "Unsaved changes will be lost."; } } - // Null is the *only* return value that will make the browser not - // pop up the "don't leave" dialog. - return null; + // IE treats null as a string. Instead just return which will avoid the dialog. + return; }; };