/// Dispatches an `Event` at this `EventTarget`, invoking the affected event listeners in the
/// appropriate order.
/// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent)
Dispatches an `Event` at this `EventTarget`, invoking the affected event listeners in the
appropriate order.
Dispatches an ` Event ` at this ` EventTarget ` invoking the affected event listeners in the appropriate order .
fn dispatch_event< T: IEvent >( &self, event: &T ) -> bool {
        js! (
            return @{self.as_ref()}.dispatchEvent( @{event.as_ref()} );
        ).try_into().unwrap()
    }
fn dispatch_event < T : IEvent > ( & self , event : & T ) -> bool { js ! ( return { self as_ref ( ) } dispatchEvent ( { event as_ref ( ) } ) ) . try_into ( ) . unwrap ( ) }
Dispatches an `Event` at this `EventTarget`, invoking the affected event listeners in the
appropriate order.
Dispatches an ` Event ` at this ` EventTarget ` invoking the affected event listeners in the appropriate order .
&self
event
&T