Creating single instance of HTTPClient Object
<pre><code>var SingletonClass = (function(){
    function SingletonClass() {
        var JsonClient = Titanium.Network.createHTTPClient();
        return JsonClient ;
    }
    var instance;
    return {
        getInstance: function(){
            if (instance == null) {
                instance = new SingletonClass();
                // Hide the constructor so the returned objected can't be new'd...
                instance.constructor = null;
            }
            return instance;
        }
   };
})();
</code></pre>

<p>Will my SingletonClass return me only one instance of my <code>JsonClient</code>? I want to resume my JsonClient instance across the application without creating new instances for each request.</p>
