title: Javascript / jQuery Prototype inheritance extend defaults
body: <p>is there any way how to extend default options for multiple Prototype based Javascript constructor functions?</p>
  
  <p>I'm trying to get the options object in Events object, is it possible?</p>
  
  <pre><code>var Website = function(options){
      this.options = $.extend({}, this.defaults, options);
  }
  
  Website.prototype = {
  
      constructor : Website,
  
      defaults: {
          navigation: $('#navigation'),
          footer : $('#footer')
      }
  
  
      init: function(){
  
      }
  
  };
  
  
  
  var Events = function(){
      this.init()
  }
  
  Events.prototype = {
  
      constructor: Website,
  
      init:function(){
        console.log(...)
      }
  
  }
  </code></pre>