B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Destroy the JSTerm object. Call this method to avoid memory leaks.
   */
Destroy the JSTerm object. Call this method to avoid memory leaks.
Destroy the JSTerm object . Call this method to avoid memory leaks .
function JST_destroy()
  {
    this.clearCompletion();
    this.clearOutput();
    this.autocompletePopup.destroy();
    this.autocompletePopup = null;
    this.inputNode.removeEventListener("keypress", this._keyPress, false);
    this.inputNode.removeEventListener("input", this._inputEventHandler, false);
    this.inputNode.removeEventListener("keyup", this._inputEventHandler, false);
    this.hud = null;
  }
function JST_destroy ( ) { this . clearCompletion ( ) ; this . clearOutput ( ) ; this . autocompletePopup . destroy ( ) ; this . autocompletePopup = null ; this . inputNode . removeEventListener ( "keypress" , this . _keyPress , false ) ; this . inputNode . removeEventListener ( "input" , this . _inputEventHandler , false ) ; this . inputNode . removeEventListener ( "keyup" , this . _inputEventHandler , false ) ; this . hud = null ; }
Destroy the JSTerm object.
Destroy the JSTerm object .