jalovatt / scythe

Lua GUI library and utility framework for Reaper scripts (formerly Lokasenna_GUI)
https://jalovatt.github.io/scythe
MIT License
26 stars 6 forks source link

Add self.prototype (can this be done @ Element?) #74

Closed jalovatt closed 5 years ago

jalovatt commented 5 years ago

Added Element:assignChild.

This could probably be made even tidier and avoid having to explicitly assign __index for each class. Ideally as simple as:

function myClass:new(props)
  local instance = self:assignChild(mergeProps())
end