Mercurial > wow > reaction
comparison classes/Button.lua @ 132:16048f516f5e
More Button refactoring
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Sat, 07 Mar 2009 00:11:03 +0000 |
| parents | e39d80bb0b7a |
| children | 8cc187143acd |
comparison
equal
deleted
inserted
replaced
| 131:e39d80bb0b7a | 132:16048f516f5e |
|---|---|
| 86 return self | 86 return self |
| 87 end | 87 end |
| 88 | 88 |
| 89 function Button:Destroy() | 89 function Button:Destroy() |
| 90 local f = self:GetFrame() | 90 local f = self:GetFrame() |
| 91 f:UnregisterAllEvents() | |
| 92 self:ReleaseActionID(self:GetActionID()) | |
| 91 if f then | 93 if f then |
| 92 f:Hide() | 94 f:Hide() |
| 93 f:SetParent(trash) | 95 f:SetParent(trash) |
| 94 f:ClearAllPoints() | 96 f:ClearAllPoints() |
| 95 end | 97 end |
