Use RED.nodes.filterLinks in pref to RED.nodes.eachLink

This commit is contained in:
Nick O'Leary
2015-03-15 23:41:16 +00:00
parent cf8fe16b09
commit 9c104faff3
3 changed files with 5 additions and 9 deletions

View File

@@ -813,6 +813,9 @@ RED.nodes = (function() {
continue;
}
}
if (filter.sourcePort && link.sourcePort !== filter.sourcePort) {
continue;
}
result.push(link);
}
return result;