Created
December 21, 2016 22:12
-
-
Save gregtatum/20c085f3dbcd10e858e8cbb2d64af590 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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