Quantcast

Fix an issue with nameplates

Jim Whitehead [07-20-16 - 06:27]
Fix an issue with nameplates
Filename
BlizzardFrames.lua
Clique.lua
diff --git a/BlizzardFrames.lua b/BlizzardFrames.lua
index f844a17..019b9bd 100755
--- a/BlizzardFrames.lua
+++ b/BlizzardFrames.lua
@@ -143,7 +143,8 @@ local function enable(frame)
         end
     end

-    if frame then
+    -- don't try to register anything that isn't "buttonish"
+    if frame and frame.RegisterForClicks then
         ClickCastFrames[frame] = true
     end
 end
diff --git a/Clique.lua b/Clique.lua
index df58b66..25ac060 100755
--- a/Clique.lua
+++ b/Clique.lua
@@ -911,12 +911,6 @@ function addon:IsFrameBlacklisted(frame)
         name = frame.GetName and frame:GetName()
     end

-    -- Not sure how to make this work with buttons that don't have
-    -- the RegisterForClicks method, so always blacklist those
-    if not button.RegisterForClicks then
-        return true
-    end
-
     return self.settings.blacklist[name]
 end