callback causing memory leak
<pre><code>Model.GetData(function (args,jsonData) {
    RenderData(jsonData);
});
</code></pre>

<p>I am passing a callback to my model class, </p>

<pre><code>var Model = (function () {
    function GetData(args,callback) {
       // do all math works. 

       var HTTPClient;

       HTTPClient.onload = function () {
           callback(this.responseText);
       };
    }

})();
</code></pre>

<p>Will my callback cause memory leak in my view page.</p>
