I am not sure if this is a bug or i am doing something wrong.
I have 6 properties
(function () {
Polymer({
is: 'claim-type',
properties: {
foo: {
type: Number,
value: false,
observer: 'add'
},
bar: {
type: Number,
value: false,
observer: 'add'
},
....
and so on....
Each one is linked to a
When one changes it triggers the observer 'add'
add: function () {
this.ray = this.bar + this.foo + this.etc;
}
say foo = 1 and bar = 2 and etc = 3
the result will equal 123 instead of 6?
What am i doing wrong?
EDIT: changed code from type Boolean to Number