check for selector only in parent classes

This commit is contained in:
Matthias BUSSONNIER 2012-08-12 14:41:38 +02:00
parent 00fcd46323
commit 5e1ba95f6d

View File

@ -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();