B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Disconnect the Web Console from the remote server.
   *
   * @param function [aOnDisconnect]
   *        Optional function to invoke when the connection is dropped.
   */
Disconnect the Web Console from the remote server.
@param function [aOnDisconnect]
Optional function to invoke when the connection is dropped.
Disconnect the Web Console from the remote server . @param function [ aOnDisconnect ] Optional function to invoke when the connection is dropped .
function WCCP_disconnect(aOnDisconnect)
  {
    if (!this.client) {
      aOnDisconnect && aOnDisconnect();
      return;
    }
    this.client.removeListener("pageError", this._onPageError);
    this.client.removeListener("consoleAPICall", this._onConsoleAPICall);
    this.client.removeListener("networkEvent", this._onNetworkEvent);
    this.client.removeListener("networkEventUpdate", this._onNetworkEventUpdate);
    this.client.removeListener("fileActivity", this._onFileActivity);
    this.client.removeListener("locationChange", this._onLocationChange);
    this.client.close(aOnDisconnect);
    this.client = null;
    this.webConsoleClient = null;
    this.connected = false;
    this.owner = null;
  }
function WCCP_disconnect ( aOnDisconnect ) { if ( ! this . client ) { aOnDisconnect && aOnDisconnect ( ) ; return ; } this . client . removeListener ( "pageError" , this . _onPageError ) ; this . client . removeListener ( "consoleAPICall" , this . _onConsoleAPICall ) ; this . client . removeListener ( "networkEvent" , this . _onNetworkEvent ) ; this . client . removeListener ( "networkEventUpdate" , this . _onNetworkEventUpdate ) ; this . client . removeListener ( "fileActivity" , this . _onFileActivity ) ; this . client . removeListener ( "locationChange" , this . _onLocationChange ) ; this . client . close ( aOnDisconnect ) ; this . client = null ; this . webConsoleClient = null ; this . connected = false ; this . owner = null ; }
Disconnect the Web Console from the remote server.
Disconnect the Web Console from the remote server .