mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
fix error when removing event
This commit is contained in:
parent
aba22511c3
commit
cb004bf07e
@ -563,9 +563,12 @@ define([
|
||||
}
|
||||
|
||||
dom.unbind(window, 'keydown', _keydownHandler, false);
|
||||
dom.unbind(window, 'unload', saveToLocalStorage);
|
||||
dom.unbind(window, 'resize', _resizeHandler);
|
||||
|
||||
if (saveToLocalStorage) {
|
||||
dom.unbind(window, 'unload', saveToLocalStorage);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user