Converted a few remaining getglobal calls to _G
Kevin Lyles [09-17-11 - 16:43]
Converted a few remaining getglobal calls to _G
diff --git a/widgets.xml b/widgets.xml
index 6476c1e..9a6dd2f 100644
--- a/widgets.xml
+++ b/widgets.xml
@@ -72,13 +72,13 @@
<Scripts>
<OnDisable>
if not self.text then
- self.text = getglobal(self:GetName() .. "Text")
+ self.text = _G[self:GetName() .. "Text"]
end
self.text:SetTextColor(0.5, 0.5, 0.5)
</OnDisable>
<OnEnable>
if not self.text then
- self.text = getglobal(self:GetName() .. "Text")
+ self.text = _G[self:GetName() .. "Text"]
end
self.text:SetTextColor(1, 0.82, 0)
</OnEnable>
@@ -96,7 +96,7 @@
</OnLeave>
<OnShow>
if not self.text then
- self.text = getglobal(self:GetName() .. "Text")
+ self.text = _G[self:GetName() .. "Text"]
end
self.text:SetText(self:GetText())
</OnShow>