summaryrefslogtreecommitdiffhomepage
path: root/not
diff options
context:
space:
mode:
Diffstat (limited to 'not')
-rw-r--r--not/Element.lua10
1 files changed, 3 insertions, 7 deletions
diff --git a/not/Element.lua b/not/Element.lua
index 24576e6..6ac83d6 100644
--- a/not/Element.lua
+++ b/not/Element.lua
@@ -1,15 +1,11 @@
-require "not.Object"
-
--- `Element`
-- Empty element used inside `Menu`.
-Element = Object:extends()
-
-Element.parent = --[[not.Menu]]nil
-Element.x = 0
-Element.y = 0
+Element = require "not.Object":extends()
function Element:new (parent)
self.parent = parent
+ self.x = 0
+ self.y = 0
end
function Element:delete () end -- deletes Element