[dongle commit] r662 - branches/Dongle-1.1

2 views
Skip to first unread message

codesite...@google.com

unread,
Jan 29, 2008, 10:55:34 AM1/29/08
to dongle...@googlegroups.com
Author: jnwhiteh
Date: Tue Jan 29 07:55:27 2008
New Revision: 662

Modified:
branches/Dongle-1.1/Dongle.lua

Log:
* Altered Dongle:IsEventRegistered(event) so it properly returns a
boolean value, indicating if the given dongle has registered for the
given event


Modified: branches/Dongle-1.1/Dongle.lua
==============================================================================
--- branches/Dongle-1.1/Dongle.lua (original)
+++ branches/Dongle-1.1/Dongle.lua Tue Jan 29 07:55:27 2008
@@ -273,8 +273,11 @@
assert(3, reg, string.format(L["MUST_CALLFROM_REGISTERED"], "IsEventRegistered"))
argcheck(event, 2, "string")

- local tbl = events[event]
- return tbl
+ if events[event] and events[event][self] then
+ return true
+ else
+ return false
+ end
end

--[[-------------------------------------------------------------------------

Reply all
Reply to author
Forward
0 new messages