Mercurial > wow > breuesk
comparison Core.lua @ 44:8913e7d79cad
Refactoring some very simple items to a Utility file
author | John@Yosemite-PC |
---|---|
date | Thu, 15 Mar 2012 22:58:54 -0400 |
parents | 4109683c3172 |
children | f52d472f0b0a |
comparison
equal
deleted
inserted
replaced
43:4109683c3172 | 44:8913e7d79cad |
---|---|
36 -- 2) a.x === a["x"] | 36 -- 2) a.x === a["x"] |
37 -- 3) a["1"] =/= a[1] | 37 -- 3) a["1"] =/= a[1] |
38 -- 4) table.remove() works ok if reverse iterating, terrible at anything else | 38 -- 4) table.remove() works ok if reverse iterating, terrible at anything else |
39 -- 5) pairs() does not have a guaranteed iteration order | 39 -- 5) pairs() does not have a guaranteed iteration order |
40 | 40 |
41 -- These two functions properly format the call to AceConsole:Print(), which | |
42 -- needs a full object. Calling "Print" will call the mixed-in console functions | |
43 -- but without a self parameter because of the namespacing. I would disembed | |
44 -- console, except that it has handy OnDisable behavior to disable chat | |
45 -- commands. | |
46 function print(...) | |
47 bsk:Print(...) | |
48 end | |
49 | |
50 function printf(...) | |
51 bsk:Printf(...) | |
52 end | |
53 | |
54 function OnInitialize() | 41 function OnInitialize() |
55 | 42 |
56 db = _G.LibStub("AceDB-3.0"):New("BskDB", defaults, "Default") | 43 db = _G.LibStub("AceDB-3.0"):New("BskDB", defaults, "Default") |
57 | 44 |
58 options.args.profile = _G.LibStub("AceDBOptions-3.0"):GetOptionsTable(db) | 45 options.args.profile = _G.LibStub("AceDBOptions-3.0"):GetOptionsTable(db) |