title: How to inherit jQuery UI's widget's options from archive
body: <p>I'm just trying do write some JavaScript code to set some options for a jQuery UI's widget in an external configuration file that looks like the following lines:</p>
  
  <pre><code>$(function($){
      $('.datepicker').datepicker({
          beforeShowDay: function(date) {
              var day = date.getDay();
              return [(day != 1)];
          }
      });
  });
  </code></pre>
  
  <p>The problem is that when I write some code in another page to add some options for a sepecific page, the options in my external file are not overwritten. For example: the lines above is what I have in my configuration file and the lines <strong>below</strong> is what I'm writing in the HTML pages that I use the component:</p>
  
  <pre><code>    $('.datepicker').datepicker({
          onSelect: function(date) {
              var diaDaSemana = new Date(date);
              var arrayHorarios = new Array();
              diaDaSemana.getDay() == 0 ? preencherHorarios(arrayHorariosDomingo) : preencherHorarios(arrayHorariosNormais);
          }
      });
  </code></pre>
  
  <p>It overwrites the options in my configuration files, and what I wanna know is: <strong>How to inherit that options without overwriting then even if I don't set the properties that I wan't to overwrite</strong>.</p>