better widget sync fix
no more iterator reset when parsing tabs
This commit is contained in:
parent
f8ca8b29dd
commit
3f1d27327b
2 changed files with 2 additions and 3 deletions
|
|
@ -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))
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ parsetabs = function(tabs,parent){
|
|||
if (main) {
|
||||
__widgets__ = {}
|
||||
__widgetsIds__ = {}
|
||||
iterator = {}
|
||||
session = tabs
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue