My Array holds previous values too every time i use.
<pre><code>var TransactionObject  = {
    arr1: [],
    arr2: []    
};
</code></pre>

<p>My Array holds previous values too every time i use my model class. </p>

<pre><code>var data = update(TransactionObject.arr1);
JsonClient.send(data );
</code></pre>

<p>The first time the array holds some value, and the next time when i make the request... it adds the previous data too... the array is not getting cleared at all. </p>
