rem: dojo.event.topic.publish('/calEvent', { 'action': 'setSelected', 
add: dojo.event.topic.publish('/calEvent', { 'action': 'setSelected', 
context:     function updateEventsDisplay() {        if (self.eventRegistry.length &&             cosmo.view.cal.conflict.calc(self.eventRegistry) &&                 positionLozenges()) {            // If no currently selected event, put selection on            // the final one loaded            if (!self.selectedEvent) {                dojo.event.topic.publish('/calEvent', {                     'action': 'setSelected',                     'data': self.eventRegistry.getLast() });            }            dojo.event.topic.publish('/calEvent', { 'action':                 'eventsDisplaySuccess', 'data': self.selectedEvent });        }        return true;    }
meta: 1859	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1859/0e69df1442de1ab5fff0f19baec757b66289f4fa/canvas.js/buggy/src/webapp/js/cosmo/view/cal/canvas.js