context:     this.setState = function(isProc) {        var isSel = null;        var stateId = 0; // 1 selected 2 normal 3 processing        // If this block is processing, change to 'processing' color        if (isProc) {            stateId = 3;        }        // Change block back after completing processing --        // change it back to normal 'unselected' color, or         // 'selected' color if this block is the most recently        // clicked one        else {            var selEv = cosmo.view.cal.canvas.getSelectedEvent();            stateId = (selEv && (this.id == selEv.id)) ?                1 : 2;        }        this.setLozengeAppearance(stateId);    }
meta: 1859	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1859/f5dbe9c0a03edd00030844b6599fb41c7cc76170/block.js/buggy/src/webapp/js/cosmo/ui/block.js