apps/system/js/task_manager.js
/**
   * Start the TaskManager module; this occurs once on startup.
   *
   * @return {Promise}
   */
Start the TaskManager module; this occurs once on startup.
@return {Promise}
Start the TaskManager module ; this occurs once on startup . @return { Promise }
start() {
    this.element = document.getElementById('task-manager'),
    this.scrollElement = document.getElementById('cards-view'),
    this.cardsList = document.getElementById('cards-list');
    this.screenElement = document.getElementById('screen');
    this.noRecentWindowsEl = document.getElementById('cards-no-recent-windows');
    this.newSheetButton =
      document.getElementById('task-manager-new-sheet-button');
    this.newPrivateSheetButton =
      document.getElementById('task-manager-new-private-sheet-button');
    window.addEventListener('taskmanagershow', this);
    Service.request('registerHierarchy', this);
    this.setScreenshotSetting = this.setScreenshotSetting.bind(this);
    SettingsListener.observe(
      this.USE_SCREENSHOTS_SETTING,
      !this.disableScreenshots,
      this.setScreenshotSetting);
    return LazyLoader.load([
      'js/card.js',
      'js/task_manager_utils.js'
    ]);
  }
start ( ) { this . element = document . getElementById ( 'task-manager' ) , this . scrollElement = document . getElementById ( 'cards-view' ) , this . cardsList = document . getElementById ( 'cards-list' ) ; this . screenElement = document . getElementById ( 'screen' ) ; this . noRecentWindowsEl = document . getElementById ( 'cards-no-recent-windows' ) ; this . newSheetButton = document . getElementById ( 'task-manager-new-sheet-button' ) ; this . newPrivateSheetButton = document . getElementById ( 'task-manager-new-private-sheet-button' ) ; window . addEventListener ( 'taskmanagershow' , this ) ; Service . request ( 'registerHierarchy' , this ) ; this . setScreenshotSetting = this . setScreenshotSetting . bind ( this ) ; SettingsListener . observe ( this . USE_SCREENSHOTS_SETTING , ! this . disableScreenshots , this . setScreenshotSetting ) ; return LazyLoader . load ( [ 'js/card.js' , 'js/task_manager_utils.js' ] ) ; }
Start the TaskManager module; this occurs once on startup.
Start the TaskManager module ; this occurs once on startup .
// Listen for changes to the "show screenshots" preference.