fix widget sync event handler (was firing everything twice since widgets were not recognizing themselves)

This commit is contained in:
jean-emmanuel 2016-03-22 20:26:33 +01:00
parent f7422f6755
commit 9747397f59

View file

@ -69,7 +69,7 @@ module.exports.sync = function() {
if (WIDGETS[id] && WIDGETS[id].length>1) {
var v = widget.getValue()
for (i in WIDGETS[id]) {
if (WIDGETS[id][i]!=widget && WIDGETS[id][i].setValue) {
if (!WIDGETS[id][i].is(widget) && WIDGETS[id][i].setValue) {
WIDGETS[id][i].setValue(v,false,false)
}
}