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="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
<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="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -144,7 +144,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
<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="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
<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="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -491,7 +491,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
<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="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -105,7 +105,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
<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="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -723,7 +723,7 @@ table.insert element.parent, element.parent\removeChild(element),
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
<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="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -126,7 +126,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
<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="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -116,6 +116,9 @@ do
|
|||||||
return self
|
return self
|
||||||
end,
|
end,
|
||||||
delete = function(self)
|
delete = function(self)
|
||||||
|
for i = #self.child, 1, -1 do
|
||||||
|
self.child[i]:delete()
|
||||||
|
end
|
||||||
for i = 1, #self.parent.child do
|
for i = 1, #self.parent.child do
|
||||||
if self.parent.child[i] == self then
|
if self.parent.child[i] == self then
|
||||||
table.remove(self.parent.child, i)
|
table.remove(self.parent.child, i)
|
||||||
@ -128,6 +131,8 @@ do
|
|||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
self.parent = nil
|
||||||
|
self.data.parent = nil
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
_base_0.__index = _base_0
|
_base_0.__index = _base_0
|
||||||
|
@ -151,9 +151,8 @@ class element
|
|||||||
|
|
||||||
--- Deletes references to this element and then deletes it.
|
--- Deletes references to this element and then deletes it.
|
||||||
delete: =>
|
delete: =>
|
||||||
--for i=1, #@child
|
for i=#@child, 1, -1
|
||||||
-- @child[i]\delete!
|
@child[i]\delete!
|
||||||
--@data.child -- for each child, delete its parent ref!
|
|
||||||
|
|
||||||
for i=1, #@parent.child
|
for i=1, #@parent.child
|
||||||
if @parent.child[i] == @
|
if @parent.child[i] == @
|
||||||
@ -165,6 +164,7 @@ class element
|
|||||||
table.remove @parent.data.child, i
|
table.remove @parent.data.child, i
|
||||||
break
|
break
|
||||||
|
|
||||||
--@parent = nil
|
@parent = nil
|
||||||
--@data.parent = nil -- really should be for all @data -> nil, and for all @ -> nil
|
@data.parent = nil -- should be for all @ -> nil
|
||||||
--@ = 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