Ensure onenter/onleave attributes don't get 'stuck'.
James Whitehead II [10-17-10 - 14:20]
Ensure onenter/onleave attributes don't get 'stuck'.
diff --git a/Clique.lua b/Clique.lua
index 5de99f0..218b534 100755
--- a/Clique.lua
+++ b/Clique.lua
@@ -391,12 +391,15 @@ function addon:GetBindingAttributes(global)
set = {
"local button = self",
"local name = button:GetName()",
+ "if danglingButton then control:RunFor(danglingButton, control:GetAttribute('setup_onleave')) end",
"if blacklist[name] then return end",
+ "danglingButton = button",
}
clr = {
"local button = self",
"local name = button:GetName()",
"if blacklist[name] then return end",
+ "danglingButton = nil",
}
end