Javascript Multidimensional Array/Hashtable
<pre><code>storeChildren : function(coreid, data) {
  $.each(data, function(id, type) {
    $.core.children[coreid] = {};
    $.core.children[coreid]['id'] = id;
    $.core.children[coreid]['type'] = type;
  });
}
</code></pre>

<p>($.core.children is an object)</p>

<p>I want the resulting array/object (I prefer objects) to look like this (excuse my PHP pseudocode):</p>

<pre><code>array(coreid =&gt; array(id=&gt;type, id=&gt;type, id=&gt;type));
</code></pre>

<p>I know I am overwriting $.core.children[coreid] each time I run the loop I just don't know how to fix it.</p>
