eq: filter type cannot refer to a widget whose id is one of the available options

This commit is contained in:
jean-emmanuel 2016-09-13 22:41:44 +02:00
parent d1c972903f
commit 148bad6c95
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ module.exports.create = function(widgetData,container) {
for (i in widgetData.filters) {
for (j in widgetData.filters[i]) {
if (typeof widgetData.filters[i][j]=='string') {
if (typeof widgetData.filters[i][j]=='string' && !(j=='type' && widgetData.filters[i][j].match(/peak|notch|highpass|highshelf|lowpass|lowshelf/))) {
widget.linkedWidgets.push(widgetData.filters[i][j])
}
}

View file

@ -1756,7 +1756,7 @@ module.exports.create = function(widgetData,container) {
for (i in widgetData.filters) {
for (j in widgetData.filters[i]) {
if (typeof widgetData.filters[i][j]=='string') {
if (typeof widgetData.filters[i][j]=='string' && !(j=='type' && widgetData.filters[i][j].match(/peak|notch|highpass|highshelf|lowpass|lowshelf/))) {
widget.linkedWidgets.push(widgetData.filters[i][j])
}
}