docs: function getCompsByType(type, element) {
      var comps = this.getComps(element),
          targetComps = [];
      for (var i = 0; i < comps.length; i++) {
          var comp = comps[i];
          if (comp && comp.type == type) targetComps.push(comp);
      }
      return targetComps;
  }