From cea6a20ea3a4f1efd7490b9d9095bf0e7b609baa Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Wed, 16 Apr 2014 16:14:34 +0100 Subject: [PATCH] Fixed Frame:MakeTop() chaining issue Thanks to htaeD for reporting this. --- objects/frame.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/objects/frame.lua b/objects/frame.lua index 4753a86..2be8a95 100644 --- a/objects/frame.lua +++ b/objects/frame.lua @@ -775,17 +775,17 @@ function newobject:MakeTop() if baseparent.type == "frame" then baseparent:MakeTop() end - return + return self end -- check to see if the object is the only child of the base object if numbasechildren == 1 then - return + return self end -- check to see if the object is already at the top if basechildren[numbasechildren] == self then - return + return self end -- make this the top object @@ -1106,4 +1106,4 @@ function newobject:GetAlwaysOnTop() return self.alwaysontop -end \ No newline at end of file +end