code: function $_getTransportIndex(_ref) {
        var to = _ref.to,
            from = _ref.from;
  
        for (var i in this.transports[to]) {
          if (this.transports[to][i].from === from) {
            return +i;
          }
        }
  
        return -1;
      }
docs: Internal