mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 03:06:01 +00:00
core: replace remaining getglobals in favor of _G
This commit is contained in:
+2
-2
@@ -272,7 +272,7 @@ end
|
||||
-- 'icon' [texture] the button icon that should be skinned.
|
||||
-- 'disableHighlight' [bool] disable mouseover highlight.
|
||||
function pfUI.api.SkinButton(button, cr, cg, cb, icon, disableHighlight)
|
||||
local b = getglobal(button)
|
||||
local b = _G[button]
|
||||
if not b then b = button end
|
||||
if not b then return end
|
||||
if not cr or not cg or not cb then
|
||||
@@ -312,7 +312,7 @@ end
|
||||
-- Applies pfUI skin to collapse/expand buttons:
|
||||
-- 'button' [frame/string] the button that should be skinned.
|
||||
function pfUI.api.SkinCollapseButton(button, all)
|
||||
local b = getglobal(button)
|
||||
local b = _G[button]
|
||||
if not b then b = button end
|
||||
if not b then return end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user