fix error when removing event

This commit is contained in:
Fabian Irsara 2015-12-01 22:41:54 +01:00
parent aba22511c3
commit cb004bf07e

View File

@ -563,9 +563,12 @@ define([
} }
dom.unbind(window, 'keydown', _keydownHandler, false); dom.unbind(window, 'keydown', _keydownHandler, false);
dom.unbind(window, 'unload', saveToLocalStorage);
dom.unbind(window, 'resize', _resizeHandler); dom.unbind(window, 'resize', _resizeHandler);
if (saveToLocalStorage) {
dom.unbind(window, 'unload', saveToLocalStorage);
}
}, },
/** /**