Fixes bug that would show "null" as a message in the don't leave dialog

This commit is contained in:
RickWinter 2015-03-27 15:49:56 -07:00
parent 4ab4ee120e
commit 81a912fbb9

View File

@ -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;
};
};