osc: rm remaining parenthesis

This commit is contained in:
jean-emmanuel 2017-10-12 19:00:47 +02:00
parent a299c971a0
commit 038fa775ac

View file

@ -71,7 +71,7 @@ Osc.prototype.receive = function(data){
// if the message target is provided (when message comes from another client connected to the same server)
// then we only update the widgets that have the same target
// compare arrays using > and < operators (both false = equality)
if (!target || !widgetTarget || !(widgetTarget < target || widgetTarget > target || (widgetTarget.length !== target.length))) {
if (!target || !widgetTarget || !(widgetTarget < target || widgetTarget > target || widgetTarget.length !== target.length)) {
// update matching widgets
if (widget[i] && widget[i].setValue) widget[i].setValue(args,{send:false,sync:true,fromExternal:!target})
}