Removes an event handler added previously via addFunctionReceiver.
Removes an event handler added previously via addFunctionReceiver.
1 table handler
the object that is handling an event registered previously.
2 string event
the event that the object is handling.
local object = {} function object:handleEventOne(event, data) print("this method handles eventOne!") end function object:handleEventTwo(event, data) print("this method handles eventTwo!") end events:addFunctionReceiver(object, object.handleEventOne, "eventOne") events:addFunctionReceiver(object, object.handleEventTwo, "eventTwo") events:fire("eventOne") events:fire("eventTwo") events:removeFunctionReceiver(object, "eventOne") events:removeFunctionReceiver(object, "eventTwo")