From 0bf74316245dc531de5e810b41430a135987a903 Mon Sep 17 00:00:00 2001 From: "F16Gaming (Laptop)" Date: Tue, 23 Oct 2012 09:14:54 +0200 Subject: [PATCH] Fix minor issue: Duplicate SetScript --- MobList.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/MobList.lua b/MobList.lua index c5cb849..472320f 100644 --- a/MobList.lua +++ b/MobList.lua @@ -186,7 +186,7 @@ function ML:Create() frame:SetScript("OnMouseDown", function(s) s:StartMoving() end) frame:SetScript("OnMouseUp", function(s) s:StopMovingOrSizing() end) - frame:SetScript("OnShow", function(s) ML:UpdateEntries() end) + frame:SetScript("OnShow", function() ML:UpdateMobs() ML:UpdateEntries() end) frame.closeButton = CreateFrame("Button", nil, frame, "UIPanelCloseButton") frame.closeButton:SetPoint("TOPRIGHT", frame, "TOPRIGHT", -1, -1) @@ -312,8 +312,6 @@ function ML:Create() self:UpdateEntries(LastOffset) - frame:SetScript("OnShow", function() ML:UpdateMobs() ML:UpdateEntries() end) - created = true end -- 1.7.9.5