I tried adding inherits="SecureHandlerMouseUpDownTemplate" on my PlayerFrame and adding this code to it
Code:
SUF_PlayerFrame:SetAttribute("_onmouseup", [=[
if button == "LeftButton" then
print("secure")
TargetUnit("player")
end
]=]);
And the print does execute but TargetUnit is not found, I guess I am doing this incorrectly