xy; return a new value array @getValue to avoid object memory sharing

This commit is contained in:
jean-emmanuel 2016-10-20 02:59:47 +02:00
parent 3aec08b456
commit cd9c27a156

View file

@ -117,7 +117,7 @@ var Xy = function(widgetData) {
this.showValue(1)
this.widget.getValue = () => {
return this.value
return [this.value[0], this.value[1]]
}
this.widget.setValue = (v,o) => {
this.setValue(v,o)