Log:
Yata:
- keybinding bugfix
Modified:
trunk/Yata/TotemBar.lua
Modified: trunk/Yata/TotemBar.lua
==============================================================================
--- trunk/Yata/TotemBar.lua (original)
+++ trunk/Yata/TotemBar.lua Fri Jun 15 14:33:38 2007
@@ -206,7 +206,7 @@
-- Binding functions basicly from ClosetGnome by rabbit
function Yata.Class.TotemBar.prototype:ClearBinding(ID)
- if (not button) then return end
+ if (not ID) then return end
local oldbind = self.db.profile.Keybindings[ID];
if not oldbind then return end
self.db.profile.Keybindings[ID] = nil;
@@ -216,7 +216,7 @@
end
function Yata.Class.TotemBar.prototype:RegisterBinding(key, ID)
- if not key or not button then return end
+ if not key or not ID then return end
if not AceLibrary("AceConsole-2.0").keybindingValidateFunc(key) then
self:Print(string.format("%s is not a valid keybinding.", "|cffd9d919"..key.."|r"))
return