code: function EventedSerialDeviceLoader(Device, vendorId, productId) {
  
    // call super class
    SerialDeviceLoader.call(this, Device, false);
  
    this.vidPidPairs = [];
  
    if (!productId && _.isArray(vendorId)) {
      this.vidPidPairs = vendorId;
    } else {
      this.vidPidPairs = [{vendorId: vendorId, productId: productId}];
    }
  }
docs: An EventedSerialDeviceLoader can check if there are available some serial devices.
  @param {Object}          Device    Device The constructor function of the device.
  @param {Number || Array} vendorId  The vendor id or an array of vid/pid pairs.
  @param {Number}          productId The product id or optional.