rem: var item = gItemsToStore[gItemsToStoreIndex++]; 
add: var item = gItemsToStore[gItemsToStoreIndex]; 
context: function storeNextItem(){  var item = gItemsToStore[gItemsToStoreIndex++];   item.store();  item.markValid();  // eventually we'll report individual progress here....  if (gItemsToStoreIndex < gItemsToStore.length)  {    if ('setTimeout' in this)      setTimeout(storeNextItem, 50); // fire off a timer for the next item to store    else    {      debug('set timeout is not defined if this call originated from newsblog.js\n');      storeNextItem();    }  }  else  {        item.feed.removeInvalidItems();    if (item.feed.downloadCallback)      item.feed.downloadCallback.downloaded(item.feed);    gItemsToStore = "";    gItemsToStoreIndex = 0;  }   }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/faeda728243528631cc574768c708eb3039a9d10/Feed.js/buggy/mail/extensions/newsblog/content/Feed.js