title: key value style javascript array`s length keeps being 0
body: <p>I fill my key value array like this:</p>
  
  <pre><code>/**
   * Callback: Gets invoked by the server when the data returns
   * 
   * @param {Object} aObject
   */
  function retrieveStringsFromServerCallback(aObject){
  
     for(var i = 0;i &lt; aObject['xml'].strings.appStringsList.length;i++){
        var tKey = aObject['xml'].strings.appStringsList[i]["@key"];      
        var tValue = aObject['xml'].strings.appStringsList[i]['$'];
        configManager.addStringElement(tKey,tValue);
  
     }
  }
  </code></pre>
  
  <p>Here is the setter of my object</p>
  
  <pre><code>/**
   * @param {string} aKey
   * @param {string} aValue
   */
  this.addStringElement = function(aKey, aValue){
      self.iStringMap[aKey] = aValue;
      console.log("LENGTH: "+self.iStringMap.length);
  }
  </code></pre>
  
  <p>I add about 300 key value pairs, according to google chrome inspector, the <code>iStringMap</code> is filled correctly. However the length of the array seems still to be 0. There must be something wrong. Any help much appreciated</p>