Hi,
2. When the html-code that contains the page-binding is reevaluated (by e.g. my with-binding) I'm preventing the page-binding from creating another instance by checking if a page-binding-instance (pager.Page-instance) already exists for the element. If it already exists I simply return { controlsDescendantBindings: true}. Everything except one thing seem to work - a foreach-binding.
You can see the problem at
http://jsfiddle.net/xkCea/33/ . Anyone got any idea why the foreach-binding is not working (while all the other bindings work)? You can see another fiddle at
http://jsfiddle.net/xkCea/27/ (that access another version of pager.js) where the foreach-binding is working (but the page-binding is reevaluated). The only difference in the source code is that the newer one is returning {controlsDescendantBindings: true} if an instance already exists instead of creating a new page-instance.
Regards,
Oscar