Search results

Observer

Methods

destroy

To destroy handlers in the event

Returns void

notify

To notify the handlers in the specified event.

Returns void

off

To remove handlers from a event attached using on() function.

Returns void

on

To attach handler for given property in current context.

Parameter Type Description
property string specifies the name of the event.
handler Function Specifies the handler function to be called while event notified.
context (optional) Object Specifies the context binded to the handler.
id (optional) string specifies the random generated id.

Returns void