I'm trying to make the constructor function Toolbar inherit properties and methods from the Editor, but is not working good:
+function(window, $) {
  function Editor(editor) {
    this.editor = editor;
    this.toolBar = new Toolbar.call(this);
  }
  function Toolbar() {
    console.log(this.editor);
  }
  window.onload = function() {
    var el = document.querySelectorAll('.editor')[0];
    if (el) {
      var edtr = new Editor(el);
    }
  };
}(window, jQuery);
The error is:
Uncaught TypeError: function call() { [native code] } is not a constructorEditor @ _editor.js:7window.onload @ _editor.js:19
Any helps, here?