PDA

View Full Version : [CLOSED] binding does not work when using "data" multiple times inside a formula



nmorado
3 Jun 2014, 1:58 PM
It seems like if i am using data reference inside a formula, my binding does not seem to work.

See sample fiddle here:

https://fiddle.sencha.com/#fiddle/6b0

evant
3 Jun 2014, 3:26 PM
The guide in the docs is incorrect and needs updating, see the API docs for the correct usage.

The formula should read something like:



formulas: {
v: function(get) {
return {
rb: !!(get('a') && get('b'))
};
}
}

nmorado
3 Jun 2014, 4:59 PM
it does not work... i saved fiddle with you changes but no luck.

the original code seems to work with the final release - i posted this issue using the beta release:



v: function(get) {
return {
rb: !!(get.a && get.b)
};
}

nmorado
3 Jun 2014, 5:03 PM
actually works - consider this closed.