Taint when using ActionButtonTemplate
Here's the simplest code that reproduces this bug:
Code:
<CheckButton name="MUShieldSlam" parent="UIParent" inherits="ActionButtonTemplate"> Code:
8x [ADDON_ACTION_BLOCKED] Аддон 'MyUI' tried to call protected function 'MainMenuBar:SetPoint()'. |
I solved it by inheriting from ActionBarButtonTemplate. Unfortunately I couldn't figure out how I could use OnLoad without tainting things, so I did initialization from a completely different frame. It seems to work for now. I'd be thankful if there's simpler way to do so. Here's the code:
Code:
<CheckButton name="MUShieldSlam" parent="UIParent" inherits="ActionBarButtonTemplate"> Code:
function MUEvents_OnLoad(self) |
Have you tried using `SecureActionButtonTemplate`?
|
Quote:
|
For the code
Code:
<CheckButton name="MUShieldSlam" parent="UIParent" inherits="ActionButtonTemplate"> For the second, if you don't want override the template's onload, you can use inherit="prepend" in your frame, here is an example: Code:
<Ui> TestFrameTemplat loaded TestFrame loaded |
All times are GMT -6. The time now is 08:39 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI