Hi,
This mail is for Martin.
I would like to suggest a small change in SingleValueBinding.js. In
__convertValue, a second argument is sent to the converter function if the
targetObject has a getModel() function. But I found myself in a situation
where I needed to have the targetObject itself sent as a value to the
convert function (that can be useful).
So I changed the code from
if (targetObject.getModel) {
model = targetObject.getModel();
}
to
if (targetObject.getModel) {
model = targetObject.getModel();
}
else
{
model = targetObject;
}
This works fine and achieved exactly what I needed. I would like this patch
to get applied upstream, so that one can always have the targetObject sent
to the converter function (or its model, in the case the targetObject has a
model).
Martin, are you OK with that? If yes, I can file the bug and send the patch
right away.
Jean-Noel
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel