copy emitter callbacks to avoid relasing a the same time
Merge branch 'master' of github.com:viewbook/library-javascript-core