import { gojiEvents } from './events' ; import { subtreeInstances } from './reconciler/publicInstance' ; import events from './subtreeAttachEvents' ; class ObjectE { public trigger ( e ) { gojiEvents . triggerEvent ( e ) ; } public subtreeAttached ( id , instance ) { subtreeInstances . set ( id , instance ) ; events . emit ( String ( id ) ) ; } public subtreeDetached ( id ) { subtreeInstances . delete ( id ) ; } } Object . e = new ObjectE ( ) ;