-
Notifications
You must be signed in to change notification settings - Fork 0
purgeProperties
Mike Byrne edited this page Jan 25, 2022
·
2 revisions
Removes all properties from an object, useful in cleaning up when destroying a method
- nothing
- none
- nothing
this.destroy = function() {
// remove specific event handlers
container.removeEventListener('click', _handleClicks);
// remove properties of this behavior
purgeProperties(this);
};