Mercurial > wow > reaction
comparison ReAction.lua @ 208:443d2ea4be86
ReAction.lua cleanup: Fixed calls to DestroyBar()
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Thu, 18 Nov 2010 13:06:14 -0800 |
parents | 42fd93f19291 |
children | 3e451836ce6d |
comparison
equal
deleted
inserted
replaced
205:42fd93f19291 | 208:443d2ea4be86 |
---|---|
188 end | 188 end |
189 | 189 |
190 function ReAction:TearDownBars() | 190 function ReAction:TearDownBars() |
191 for name, bar in pairs(self.bars) do | 191 for name, bar in pairs(self.bars) do |
192 if bar then | 192 if bar then |
193 self.bars[name] = DestroyBar(bar) | 193 self.bars[name] = self:DestroyBar(bar) |
194 end | 194 end |
195 end | 195 end |
196 self.barsInitialized = false | 196 self.barsInitialized = false |
197 end | 197 end |
198 | 198 |
224 | 224 |
225 function ReAction:EraseBar(x) | 225 function ReAction:EraseBar(x) |
226 local bar, name = self:GetBar(x) | 226 local bar, name = self:GetBar(x) |
227 if bar and name then | 227 if bar and name then |
228 self.callbacks:Fire("OnEraseBar", bar, name) | 228 self.callbacks:Fire("OnEraseBar", bar, name) |
229 DestroyBar(bar) | 229 self:DestroyBar(bar) |
230 self.db.profile.bars[name] = nil | 230 self.db.profile.bars[name] = nil |
231 end | 231 end |
232 end | 232 end |
233 | 233 |
234 function ReAction:RegisterBarType( name, config, isDefaultChoice ) | 234 function ReAction:RegisterBarType( name, config, isDefaultChoice ) |