rem: var optionEl = usedEl.options[usedEl.selectedIndex]; 
add: var selectedIndex = usedEl.selectedIndex; if (selectedIndex < 0) { return; } var optionEl = usedEl.options[selectedIndex]; 
context: function bsw_removeBlock(key) {    var usedEl = document.getElementById("blocksUsedList_" + key);    var optionEl = usedEl.options[usedEl.selectedIndex];    bsw_USER_BLOCKS[key][optionEl.value] == null;    bsw_USER_BLOCK_POSITIONS[key].splice(usedEl.selectedIndex, 1);    usedEl.removeChild(optionEl);    bsw_showBlockOptions(key);    bsw_updateAlbumBlockValue(key);    bsw_resizeBlocksUsedList(key);}
meta: 3727	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3727/4e0668d0d3439559f1588c90d914de857870158b/BlockSelectWidget.js/clean/gallery2/lib/javascript/BlockSelectWidget.js