comparison Libs/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.lua @ 17:3000eccbf1a0 v7.3.0.017

- ToC Update.
author Tercio
date Sat, 02 Sep 2017 14:10:48 -0300
parents 371e14cd2feb
children 9ad7f3c634f1
comparison
equal deleted inserted replaced
16:6c64dd7f16a2 17:3000eccbf1a0
6 -- * The **appName** field is the options table name as given at registration time \\ 6 -- * The **appName** field is the options table name as given at registration time \\
7 -- 7 --
8 -- :IterateOptionsTables() (and :GetOptionsTable() if only given one argument) return a function reference that the requesting config handling addon must call with valid "uiType", "uiName". 8 -- :IterateOptionsTables() (and :GetOptionsTable() if only given one argument) return a function reference that the requesting config handling addon must call with valid "uiType", "uiName".
9 -- @class file 9 -- @class file
10 -- @name AceConfigRegistry-3.0 10 -- @name AceConfigRegistry-3.0
11 -- @release $Id: AceConfigRegistry-3.0.lua 1139 2016-07-03 07:43:51Z nevcairiel $ 11 -- @release $Id: AceConfigRegistry-3.0.lua 1161 2017-08-12 14:30:16Z funkydude $
12 local MAJOR, MINOR = "AceConfigRegistry-3.0", 16 12 local CallbackHandler = LibStub("CallbackHandler-1.0")
13
14 local MAJOR, MINOR = "AceConfigRegistry-3.0", 17
13 local AceConfigRegistry = LibStub:NewLibrary(MAJOR, MINOR) 15 local AceConfigRegistry = LibStub:NewLibrary(MAJOR, MINOR)
14 16
15 if not AceConfigRegistry then return end 17 if not AceConfigRegistry then return end
16 18
17 AceConfigRegistry.tables = AceConfigRegistry.tables or {} 19 AceConfigRegistry.tables = AceConfigRegistry.tables or {}
18
19 local CallbackHandler = LibStub:GetLibrary("CallbackHandler-1.0")
20 20
21 if not AceConfigRegistry.callbacks then 21 if not AceConfigRegistry.callbacks then
22 AceConfigRegistry.callbacks = CallbackHandler:New(AceConfigRegistry) 22 AceConfigRegistry.callbacks = CallbackHandler:New(AceConfigRegistry)
23 end 23 end
24 24