Software /
code /
verse
Comparison
init.lua @ 4:0ef21511c7ff
Log debug message when firing an event
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Nov 2009 22:22:51 +0000 |
parent | 3:372ddb5900d3 |
child | 16:13444ae6e3c4 |
comparison
equal
deleted
inserted
replaced
3:372ddb5900d3 | 4:0ef21511c7ff |
---|---|
62 return self.logger("error", ...); | 62 return self.logger("error", ...); |
63 end | 63 end |
64 | 64 |
65 -- Event handling | 65 -- Event handling |
66 function stream:event(name, ...) | 66 function stream:event(name, ...) |
67 self:debug("Firing event: "..tostring(name)); | |
67 return self.events.fire_event(name, ...); | 68 return self.events.fire_event(name, ...); |
68 end | 69 end |
69 | 70 |
70 function stream:hook(name, callback) | 71 function stream:hook(name, callback) |
71 return self.events.add_handler(name, callback); | 72 return self.events.add_handler(name, callback); |