Mercurial > wow > reaction
comparison ReAction.lua @ 276:36a29870bf34
- little bit of code & comment cleanup
- automatically report the version in the TOC
| author | Flick |
|---|---|
| date | Wed, 11 May 2011 11:11:59 -0700 |
| parents | 9e708a155ab9 |
| children | 5b9c0164a491 |
comparison
equal
deleted
inserted
replaced
| 275:4957aeb0d3a4 | 276:36a29870bf34 |
|---|---|
| 1 local addonName, addonTable = ... | 1 local _, ns = ... |
| 2 local pcall = pcall | 2 local pcall = pcall |
| 3 local pairs = pairs | 3 local pairs = pairs |
| 4 local type = type | 4 local type = type |
| 5 local geterrorhandler = geterrorhandler | 5 local geterrorhandler = geterrorhandler |
| 6 local L = LibStub("AceLocale-3.0"):GetLocale("ReAction") | 6 local L = LibStub("AceLocale-3.0"):GetLocale("ReAction") |
| 56 end) | 56 end) |
| 57 return r | 57 return r |
| 58 end | 58 end |
| 59 | 59 |
| 60 -- store in the addon table | 60 -- store in the addon table |
| 61 addonTable.tcopy = tcopy | 61 ns.tcopy = tcopy |
| 62 addonTable.tfetch = tfetch | 62 ns.tfetch = tfetch |
| 63 addonTable.tbuild = tbuild | 63 ns.tbuild = tbuild |
| 64 addonTable.fieldsort = fieldsort | 64 ns.fieldsort = fieldsort |
| 65 | 65 |
| 66 ------ Core ------ | 66 ------ Core ------ |
| 67 local ReAction = LibStub("AceAddon-3.0"):NewAddon( "ReAction", | 67 local ReAction = LibStub("AceAddon-3.0"):NewAddon( "ReAction", |
| 68 "AceEvent-3.0" | 68 "AceEvent-3.0" |
| 69 ) | 69 ) |
| 70 addonTable.ReAction = ReAction | 70 ns.ReAction = ReAction |
| 71 ReAction.version = GetAddOnMetadata("ReAction","Version") | 71 ReAction.version = GetAddOnMetadata("ReAction","Version") |
| 72 ReAction.L = L | 72 ReAction.L = L |
| 73 ReAction.LKB = LKB | 73 ReAction.LKB = LKB |
| 74 | 74 |
| 75 | 75 |
