changeset 292:276165a0e860 1.1 beta 10

Don't stash CooldownFrame_SetTimer, to support mods such as 'Cooldowns' which hook it in an event handler.
author Flick
date Fri, 05 Aug 2011 16:25:41 -0700
parents 9671965c7a58
children 7c596a5951ee
files ActionButton.lua MultiCastButton.lua PetActionButton.lua StanceButton.lua
diffstat 4 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ActionButton.lua	Fri Jul 01 14:35:18 2011 -0700
+++ b/ActionButton.lua	Fri Aug 05 16:25:41 2011 -0700
@@ -15,7 +15,7 @@
 local IsAutoRepeatAction = IsAutoRepeatAction
 local IsUsableAction = IsUsableAction
 local IsAttackAction = IsAttackAction
-local CooldownFrame_SetTimer = CooldownFrame_SetTimer
+-- local CooldownFrame_SetTimer = CooldownFrame_SetTimer  -- don't stash this API, look it up every time to support some mods that hook it, e.g. Cooldowns
 local GetActionCooldown = GetActionCooldown
 local GetActionTexture = GetActionTexture
 local ATTACK_BUTTON_FLASH_TIME = ATTACK_BUTTON_FLASH_TIME
--- a/MultiCastButton.lua	Fri Jul 01 14:35:18 2011 -0700
+++ b/MultiCastButton.lua	Fri Aug 05 16:25:41 2011 -0700
@@ -7,7 +7,6 @@
 local unpack = unpack
 local GetCVar = GetCVar
 local GameTooltip_SetDefaultAnchor = GameTooltip_SetDefaultAnchor
-local CooldownFrame_SetTimer = CooldownFrame_SetTimer
 local InCombatLockdown = InCombatLockdown
 local IsUsableSpell = IsUsableSpell
 local IsUsableAction = IsUsableAction
--- a/PetActionButton.lua	Fri Jul 01 14:35:18 2011 -0700
+++ b/PetActionButton.lua	Fri Aug 05 16:25:41 2011 -0700
@@ -12,7 +12,7 @@
 local AutoCastShine_AutoCastStart = AutoCastShine_AutoCastStart
 local AutoCastShine_AutoCastStop = AutoCastShine_AutoCastStop
 local SetDesaturation = SetDesaturation
-local CooldownFrame_SetTimer = CooldownFrame_SetTimer
+-- local CooldownFrame_SetTimer = CooldownFrame_SetTimer  -- don't stash this API, look it up every time to support some mods that hook it, e.g. Cooldowns
 local GameTooltip_SetDefaultAnchor = GameTooltip_SetDefaultAnchor
 
 --
--- a/StanceButton.lua	Fri Jul 01 14:35:18 2011 -0700
+++ b/StanceButton.lua	Fri Aug 05 16:25:41 2011 -0700
@@ -6,7 +6,7 @@
 local format = string.format
 local GetCVar = GetCVar
 local GameTooltip_SetDefaultAnchor = GameTooltip_SetDefaultAnchor
-local CooldownFrame_SetTimer = CooldownFrame_SetTimer
+-- local CooldownFrame_SetTimer = CooldownFrame_SetTimer  -- don't stash this API, look it up every time to support some mods that hook it, e.g. Cooldowns
 local InCombatLockdown = InCombatLockdown
 local GetNumShapeshiftForms = GetNumShapeshiftForms
 local GetShapeshiftFormInfo = GetShapeshiftFormInfo