summaryrefslogtreecommitdiffstats
path: root/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/general/common.general.filters.js
blob: 519525c7d28eff020e6e99ee677241cf4994115c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
define(['common/general/common.general.module'], function(general) {

  // Filter to return only valid ports (like id != 0)
  general.filter('noRootPorts', function () {
    return function (input) {
      if (!input) {
        return;
      }
      return input.filter(function(port) {
        return port.nodeconnector.id !== "0" ? port : null;
      });
    };
  });

});