Skip to content

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

  • string eventName: The name of the event.
  • function func: 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.