Quantcast

Grab some globals from the unvalued _G.

James D. Callahan III [07-26-11 - 05:03]
Grab some globals from the unvalued _G.
Filename
Interface/Tabs.lua
diff --git a/Interface/Tabs.lua b/Interface/Tabs.lua
index 9475a43..8ada3af 100644
--- a/Interface/Tabs.lua
+++ b/Interface/Tabs.lua
@@ -90,7 +90,7 @@ function private.InitializeTabs()
 		MainPanel.current_tab = id_num

 		ListFrame:Update(nil, false)
-		PlaySound("igCharacterInfoTab")
+		_G.PlaySound("igCharacterInfoTab")
 	end

 	-- Expands or collapses a list entry in the current active tab.
@@ -111,7 +111,7 @@ function private.InitializeTabs()
 	end

 	local function CreateTab(id_num, text, ...)
-		local tab = CreateFrame("Button", nil, MainPanel)
+		local tab = _G.CreateFrame("Button", nil, MainPanel)

 		tab:SetID(id_num)
 		tab:SetHeight(32)