diff Libs/DF/normal_bar.lua @ 40:a960d5372b0c

- framework update from v22 to v44.
author Tercio
date Wed, 31 Aug 2016 19:55:14 -0300
parents 7944c081e5b4
children 0682d738499b
line wrap: on
line diff
--- a/Libs/DF/normal_bar.lua	Tue Jul 19 13:23:40 2016 -0300
+++ b/Libs/DF/normal_bar.lua	Wed Aug 31 19:55:14 2016 -0300
@@ -509,12 +509,12 @@
 --> timer
 	
 	function BarMetaFunctions:OnTimerEnd()
-		if (self.OnTimerEndHook) then
-			local interrupt = self.OnTimerEndHook (self)
-			if (interrupt) then
-				return
-			end
+		local capsule = self
+		local kill = capsule:RunHooksForWidget ("OnTimerEnd", self.widget, capsule)
+		if (kill) then
+			return
 		end
+		
 		self.timer_texture:Hide()
 		self.timer_textureR:Hide()
 		self.div_timer:Hide()
@@ -720,6 +720,7 @@
 			OnShow = {},
 			OnMouseDown = {},
 			OnMouseUp = {},
+			OnTimerEnd = {},
 		}
 	
 		BarObject.statusbar:SetScript ("OnEnter", OnEnter)