Fixed Frame:MakeTop() chaining issue

Thanks to htaeD for reporting this.
This commit is contained in:
Qais Patankar 2014-04-16 16:14:34 +01:00
parent 4dfffef2bc
commit cea6a20ea3

View File

@ -775,17 +775,17 @@ function newobject:MakeTop()
if baseparent.type == "frame" then if baseparent.type == "frame" then
baseparent:MakeTop() baseparent:MakeTop()
end end
return return self
end end
-- check to see if the object is the only child of the base object -- check to see if the object is the only child of the base object
if numbasechildren == 1 then if numbasechildren == 1 then
return return self
end end
-- check to see if the object is already at the top -- check to see if the object is already at the top
if basechildren[numbasechildren] == self then if basechildren[numbasechildren] == self then
return return self
end end
-- make this the top object -- make this the top object
@ -1106,4 +1106,4 @@ function newobject:GetAlwaysOnTop()
return self.alwaysontop return self.alwaysontop
end end