Can you use a function argument directly in a namespace?
<p>I have the following function:</p>

<pre><code>prevPage: function (store){

    myapp.stores.store.proxy.extraParams = { sendpage: myapp.stores.store.data.items[0].data.currentPage -1 };
    },
</code></pre>

<p>Which basically modifies the extraParams namespace according to whatever 'store' is entered as an argument in the function, but it doesn't work. I think I am using 'store' wrong in the function definition.</p>

<p>To rephrase, if I define the function as:</p>

<pre><code>  prevPage: function (){

    myapp.stores.examplestore.proxy.extraParams = { sendpage:    myapp.stores.store.data.items[0].data.currentPage -1 };
    },
</code></pre>

<p>It works correctly for the examplestore namespace.</p>

<p>How do I do it so I can have that namespace as a variabl argument in the function?</p>
