startLoadDestinations(type) {
      if (this.destinationSearchStatus_.get(type) ===
          print_preview.DestinationStorePrinterSearchStatus.DONE) {
        return;
      }
      this.destinationSearchStatus_.set(
          type, print_preview.DestinationStorePrinterSearchStatus.SEARCHING);
      this.nativeLayer_.getPrinters(type).then(
          this.onDestinationSearchDone_.bind(this, type), () => {
            // Will be rejected by C++ for privet printers if privet printing
            // is disabled.
            assert(type === print_preview.PrinterType.PRIVET_PRINTER);
            this.destinationSearchStatus_.set(
                type, print_preview.DestinationStorePrinterSearchStatus.DONE);
          });
      cr.dispatchSimpleEvent(
          this, DestinationStore.EventType.DESTINATION_SEARCH_STARTED);
    }
/**
     * Initiates loading of destinations.
     * @param{print_preview.PrinterType} type The type of destinations to load.
     */
Initiates loading of destinations.
@param{print_preview.PrinterType} type The type of destinations to load.
Initiates loading of destinations . @param { print_preview . PrinterType } type The type of destinations to load .
startLoadDestinations(type) {
      if (this.destinationSearchStatus_.get(type) ===
          print_preview.DestinationStorePrinterSearchStatus.DONE) {
        return;
      }
      this.destinationSearchStatus_.set(
          type, print_preview.DestinationStorePrinterSearchStatus.SEARCHING);
      this.nativeLayer_.getPrinters(type).then(
          this.onDestinationSearchDone_.bind(this, type), () => {
            assert(type === print_preview.PrinterType.PRIVET_PRINTER);
            this.destinationSearchStatus_.set(
                type, print_preview.DestinationStorePrinterSearchStatus.DONE);
          });
      cr.dispatchSimpleEvent(
          this, DestinationStore.EventType.DESTINATION_SEARCH_STARTED);
    }
startLoadDestinations ( type ) { if ( this . destinationSearchStatus_ . get ( type ) === print_preview . DestinationStorePrinterSearchStatus . DONE ) { return ; } this . destinationSearchStatus_ . set ( type , print_preview . DestinationStorePrinterSearchStatus . SEARCHING ) ; this . nativeLayer_ . getPrinters ( type ) . then ( this . onDestinationSearchDone_ . bind ( this , type ) , ( ) => { assert ( type === print_preview . PrinterType . PRIVET_PRINTER ) ; this . destinationSearchStatus_ . set ( type , print_preview . DestinationStorePrinterSearchStatus . DONE ) ; } ) ; cr . dispatchSimpleEvent ( this , DestinationStore . EventType . DESTINATION_SEARCH_STARTED ) ; }
Initiates loading of destinations.
Initiates loading of destinations .
// Will be rejected by C++ for privet printers if privet printing // is disabled.