From cf931200692882bb02214af5c91b9b9a9fc404fa Mon Sep 17 00:00:00 2001 From: Jim Whitehead Date: Wed, 20 Jul 2016 08:27:08 +0200 Subject: [PATCH] Fix an issue with nameplates --- BlizzardFrames.lua | 3 ++- Clique.lua | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-) 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 -- 1.7.9.5