title: How to merge default options in Prototype Objects
body: <p>I'm looking for a simple way to merge an options object in a Prototype Class object. </p>
  
  <p>I have a parent "abstract" class like this :</p>
  
  <pre><code>var ParentClass = Class.create({
  
  initialize : function(someattributes, options ){
           this.someattributes = someattributes;
           this.options = Object.extend({
                foo : "foostring",
                bar : 1337
      }, options || {});
      }   
   });
  </code></pre>
  
  <p>and a children class that extends ParentClass as such :</p>
  
  <pre><code>var ChildrenClass = Class.create(ParentClass {
  
  initialize : function($super, someattributes, options ){
           $super(someattributes, options);
           this.options = Object.extend({
                wheez : "wheezstring",
                bling : 123456
      }, options || {});
      }   
  });
  </code></pre>
  
  <p>So the idea is to have some default options in parent class and some default options in children class
  but children's class options object should be an extension of parent class options obejct;</p>
  
  <p>what is the correct way to merge the two options objects when children class is initialized ? </p>
  
  <p>I hope I'm clear enough ... </p>
  
  <p>Thanks  </p>