title: JS module pattern override function
body: <p>I have following pattern</p>
  
  <pre><code>BASE = function () {
      var that = {};
      var number = 10;
  
      that.showNumber = function(){
          that.alertNumber();
      }
  
      that.alertNumber = function () {
          alert(number);
      };    
      return that;
  };
  
  CHILD = function () {
      var that = Object.create(BASE());
      var secondNumber = 20;
  
      // Override base function
      that.alertNumber = function () {
          alert(secondNumber);
      };
      return that;
  };
  
  var ch = CHILD();
  ch.showNumber();
  </code></pre>
  
  <p>Can you tell me how can I adjust my module pattern inspired by Douglas CrockFord to fully override <code>alerNumber</code> function? So far <code>showNumber</code> function displays 10 instead of 20.</p>
  
  <p>Thank you all in advanced</p>
  
  <p>JSFiddle with code is <a href="http://jsfiddle.net/xmBPw/" rel="noreferrer">here</a></p>