title: How best to overwrite a Javascript object method
body: <p>I'm using a framework that allows the include of JS files.  At the top of my JS file I have something like:</p>
  
  <pre><code>&lt;import resource="classpath:/templates/webscripts/org/mycompany/projects/library/utils.lib.js"&gt;
  </code></pre>
  
  <p>I want to override a fairly small method that is defined in the very large utils.lib.js file.  Rather than make the change directly in utils.lib.js, a file that's part of the framework, I want to overwrite just one method.  The utils.lib.js file has something that looks like:</p>
  
  <pre><code>var Evaluator =
  {
     /**
      * Data evaluator
      */
      getData: function Evaluator_getData(input)
      {
            var ans;
  
            return ans;
      },
      ...
   }
  </code></pre>
  
  <p>I want to change just what the method getData does.  Sorry for the basic question, but after importing the file which copies the JS contents into the top of my JS file, can I just do something like:</p>
  
  <pre><code> Evaluator.getData = function Mine_getData(input)
                  {
                    ...
                  };
  </code></pre>