MithrilJS / mithril-node-render

Use mithril views to render server side
MIT License
210 stars 44 forks source link

Prevent destruction of class objects when cloning #73

Closed jmooradi closed 7 years ago

jmooradi commented 7 years ago

The old omit method converts a class to a standard object instead of staying as a class, this prevents you from referencing other properties within the class

jmooradi commented 7 years ago

Actually thinking about this a bit more, is cloning and ommiting the component even necessary?

StephanHoyer commented 7 years ago

LGTM

I think I took this behaviour from mithril itself. Feel free to check, if this is even necessary.