Skip to content

Commit

Permalink
API update
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Jul 23, 2024
1 parent bd2d281 commit 721d15e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local addonName, addon = ...
local isBound
local bindParent = CreateFrame('Frame')
function addon:Unbind()
self:Defer(ClearOverrideBindings, bindParent)
self:Defer('ClearOverrideBindings', bindParent)
isBound = true
end

Expand All @@ -14,7 +14,7 @@ end
local ACTION_NAME = 'ACTIONBUTTON%d'
function addon:BindAction(actionIndex)
self:Unbind()
self:Defer(SetOverrideBinding, bindParent, true, 'SPACE', ACTION_NAME:format(actionIndex))
self:Defer('SetOverrideBinding', bindParent, true, 'SPACE', ACTION_NAME:format(actionIndex))
isBound = true
end

Expand All @@ -24,8 +24,8 @@ do

function addon:BindMacro(macro)
self:Unbind()
self:Defer(macroButton, 'SetAttribute', macroButton, 'macrotext', macro)
self:Defer(SetOverrideBindingClick, bindParent, true, 'SPACE', macroButton:GetName(), 'LeftButton')
self:DeferMethod(macroButton, 'SetAttribute', 'macrotext', macro)
self:Defer('SetOverrideBindingClick', bindParent, true, 'SPACE', macroButton:GetName(), 'LeftButton')
isBound = true
end
end
Expand Down

0 comments on commit 721d15e

Please sign in to comment.