Skip to content

Instantly share code, notes, and snippets.

@gregtatum
Created December 21, 2016 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregtatum/20c085f3dbcd10e858e8cbb2d64af590 to your computer and use it in GitHub Desktop.
Save gregtatum/20c085f3dbcd10e858e8cbb2d64af590 to your computer and use it in GitHub Desktop.
diff --git a/devtools/client/framework/toolbox.js b/devtools/client/framework/toolbox.js
index c42d5ab..a393333 100644
--- a/devtools/client/framework/toolbox.js
+++ b/devtools/client/framework/toolbox.js
@@ -955,17 +955,35 @@ Toolbox.prototype = {
},
_mountReactComponent: function () {
- // Ensure the toolbar doesn't try to render until the tool is ready.
- const element = this.React.createElement(this.ToolboxController, {
- L10N,
- currentToolId: this.currentToolId,
- selectTool: this.selectTool,
- closeToolbox: this.destroy,
- focusButton: this._onToolbarFocus,
- toggleMinimizeMode: this._toggleMinimizeMode,
- });
-
- this.component = this.ReactDOM.render(element, this._componentMount);
+ // // Ensure the toolbar doesn't try to render until the tool is ready.
+ // const element = this.React.createElement(this.ToolboxController, {
+ // L10N,
+ // currentToolId: this.currentToolId,
+ // selectTool: this.selectTool,
+ // closeToolbox: this.destroy,
+ // focusButton: this._onToolbarFocus,
+ // toggleMinimizeMode: this._toggleMinimizeMode,
+ // });
+ //
+ // this.component = this.ReactDOM.render(element, this._componentMount);
+ this.component = {
+ getInitialState: () => {},
+ componentWillUnmount: () => {},
+ updateButtonIds: () => {},
+ updateFocusedButton: () => {},
+ setFocusedButton: () => {},
+ setCurrentToolId: () => {},
+ setCanRender: () => {},
+ setOptionsPanel: () => {},
+ highlightTool: () => {},
+ unhighlightTool: () => {},
+ setDockButtonsEnabled: () => {},
+ setHostTypes: () => {},
+ setCanCloseToolbox: () => {},
+ setPanelDefinitions: () => {},
+ setToolboxButtons: () => {},
+ setCanMinimize: () => {},
+ }
},
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment