Access to external literal class inside a function
<p>What I have is something like that:</p>

<pre><code>jQuery(function($) {

  'use strict';

  var App = {

    init: function() {
      App.startTool();
    }
[...]
</code></pre>

<p>and when I try to call <code>App.init();</code> from another file it say that <code>App is not defined</code>.</p>

<p>I'm trying to create some test with jasmine and I've the same error.</p>

<p>How can I go inside this "literal class", nested inside a simple function, from external files?</p>
