# HG changeset patch # User madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 # Date 1366853441 0 # Node ID 6906d8ffd5802350e2e3173a98616a4c5e86e47c # Parent 3b1c0b6765830c2f638bfb4c310186d991edfdee Properly remove the key binding when emptying a button slot. diff -r 3b1c0b676583 -r 6906d8ffd580 WowObjects.lua --- a/WowObjects.lua Thu Apr 25 01:30:36 2013 +0000 +++ b/WowObjects.lua Thu Apr 25 01:30:41 2013 +0000 @@ -47,11 +47,7 @@ end, ClearBinding = function(key) - local buttonFrame,parentFrame,name = CyborgMMO_CallbackFactory:AddCallback(CyborgMMO_WowObject.DoNothing) - SetOverrideBindingClick(parentFrame, true, key, name, "LeftButton") - end, - - DoNothing = function() + SetOverrideBinding(CyborgMMO_CallbackFactory.Frame, true, key, nil) end, -- Static Methods --