better widget sync fix

no more iterator reset when parsing tabs
This commit is contained in:
jean-emmanuel 2015-11-03 18:38:57 +01:00
parent f8ca8b29dd
commit 3f1d27327b
2 changed files with 2 additions and 3 deletions

View file

@ -104,7 +104,7 @@ init = function(session,callback) {
return function() {
var v = widget[x].getValue()
for (k=0;k<widget.length;k++) {
if (x!=k && v!==undefined) {
if (x!=k) {
widget[k].setValue(v,false,false)
}
}
@ -112,7 +112,7 @@ init = function(session,callback) {
}
for (j in widget) {
widget[j].on('sync',closureSync(j))
widget[j].off('ssync').on('sync',closureSync(j))
}

View file

@ -23,7 +23,6 @@ parsetabs = function(tabs,parent){
if (main) {
__widgets__ = {}
__widgetsIds__ = {}
iterator = {}
session = tabs
}