matrixes: fix matrixes sync events
This commit is contained in:
parent
dd38a399dd
commit
5ff3e37d30
3 changed files with 13 additions and 12 deletions
|
|
@ -68,10 +68,10 @@ module.exports.create = function(widgetData,container) {
|
|||
|
||||
|
||||
|
||||
widget.on('sync',function(e,id,w){
|
||||
if (id==widgetData.id) return
|
||||
widget.value[w.parent().index()] = w.getValue()
|
||||
widget.trigger('sync',{id:widgetData.id,widget:widget})
|
||||
widget.on('sync',function(e){
|
||||
if (e.id==widgetData.id) return
|
||||
widget.value[e.widget.parent().index()] = e.widget.getValue()
|
||||
widget.trigger({type:'sync',id:widgetData.id,widget:widget})
|
||||
})
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -59,13 +59,14 @@ module.exports.create = function(widgetData,container) {
|
|||
|
||||
|
||||
|
||||
widget.on('sync',function(e,id,w){
|
||||
if (id==widgetData.id) return
|
||||
widget.value[w.parent().index()] = w.getValue()
|
||||
widget.trigger('sync',{id:widgetData.id,widget:widget})
|
||||
widget.on('sync',function(e){
|
||||
if (e.id==widgetData.id) return
|
||||
widget.value[e.widget.parent().index()] = e.widget.getValue()
|
||||
widget.trigger({type:'sync',id:widgetData.id,widget:widget})
|
||||
})
|
||||
|
||||
|
||||
|
||||
widget.getValue = function(){
|
||||
return widget.value
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,10 +59,10 @@ module.exports.create = function(widgetData,container) {
|
|||
|
||||
|
||||
|
||||
widget.on('sync',function(e,id,w){
|
||||
if (id==widgetData.id) return
|
||||
widget.value[w.parent().index()] = w.getValue()
|
||||
widget.trigger('sync',{id:widgetData.id,widget:widget})
|
||||
widget.on('sync',function(e){
|
||||
if (e.id==widgetData.id) return
|
||||
widget.value[e.widget.parent().index()] = e.widget.getValue()
|
||||
widget.trigger({type:'sync',id:widgetData.id,widget:widget})
|
||||
})
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue