Skip to content

Commit bedc5d6

Browse files
committed
Fix OnEvent handler example to use vanilla globals
1 parent bdef428 commit bedc5d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ buyout normalization, duration check) applies to each stack.
856856
local f = CreateFrame("Frame")
857857
for _, e in ipairs({"AUCTION_MULTISELL_START", "AUCTION_MULTISELL_UPDATE",
858858
"AUCTION_MULTISELL_FAILURE"}) do f:RegisterEvent(e) end
859-
f:SetScript("OnEvent", function(_, e, a, b) print(e, a, b) end)
859+
f:SetScript("OnEvent", function() print(event, arg1, arg2) end)
860860

861861
-- At an open auction house: post 3 stacks of 5, 2h, 100 bid / 200 buyout each
862862
C_AuctionHouse.PostItem({ bagID = 0, slotIndex = 1 }, 1, 5, 3, 100, 200)

0 commit comments

Comments
 (0)