Hey,
> What happens (under the hood) when I do this?
> 
>       store.setModel(model);

Basically, you are setting a property and thats it. If you set a the model 
property of the store, I would not expect much.

> And what is the difference with this?
> 
>       store.bind("model", controller, "model");

This is something completely different. You are binding the stores model to the 
controller which means controller.setModel(store.getModel()). But every time 
the model of the store changes, this code will be excuted again to keep the 
controllers model up to date.

> And does this make any sense? And why not?
> 
>       controller.bind("model", store, "model");

This would be the other direction and as long as the controller is not somehow 
creating models and the controller knows how to write them back to the server, 
this doesn't make much sense.

Regards,
Martin
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to