title: How to get the value of variable in different javascript file?
body: <p><strong>test.html</strong></p>
  
  <pre><code> &lt;script src="jsv/test1.js"&gt;&lt;/script&gt;
   &lt;script src="jsv3/test2.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p><strong>test1.js:</strong></p>
  
  <pre><code>(function ($) {
    var settings = {
      taphold_threshold: 750,
      hold_timer: null,
      tap_timer: null
    };)
  };
  </code></pre>
  
  <p><strong>test2.js:</strong></p>
  
  <pre><code>var Navigation = {
    init: function () {
      self = this;
      $('#button').live(tapMode, function () {
        alert(settings[taphold_threshold]);
      });
    }
  }
  </code></pre>
  
  <p>I would like to get the value of settings : taphold_threshold, but it seems i can not get the value by simply alert it. test2.js is the caller and test1.js is callee. It should be some scope problem. How to get the value (750) ? Thanks</p>