apps/system/js/task_manager.js
/**
   * Create a new Card representing the given app, and add it to the DOM.
   * (This does not deal with stack order.)
   */
Create a new Card representing the given app, and add it to the DOM.
(This does not deal with stack order.)
Create a new Card representing the given app and add it to the DOM . ( This does not deal with stack order . )
_addApp(app, container, { stayInvisible }) {
    var card = new Card(app, {
      disableScreenshots: this.disableScreenshots,
      stayInvisible: stayInvisible
    });
    container.appendChild(card.element);
    this.elementToCardMap.set(card.element, card);
    this.appToCardMap.set(app, card);
    app.enterTaskManager();
    return card;
  }
_addApp ( app , container , { stayInvisible } ) { var card = new Card ( app , { disableScreenshots : this . disableScreenshots , stayInvisible : stayInvisible } ) ; container . appendChild ( card . element ) ; this . elementToCardMap . set ( card . element , card ) ; this . appToCardMap . set ( app , card ) ; app . enterTaskManager ( ) ; return card ; }
Create a new Card representing the given app, and add it to the DOM.
Create a new Card representing the given app and add it to the DOM .