Merge pull request #8176 from gilbertw/master

Fixes bug that would show "null" as the reason in the don't leave dialog
This commit is contained in:
Min RK 2015-03-27 17:36:28 -07:00
commit 2f2a0fcbcb

View File

@ -301,9 +301,8 @@ define(function (require) {
return "Unsaved changes will be lost."; return "Unsaved changes will be lost.";
} }
} }
// Null is the *only* return value that will make the browser not // IE treats null as a string. Instead just return which will avoid the dialog.
// pop up the "don't leave" dialog. return;
return null;
}; };
}; };