519525c7d28eff020e6e99ee677241cf4994115c
[ccsdk/apps.git] /
1 define(['common/general/common.general.module'], function(general) {
2
3   // Filter to return only valid ports (like id != 0)
4   general.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 });