Skip to content

Commit

Permalink
Expand eventMixin docs
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Jul 23, 2024
1 parent 05710fc commit 6a56847
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ local addonName, addon = ...
--[[ namespace.eventMixin
A multi-purpose [event](https://warcraft.wiki.gg/wiki/Events)-[mixin](https://en.wikipedia.org/wiki/Mixin).
These methods are also available as methods directly on `namespace`.
These methods are also available as methods directly on `namespace`, e.g:
```lua
addon:RegisterEvent('BAG_UPDATE', function(self, ...)
-- do something
end)
```
--]]

local eventHandler = CreateFrame('Frame')
Expand Down

0 comments on commit 6a56847

Please sign in to comment.