diff 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
line wrap: on
line diff
--- a/ReAction.lua	Wed May 11 11:00:42 2011 -0700
+++ b/ReAction.lua	Wed May 11 11:11:59 2011 -0700
@@ -1,4 +1,4 @@
-local addonName, addonTable = ...
+local _, ns = ...
 local pcall = pcall
 local pairs = pairs
 local type = type
@@ -58,16 +58,16 @@
 end
 
 -- store in the addon table
-addonTable.tcopy = tcopy
-addonTable.tfetch = tfetch
-addonTable.tbuild = tbuild
-addonTable.fieldsort = fieldsort
+ns.tcopy = tcopy
+ns.tfetch = tfetch
+ns.tbuild = tbuild
+ns.fieldsort = fieldsort
 
 ------ Core ------
 local ReAction = LibStub("AceAddon-3.0"):NewAddon( "ReAction",
   "AceEvent-3.0"
 )
-addonTable.ReAction = ReAction
+ns.ReAction = ReAction
 ReAction.version = GetAddOnMetadata("ReAction","Version")
 ReAction.L = L
 ReAction.LKB = LKB