mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
more little pieces
This commit is contained in:
parent
7121cc1773
commit
d589e1440b
@ -456,7 +456,7 @@
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2017-04-09 02:01:53 </i>
|
||||
<i style="float:right;">Last updated 2017-04-09 18:24:55 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
@ -144,7 +144,7 @@
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2017-04-09 02:01:53 </i>
|
||||
<i style="float:right;">Last updated 2017-04-09 18:24:55 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
@ -84,7 +84,7 @@
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2017-04-09 02:01:53 </i>
|
||||
<i style="float:right;">Last updated 2017-04-09 18:24:55 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
@ -491,7 +491,7 @@
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2017-04-09 02:01:53 </i>
|
||||
<i style="float:right;">Last updated 2017-04-09 18:24:55 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
@ -105,7 +105,7 @@
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2017-04-09 02:01:53 </i>
|
||||
<i style="float:right;">Last updated 2017-04-09 18:24:55 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
@ -723,7 +723,7 @@ table.insert element.parent, element.parent\removeChild(element),
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2017-04-09 02:01:53 </i>
|
||||
<i style="float:right;">Last updated 2017-04-09 18:24:55 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
@ -126,7 +126,7 @@
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2017-04-09 02:01:53 </i>
|
||||
<i style="float:right;">Last updated 2017-04-09 18:24:55 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
@ -116,6 +116,9 @@ do
|
||||
return self
|
||||
end,
|
||||
delete = function(self)
|
||||
for i = #self.child, 1, -1 do
|
||||
self.child[i]:delete()
|
||||
end
|
||||
for i = 1, #self.parent.child do
|
||||
if self.parent.child[i] == self then
|
||||
table.remove(self.parent.child, i)
|
||||
@ -128,6 +131,8 @@ do
|
||||
break
|
||||
end
|
||||
end
|
||||
self.parent = nil
|
||||
self.data.parent = nil
|
||||
end
|
||||
}
|
||||
_base_0.__index = _base_0
|
||||
|
@ -151,9 +151,8 @@ class element
|
||||
|
||||
--- Deletes references to this element and then deletes it.
|
||||
delete: =>
|
||||
--for i=1, #@child
|
||||
-- @child[i]\delete!
|
||||
--@data.child -- for each child, delete its parent ref!
|
||||
for i=#@child, 1, -1
|
||||
@child[i]\delete!
|
||||
|
||||
for i=1, #@parent.child
|
||||
if @parent.child[i] == @
|
||||
@ -165,6 +164,7 @@ class element
|
||||
table.remove @parent.data.child, i
|
||||
break
|
||||
|
||||
--@parent = nil
|
||||
--@data.parent = nil -- really should be for all @data -> nil, and for all @ -> nil
|
||||
--@ = nil
|
||||
@parent = nil
|
||||
@data.parent = nil -- should be for all @ -> nil
|
||||
--@ = nil <- or that, does that work? Idk
|
||||
-- DO NOT DELETE @data though, it could still be in use
|
||||
|
Loading…
Reference in New Issue
Block a user