Mercurial > wow > wowdb-profiler
comparison Main.lua @ 320:4f2d5a082b6d
Reorganized some of the timer functions' nil assignments.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Mon, 14 Oct 2013 14:19:54 -0500 |
parents | 8a2e619cced5 |
children | 10d45fef6ae1 |
comparison
equal
deleted
inserted
replaced
319:391eb564424c | 320:4f2d5a082b6d |
---|---|
299 | 299 |
300 | 300 |
301 local function ClearKilledBossID() | 301 local function ClearKilledBossID() |
302 if killed_boss_id_timer_handle then | 302 if killed_boss_id_timer_handle then |
303 WDP:CancelTimer(killed_boss_id_timer_handle) | 303 WDP:CancelTimer(killed_boss_id_timer_handle) |
304 killed_boss_id_timer_handle = nil | |
304 end | 305 end |
305 table.wipe(boss_loot_toasting) | 306 table.wipe(boss_loot_toasting) |
306 private.raid_finder_boss_id = nil | 307 private.raid_finder_boss_id = nil |
307 private.world_boss_id = nil | 308 private.world_boss_id = nil |
308 killed_boss_id_timer_handle = nil | |
309 end | 309 end |
310 | 310 |
311 | 311 |
312 local function ClearLootToastContainerID() | 312 local function ClearLootToastContainerID() |
313 if loot_toast_container_timer_handle then | 313 if loot_toast_container_timer_handle then |
314 WDP:CancelTimer(loot_toast_container_timer_handle) | 314 WDP:CancelTimer(loot_toast_container_timer_handle) |
315 killed_boss_id_timer_handle = nil | |
315 end | 316 end |
316 private.container_loot_toasting = false | 317 private.container_loot_toasting = false |
317 private.loot_toast_container_id = nil | 318 private.loot_toast_container_id = nil |
318 loot_toast_container_timer_handle = nil | |
319 end | 319 end |
320 | 320 |
321 | 321 |
322 local function ClearLootToastData() | 322 local function ClearLootToastData() |
323 -- cancel existing timer if found | 323 -- cancel existing timer if found |
324 if loot_toast_data_timer_handle then | 324 if loot_toast_data_timer_handle then |
325 WDP:CancelTimer(loot_toast_data_timer_handle) | 325 WDP:CancelTimer(loot_toast_data_timer_handle) |
326 end | 326 loot_toast_data_timer_handle = nil |
327 | 327 end |
328 if loot_toast_data then table.wipe(loot_toast_data) end | 328 |
329 loot_toast_data_timer_handle = nil | 329 if loot_toast_data then |
330 table.wipe(loot_toast_data) | |
331 end | |
330 end | 332 end |
331 | 333 |
332 | 334 |
333 local function InstanceDifficultyToken() | 335 local function InstanceDifficultyToken() |
334 local _, instance_type, instance_difficulty, _, _, _, is_dynamic = _G.GetInstanceInfo() | 336 local _, instance_type, instance_difficulty, _, _, _, is_dynamic = _G.GetInstanceInfo() |