From ce2c4d6749056178b85a3c22864dbc4fc51ae003 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sat, 13 Mar 2010 20:24:01 -0500 Subject: [PATCH] Changed upvalues a bit. --- Datamine.lua | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/Datamine.lua b/Datamine.lua index d48e79c..55caa88 100644 --- a/Datamine.lua +++ b/Datamine.lua @@ -15,6 +15,22 @@ This source code is released under All Rights Reserved. ]]-- ------------------------------------------------------------------------------- +-- Upvalues globals. +------------------------------------------------------------------------------- +local _G = getfenv(0) + +local table = _G.table +local tconcat, tinsert, tsort, twipe = table.concat, table.insert, table.sort, table.wipe + +local string = _G.string +local strlower, strmatch = string.lower, string.match +local gsub = string.gsub + +local tonumber, tostring = _G.tonumber, _G.tostring + +local ipairs, pairs = _G.ipairs, _G.pairs + +------------------------------------------------------------------------------- -- AddOn namespace. ------------------------------------------------------------------------------- local MODNAME = "Ackis Recipe List" @@ -27,17 +43,6 @@ local private = select(2, ...) ------------------------------------------------------------------------------- --- Upvalues globals. -------------------------------------------------------------------------------- -local table, string = table, string - -local tconcat, tinsert, tsort, twipe = table.concat, table.insert, table.sort, table.wipe -local strlower, strmatch = string.lower, string.match -local gsub = string.gsub -local tonumber, tostring = tonumber, tostring -local ipairs, pairs = ipairs, pairs - -------------------------------------------------------------------------------- -- Upvalued Blizzard API. ------------------------------------------------------------------------------- local UnitName = UnitName -- 1.7.9.5