Quantcast

Fix minor issue: Duplicate SetScript

F16Gaming (Laptop) [10-23-12 - 07:14]
Fix minor issue: Duplicate SetScript
Filename
MobList.lua
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