MCPcopy Index your code
hub / github.com/JLiscom/OpenNote / attachWindowUnload

Function attachWindowUnload

openNote/controllers/noteController.js:209–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207 * Attach window on-load listener
208 */
209 var attachWindowUnload = function() {
210 window.onbeforeunload = function() {
211 return "Are you sure you want to navigate away?"; //Keep the page from closing
212 };
213 };
214
215 /**
216 * Remove window on-load listener

Callers 1

activateEditModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected