js-plugin
js-plugin copied to clipboard
onRegister, onUnregister and other hooks for plugins.
I think it would be great so specify sertain actions when sertain events happen like onRegister, onUnregister ect.
Maybe we can rename initialize to onRegister because it would do the same thing at the end, executing a callback. and maybe add an onUnregister callback doing the same for the unregister method