import { Action } from "./Action" ; export class Event { stopped : boolean ; source : any ; name : string ; actionsFired : Action [ ] ; constructor ( name , source ) { this . name = name ; this . source = source ; this . stopped = false ; this . actionsFired = [ ] ; } fire ( action ) { action . doAction ( this ) ; this . actionsFired . push ( action ) ; } stopPropagation ( ) { this . stopped = true ; } }