From 7726aa59772e0fff2db3688beded7651fb43027f Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 18 Nov 2008 16:00:15 +0000 Subject: [PATCH] * Clean up some leaked globals, bad jnwhiteh! --- DressToKillOptions.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DressToKillOptions.lua b/DressToKillOptions.lua index 2bdb3f3..8b480ae 100644 --- a/DressToKillOptions.lua +++ b/DressToKillOptions.lua @@ -6,6 +6,7 @@ frame:Hide() frame:SetScript("OnShow", function(frame) -- Initialize the system DressToKill:Initialize() + local editbox, dropdown, reset, save, delete local title = frame:CreateFontString(nil, "OVERLAY", "GameFontNormalLarge") title:SetPoint("TOPLEFT", frame, "TOPLEFT", 15, -15) title:SetPoint("BOTTOMRIGHT", frame, "TOPRIGHT", 10, -45) @@ -85,8 +86,8 @@ frame:SetScript("OnShow", function(frame) dropdown:SetPoint("LEFT", dropdownlabel, "RIGHT") UIDropDownMenu_Initialize(dropdown, initdropdown) UIDropDownMenu_SetSelectedValue(dropdown, DressToKill.profile.selected) - UIDropDownMenu_SetWidth(160, dropdown) - UIDropDownMenu_JustifyText("LEFT", dropdown) + UIDropDownMenu_SetWidth(dropdown, 160) + UIDropDownMenu_JustifyText(dropdown, "LEFT") editbox = CreateFrame("EditBox", "DressToKillEditBox", frame) editbox:SetPoint("TOPLEFT", dropdownlabel, "BOTTOMLEFT", 0, -15) @@ -361,7 +362,7 @@ debugframe:SetScript("OnShow", function(frame) local close = CreateFrame("Button", nil, frame, "UIPanelCloseButton") close:SetPoint("TOPRIGHT", frame, "TOPRIGHT") - copylog = CreateFrame("Button", "DressToKillCopyLogButton", DressToKillDebugScrollFrame, "UIPanelButtonTemplate2") + local copylog = CreateFrame("Button", "DressToKillCopyLogButton", DressToKillDebugScrollFrame, "UIPanelButtonTemplate2") copylog:SetText(L["Copy Log"]) copylog:SetWidth(80) copylog:SetPoint("TOPRIGHT", scrollframe, "BOTTOMRIGHT", 0, -5) -- 1.7.9.5