diff --git a/extensions/streamlined_get_set.lua b/extensions/streamlined_get_set.lua index 32bd558..7f8ac44 100644 --- a/extensions/streamlined_get_set.lua +++ b/extensions/streamlined_get_set.lua @@ -30,7 +30,7 @@ element.__base.width = function(self, w) return self:getWidth() end end -elements.__base.height = function(self, h) +element.__base.height = function(self, h) if h then return self:setHeight(h) else diff --git a/extensions/streamlined_get_set.moon b/extensions/streamlined_get_set.moon index d40bc67..6e1d343 100644 --- a/extensions/streamlined_get_set.moon +++ b/extensions/streamlined_get_set.moon @@ -28,7 +28,7 @@ element.__base.width = (w) => else return @getWidth! -elements.__base.height = (h) => +element.__base.height = (h) => if h return @setHeight h else