added on complete emitter
Merge pull request #2 from slajax/master

added on complete emitter