Mercurial > wow > askmrrobot
comparison Libs/AceEvent-3.0/AceEvent-3.0.lua @ 124:e31b02b24488
Updated for 8.0 pre-patch and BfA.
| author | yellowfive | 
|---|---|
| date | Tue, 17 Jul 2018 09:57:39 -0700 | 
| parents | 01b63b8ed811 | 
| children | 
   comparison
  equal
  deleted
  inserted
  replaced
| 123:7a6364917f86 | 124:e31b02b24488 | 
|---|---|
| 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 | 
