rem: Ext.get(id).on("mouseout",function(){ if($(id).style.backgroundImage.indexOf("buttonMask") != -1){ $(id).style.backgroundImage = "" } }) Ext.get(id).on("click",function(){ if(id == "delete"){ changeSelectedUI("delete") deleteShape() setTimeout("drawTools.select();",100); }else{ drawTools[id]() } }) })(iconId[iid]) 
context: (function(id){Ext.get(id).on("mouseover",function(){if($(id).style.backgroundImage.indexOf("selectedMask") == -1){$(id).style.backgroundImage = "url("+imgURL+"/buttonMask.png)"}})Ext.get(id).on("mouseout",function(){if($(id).style.backgroundImage.indexOf("buttonMask") != -1){$(id).style.backgroundImage = ""}})Ext.get(id).on("click",function(){if(id == "delete"){changeSelectedUI("delete")deleteShape()setTimeout("drawTools.select();",100);//some eyecandy}else{drawTools[id]()}})})(iconId[iid])
meta: 5269	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5269/95d402d89372ff5278b82e0e4cb41ce363115ed5/jsOut.js/buggy/Animator/dev/tmp/jsOut.js