View Bug Report
Fixes for 4.0.1
Bug #: 6989
File: Chronos
Date: 11-03-10 05:32 PM
By: Verissi
Status: Unconfirmed
The changes to globals broke Chronos, so I whipped up a fix (below). I also bumped the rev just to be safe locally (and it's included in the diff). Not sure if you're still updating this, but figured I'd submit the fix anyway. Thanks!

diff -ruN Chronos-2.12.30000/Chronos.lua Chronos/Chronos.lua
--- Chronos-2.12.30000/Chronos.lua Wed Nov 3 17:11:56 2010
+++ Chronos/Chronos.lua Wed Nov 3 19:30:33 2010
@@ -607,7 +607,7 @@
end

function Chronos.printDebugError(var, text)
- if (var) and (getglobal(var)) then
+ if (var) and (_G[var]) then
Chronos.printError(text);
end
end
@@ -687,7 +687,7 @@
);
else
SlashCmdList["CHRONOS_SCHEDULE"] = chronosFunc;
- for i = 1, #SCHEDULE_COMM do setglobal("SLASH_CHRONOS_SCHEDULE"..i, SCHEDULE_COMM[i]); end
+ for i = 1, #SCHEDULE_COMM do _G["SLASH_CHRONOS_SCHEDULE"..i] = SCHEDULE_COMM[i]; end
end
end

@@ -712,7 +712,7 @@
Chronos.afterInit(Chronos.RegisterSlashCommands);
end

- function Chronos.OnEvent()
+ function Chronos.OnEvent(self, event)
if(event == "VARIABLES_LOADED") then
ChronosData.variablesLoaded = true;
ChronosFrame:Show();
@@ -726,7 +726,7 @@
end
end

- function Chronos.OnUpdate_Quick()
+ function Chronos.OnUpdate_Quick(self, arg1)
if ( not Chronos.online ) then
return;
end
@@ -779,7 +779,7 @@
end
end

- function Chronos.OnUpdate_Debug()
+ function Chronos.OnUpdate_Debug(self, arg1)
if ( not Chronos.online ) then
return;
end
diff -ruN Chronos-2.12.30000/Chronos.toc Chronos/Chronos.toc
--- Chronos-2.12.30000/Chronos.toc Wed Nov 3 17:11:56 2010
+++ Chronos/Chronos.toc Wed Nov 3 17:15:24 2010
@@ -1,10 +1,10 @@
-## Interface: 30000
+## Interface: 40000
## Title: Chronos
## Notes: Embeddable Time Keeping and Scheduling System
## Notes-deDE: Sammlung nützlicher Funktionen zum Zeitmanagement, welche von einigen anderen AddOns verwendet werden.
## Author: Alexander Brazie, Thott, AnduinLothar
-## Version: 2.12
-## X-Date: Oct 14 2008
+## Version: 2.13
+## X-Date: Nov 03 2010
## X-Category: Library
## X-Website: http://www.wowinterface.com/downloads/info4328-Chronos.html
## X-Email: [email protected]