Software /
code /
prosody
Comparison
util/events.lua @ 3499:91c55ae31ef3
util.events: Fixed the exposed API for adding/removing sets of event handlers.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 17 Sep 2010 04:09:58 +0500 |
parent | 3498:3f52f3d9db5a |
child | 3500:a49ed9166820 |
comparison
equal
deleted
inserted
replaced
3498:3f52f3d9db5a | 3499:91c55ae31ef3 |
---|---|
64 end | 64 end |
65 end; | 65 end; |
66 return { | 66 return { |
67 add_handler = add_handler; | 67 add_handler = add_handler; |
68 remove_handler = remove_handler; | 68 remove_handler = remove_handler; |
69 add_plugin = add_plugin; | 69 add_handlers = add_handlers; |
70 remove_plugin = remove_plugin; | 70 remove_handlers = remove_handlers; |
71 fire_event = fire_event; | 71 fire_event = fire_event; |
72 _handlers = handlers; | 72 _handlers = handlers; |
73 _event_map = event_map; | 73 _event_map = event_map; |
74 }; | 74 }; |
75 end | 75 end |