Create onClose event for windows.
krisdb2009 opened this issue · 2 comments
krisdb2009 commented
This is necessary if a user presses the X button, and cleanup functionality is required.
krisdb2009 commented
Created one for context menus.
EDIT: Just kidding, an event is already fired on #desktop for this purpose.
krisdb2009 commented
Fixed by creating new window.on object with three events.
window.on.close
window.on.toggleMin
window.on.toggleMax