Hey, The data binding was never designed to work as some kind of chained event listener even if it worked unintentionally. But that means on the end, we don't have anything like that at the moment which could be handy in deed. So for the moment, I guess the only thing to do is to use a dummy object and open an enhancement report. ;) Best, Martin
Am 09.09.2013 um 06:17 schrieb Michael Elsdörfer <[email protected]>: > If I have a property chain like this: > > controller.selection[0].info.status > > and I want to run some custom code if the status changes, I have used in > the past the following pattern: > > controller.bind('selection[0].info.status', null, '', { > onUpdate: function() { > self._updateButtons(); > }}); > }); > > This would run my function: > > - When the status flag changes. > - When the info object changes. > - When the selection changes. > - When the controller model changes. > > In the current git master, this is broken (at least in source mode) > because if qx.debug is set, it will validate the arguments and refuse > the allow the null value. > > Fair enough. But what is the alternative? What the databinding can do > here in watching the chain is highly useful, and highly complex. It's > not feasable to to add listeners to the selection, selection[0], > selection[0].info and seletion[0].info.status manually (and then manage > updating the listeners for the children as the parent objects change). > > I can use a dummy-object with a dummy property as a target, but that > seems quite stupid. > > Michael > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
