# EventChannel

Start from base library version 2.7.3. Please remaining backward compatible.

Inter-page event communication channel

# method

# EventChannel.emit(string eventName, any args)

Trigger an event

# EventChannel.on(string eventName, EventCallback fn)

Continuously monitor an event

# EventChannel.once(string eventName, EventCallback fn)

Monitor an event once, trigger and fail

# EventChannel.off(string eventName, EventCallback fn)

Cancel listening on an event. When the second argument is given, cancel only the given listener function, otherwise cancel all listener functions