AFASSoftware / maquette

Pure and simple virtual DOM library

Home Page:https://maquettejs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extend Projector.append so it can handle Classes as well

peterwestendorp opened this issue · comments

Right now, when I want to append a Class based Maquette component, I have to do this:
let dateInput = new DateInput(); projector.initialize(dateInput.renderMaquette.bind(dateInput));

It would be nice if projector.initialize would be able to do the binding for me, so I would only have to pass in a Class: projector.initialize(new DateInput()).
This would also require a change in MaquetteQuery on the initialize method.