function addEventHandler (shared-side)
Available since version: 0.3.0
This function will bind function to specified event.
Declaration
boolean addEventHandler(string eventName, function func)
Parameters
stringeventName: The name of the event.functionfunc: The reference to a function, keep in mind that function must have the same amount of arguments as event.
Returns boolean
True on success, false on failure.