Mercurial > wow > hotcorners
comparison Libs/AceEvent-3.0/AceEvent-3.0.lua @ 17:3000eccbf1a0 v7.3.0.017
- ToC Update.
author | Tercio |
---|---|
date | Sat, 02 Sep 2017 14:10:48 -0300 |
parents | fc346da3afd9 |
children |
comparison
equal
deleted
inserted
replaced
16:6c64dd7f16a2 | 17:3000eccbf1a0 |
---|---|
7 -- and can be accessed directly, without having to explicitly call AceEvent itself.\\ | 7 -- and can be accessed directly, without having to explicitly call AceEvent itself.\\ |
8 -- It is recommended to embed AceEvent, otherwise you'll have to specify a custom `self` on all calls you | 8 -- It is recommended to embed AceEvent, otherwise you'll have to specify a custom `self` on all calls you |
9 -- make into AceEvent. | 9 -- make into AceEvent. |
10 -- @class file | 10 -- @class file |
11 -- @name AceEvent-3.0 | 11 -- @name AceEvent-3.0 |
12 -- @release $Id: AceEvent-3.0.lua 975 2010-10-23 11:26:18Z nevcairiel $ | 12 -- @release $Id: AceEvent-3.0.lua 1161 2017-08-12 14:30:16Z funkydude $ |
13 local MAJOR, MINOR = "AceEvent-3.0", 3 | 13 local CallbackHandler = LibStub("CallbackHandler-1.0") |
14 | |
15 local MAJOR, MINOR = "AceEvent-3.0", 4 | |
14 local AceEvent = LibStub:NewLibrary(MAJOR, MINOR) | 16 local AceEvent = LibStub:NewLibrary(MAJOR, MINOR) |
15 | 17 |
16 if not AceEvent then return end | 18 if not AceEvent then return end |
17 | 19 |
18 -- Lua APIs | 20 -- Lua APIs |
19 local pairs = pairs | 21 local pairs = pairs |
20 | |
21 local CallbackHandler = LibStub:GetLibrary("CallbackHandler-1.0") | |
22 | 22 |
23 AceEvent.frame = AceEvent.frame or CreateFrame("Frame", "AceEvent30Frame") -- our event frame | 23 AceEvent.frame = AceEvent.frame or CreateFrame("Frame", "AceEvent30Frame") -- our event frame |
24 AceEvent.embeds = AceEvent.embeds or {} -- what objects embed this lib | 24 AceEvent.embeds = AceEvent.embeds or {} -- what objects embed this lib |
25 | 25 |
26 -- APIs and registry for blizzard events, using CallbackHandler lib | 26 -- APIs and registry for blizzard events, using CallbackHandler lib |