dont know why this isnt final, but it seems like it would be pretty
dangerous to override.

mycomponent { imodel getmodel() { return new Model("foo"); }} is probably a
very likely usecase, the tricky part is that the returned model is not
linked to anything, so it will not be detached.

the way getmodel() interacts with component.model, initmodel(), detach(),
etc - it doesnt look like a very good idea to have this overridible. if
users want to do something funky i think component.initmodel() in
conjunction with component.wrap(imodel) should be more then enough - and
these work better because no matter what you return from those they do
assign that to component.model so the state is consistent.

wdyt?

-igor

Reply via email to