single element args array unpacking (fixes cross app sync for widgets that don't accept arrays)

This commit is contained in:
jean-emmanuel 2016-03-23 13:34:03 +01:00
parent db2330a0e9
commit cbbe42d038

View file

@ -19,10 +19,10 @@ module.exports = {
if (WIDGETS_BY_PATH[ref]) {
pathref = ref
args = data.args.slice(i,data.args.length)
args = args.length==1?args[0]:args
continue
}
}
args = args.length==1?args[0]:args
} else {
args = data.args
}