public removePane(pane as DockPane) as Boolean:
Removes a pane button from this bar.
True when the pane was registered.
bar.removePane(chatPane)