title: How to clone jquery datepicker?
body: <p>I need to clone (to inherite) from datepicker jQuery object and override _generatedHTML method.
  My code:</p>
  
  <pre><code>$.fn.datepickerExt = $.fn.datepicker;
  var datepickerOldHTML = $.datepicker._generateHTML;
  
  var datepickerExt = $.extend($.datepicker, {
      _generateHTML: function(inst) {
          var generatedHTML = datepickerOldHTML.apply(this, arguments);
          return "&lt;div style='text-align:center'&gt;header&lt;/div&gt;"+generatedHTML;
      }
  })
  </code></pre>
  
  <p>But I am not sure that I have different objects $.fn.datepicker and $.fn.datepickerExt..</p>
  
  <p>Link for JSFiddle: <a href="http://jsfiddle.net/konstantin/9Rjna/" rel="nofollow">http://jsfiddle.net/konstantin/9Rjna/</a></p>
  
  <p>In this case header need to be added only for datepickerExt...</p>