Mercurial > wow > cyborg-mmo7
changeset 24:6906d8ffd580
Properly remove the key binding when emptying a button slot.
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Thu, 25 Apr 2013 01:30:41 +0000 |
parents | 3b1c0b676583 |
children | b7074b47cfc7 |
files | WowObjects.lua |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 --