B2G/gecko/browser/devtools/tilt/Tilt.jsm
/**
   * Initializes a visualizer for the current tab.
   */
Initializes a visualizer for the current tab.
Initializes a visualizer for the current tab .
function T_initialize()
  {
    let id = this.currentWindowId;
    if (this.visualizers[id]) {
      this.destroy(id, true);
      return;
    }
    this.visualizers[id] = new TiltVisualizer({
      chromeWindow: this.chromeWindow,
      contentWindow: this.chromeWindow.gBrowser.selectedBrowser.contentWindow,
      parentNode: this.chromeWindow.gBrowser.selectedBrowser.parentNode,
      notifications: this.NOTIFICATIONS
    });
    if (!this.visualizers[id].isInitialized()) {
      this.destroy(id);
      this.failureCallback && this.failureCallback();
      return;
    }
    Services.obs.notifyObservers(null, TILT_NOTIFICATIONS.INITIALIZING, null);
  }
function T_initialize ( ) { let id = this . currentWindowId ; if ( this . visualizers [ id ] ) { this . destroy ( id , true ) ; return ; } this . visualizers [ id ] = new TiltVisualizer ( { chromeWindow : this . chromeWindow , contentWindow : this . chromeWindow . gBrowser . selectedBrowser . contentWindow , parentNode : this . chromeWindow . gBrowser . selectedBrowser . parentNode , notifications : this . NOTIFICATIONS } ) ; if ( ! this . visualizers [ id ] . isInitialized ( ) ) { this . destroy ( id ) ; this . failureCallback && this . failureCallback ( ) ; return ; } Services . obs . notifyObservers ( null , TILT_NOTIFICATIONS . INITIALIZING , null ) ; }
Initializes a visualizer for the current tab.
Initializes a visualizer for the current tab .
// if the visualizer for the current tab is already open, destroy it now // create a visualizer instance for the current tab // make sure the visualizer object was initialized properly