Is SecureHandlerMouseUpDown functional?

#0 - Feb. 18, 2009, 8:16 p.m.
Blizzard Post
Sry to disturb you all but I was wondering if:
SecureHandlerMouseUpDownTemplate was functional.


I have this little code:

local button = CreateFrame("Button", "FFButton5", UIParent, "SecureHandlerMouseUpDownTemplate");
button:SetAttribute("_onmouseup",[[
print("Up ", button)
]]);
button:SetAttribute("_onmousedown",[[
print("Down ", button)
]]);

SetBindingClick("2", "FFButton5", "LeftButton");
SetBindingClick("3", "FFButton5", "RightButton");
SetBindingClick("4", "FFButton5", "ClickC");

and whenever I hit any of the above keys I get the following error:

Message: ..\FrameXML\SecureHandlers.lua line 150:
attempt to call method 'GetAttribute' (a nil value)

Debug:
[C]: GetAttribute()
..\FrameXML\SecureHandlers.lua:150: SecureHandler_OnMouseUpDown()
[string "*:OnMouseDown"]:1:
[string "*:OnMouseDown"]:1



I would like to know if I am doing something wrong.

Thanks for your time.
#4 - Feb. 19, 2009, 12:06 a.m.
Blizzard Post
This will indeed be fixed on the PTRs.