3571e0ff8fde6dd6ac8847f5a6456e7b627ecf2c
[dlux.git] / modules / common-general-resources / src / main / resources / general / common.general.filters.js
1 define(['common/general/common.general.module'], function(general) {
2
3   // Filter to return only valid ports (like id != 0)
4   general.register.filter('noRootPorts', function () {
5     return function (input) {
6       if (!input) {
7         return;
8       }
9       return input.filter(function(port) {
10         return port.nodeconnector.id !== "0" ? port : null;
11       });
12     };
13   });
14
15 });