mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
check for selector only in parent classes
This commit is contained in:
parent
00fcd46323
commit
5e1ba95f6d
@ -13,13 +13,10 @@ var IPython = (function (IPython) {
|
||||
|
||||
var MainToolBar = function (selector) {
|
||||
this.selector = selector;
|
||||
if (this.selector !== undefined) {
|
||||
IPython.ToolBar.apply(this, arguments);
|
||||
// move the rest ouside
|
||||
this.construct();
|
||||
this.add_drop_down_list();
|
||||
this.bind_events();
|
||||
}
|
||||
IPython.ToolBar.apply(this, arguments);
|
||||
this.construct();
|
||||
this.add_drop_down_list();
|
||||
this.bind_events();
|
||||
};
|
||||
|
||||
MainToolBar.prototype = new IPython.ToolBar();
|
||||
|
Loading…
x
Reference in New Issue
Block a user