Quantcast

Updated to Dongle-Beta0. Updated .toc file for 2.0.3.

James Whitehead II [01-11-07 - 03:55]
Updated to Dongle-Beta0. Updated .toc file for 2.0.3.
Filename
Clique.toc
Dongle.lua
diff --git a/Clique.toc b/Clique.toc
index 80df5d8..3e1300e 100644
--- a/Clique.toc
+++ b/Clique.toc
@@ -1,4 +1,4 @@
-## Interface: 20000
+## Interface: 20003
 ## Title: Clique
 ## Author: Cladhaire
 ## Notes: Simply powerful click-casting interface
diff --git a/Dongle.lua b/Dongle.lua
index a3a9b48..d92dc93 100644
--- a/Dongle.lua
+++ b/Dongle.lua
@@ -119,7 +119,7 @@ end
 ---------------------------------------------------------------------------]]

 local major = "Dongle-Beta0"
-local minor = tonumber(string.match("$Revision: 224 $", "(%d+)") or 1)
+local minor = tonumber(string.match("$Revision: 228 $", "(%d+)") or 1)

 assert(DongleStub, string.format("Dongle requires DongleStub.", major))
 assert(DongleStub and DongleStub:GetVersion() == "DongleStub-Beta0",
@@ -859,7 +859,11 @@ local function Activate(self, old)
 		messages = self.messages

 		frame = old.frame
-		self.registry[major].obj = self
+
+		local reg = self.registry[major]
+		reg.obj = self
+		lookup[self] = reg
+		lookup[major] = reg
 	else
 		self.registry = registry
 		self.lookup = lookup
@@ -911,8 +915,8 @@ local function Activate(self, old)
 end

 local function Deactivate(self, new)
-	lookup[self] = nil
 	self:UnregisterAllEvents()
+	lookup[self] = nil
 end

 DongleStub:Register(Dongle, Activate, Deactivate)