rem: when.events.push(item); 
add: }    var dupe; for (var i = 0; i < when.events.length; i++) { if (item.id == when.events[i].id) { when.events.splice(i, 1, item); dupe = true; return; } dupe = false; } if (!dupe) { when.events.push(item); } 
context: function addItem(item){    var when = this.findPeriodForItem(item);    if (!when)        return;    when.events.push(item);    this.calendarUpdateComplete();};
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/5d7964b57ec47cc2c5d4d32fa0f5f9ad8d3d6bd5/agenda-tree.js/clean/calendar/lightning/content/agenda-tree.js