[dongle commit] r665 - branches/Dongle-1.2

2 views
Skip to first unread message

codesite...@google.com

unread,
Jan 29, 2008, 11:07:49 AM1/29/08
to dongle...@googlegroups.com
Author: jnwhiteh
Date: Tue Jan 29 08:03:42 2008
New Revision: 665

Modified:
branches/Dongle-1.2/Build.lua
branches/Dongle-1.2/Dongle.lua

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


Modified: branches/Dongle-1.2/Build.lua
==============================================================================
--- branches/Dongle-1.2/Build.lua (original)
+++ branches/Dongle-1.2/Build.lua Tue Jan 29 08:03:42 2008
@@ -98,7 +98,7 @@
end

print("* Exporting DongleUnitTests into the zipped copy")
-local err = os.execute("svn export
https://dongle.googlecode.com/svn/branches/DongleUnitTests-1.1 " .. version .. "/DongleUnitTests")
+local err = os.execute("svn export
https://dongle.googlecode.com/svn/branches/DongleUnitTests-1.2 " .. version .. "/DongleUnitTests")

print("\n\nNow you should be able to import this tab by doing:")
print(string.format("svn import %s/
https://dongle.googlecode.com/svn/tags/%s/", version, version))

Modified: branches/Dongle-1.2/Dongle.lua
==============================================================================
--- branches/Dongle-1.2/Dongle.lua (original)
+++ branches/Dongle-1.2/Dongle.lua Tue Jan 29 08:03:42 2008
@@ -273,7 +273,11 @@
assert(3, reg, string.format(L["MUST_CALLFROM_REGISTERED"], "IsEventRegistered"))
argcheck(event, 2, "string")

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

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

Reply all
Reply to author
Forward
0 new messages