Use Comma in variable?
<p>Is there a way to convert this:</p>

<pre><code>$('#id').testfunction({
  'source' : [
    {'source':'pathimage.jpg','title':'Title 1','description':'This is a description 1.'},
    {'source':'pathimage.jpg','title':'Title 2','description':'This is a description 2.'},
    {'source':'pathimage.jpg','title':'Title 3','description':'This is a description 3.'},
    {'source':'pathimage.jpg','title':'Title 4','description':'This is a description 4.'},
    {'source':'pathimage.jpg','title':'Title 5','description':'This is a description 5.'}
  ]
});
</code></pre>

<p>To simple for dynamically output:</p>

<pre><code>$('#id').testfunction({
  'source':[
    $SOURCE
  ]
});
</code></pre>

<p>I am pushing the source into a array and trying to construct it again into <code>$SOURCE</code>. The <code>$SOURCE</code> should be look like this eventually:</p>

<pre><code>$SOURCE = myArray[0], myArray[1], myArray[2], myArray[3], myArray[4];
</code></pre>

<p>But its the comma thingy that keeps prevent the variable from working. I can't get the comma into the variable. Using <code>+ "," +</code> doesnt work since it recognizes it as a string... </p>

<pre><code>$SOURCE += myArray[s],;
</code></pre>

<p>Is there a way to convert this to a working variable to dynamically use?</p>
