add: /* First create the table for the parameters */ 
context: function bsw_showBlockOptions(key) {    var usedEl = document.getElementById("blocksUsedList_" + key);    var blockOptionsEl = document.getElementById("bsw_BlockOptions_" + key);    blockOptionsEl.innerHTML = "";    if (usedEl.selectedIndex < 0) {	return;    }    // Get the block and block preference we are dealing with    var blockPref = bsw_USER_BLOCKS[key][usedEl.options[usedEl.selectedIndex].value];    var block = bsw_WIDGET_BLOCKS[key][blockPref.blockId];    // For some reason, "block.parameters.length == 0" doesn't work here.  wtf?    var i = 0;    for (var paramName in block.parameters) {	i++;    }    if (i == 0) {	return;    }    // First create the table for the parameters    var optionTableEl = document.createElement("table");    optionTableEl.id = "bsw_ParamTable_" + key;    optionTableEl.className = "bsw_ParamTable";    var headerRowEl = document.createElement("tr");    headerRowEl.id = "bsw_ParamHeaderRow_" + key;    headerRowEl.className = "bsw_ParamHeaderRow";    var paramHeaderEl = document.createElement("td");    paramHeaderEl.appendChild(document.createTextNode(bsw_HEADER_TEXT[key]['parameter']));    var paramValueHeaderEl = document.createElement("td");    paramValueHeaderEl.appendChild(document.createTextNode(bsw_HEADER_TEXT[key]['value']));    optionTableEl.appendChild(headerRowEl);    headerRowEl.appendChild(paramHeaderEl);    headerRowEl.appendChild(paramValueHeaderEl);    /* Now add the parameter value rows */    for (var paramName in block.parameters) {        var paramRowEl = document.createElement("tr");	var paramNameEl = document.createElement("td");	paramNameEl.appendChild(document.createTextNode(block.parameters[paramName]['description']));	paramRowEl.appendChild(paramNameEl);	var paramValueEl = document.createElement("td");	paramValueEl.appendChild(bsw_getValueElement(paramName, blockPref, block));	paramRowEl.appendChild(paramValueEl);	optionTableEl.appendChild(paramRowEl);    }    blockOptionsEl.appendChild(optionTableEl);    blockOptionsEl.innerHTML = blockOptionsEl.innerHTML;}
meta: 3727	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3727/9d0f83bc83ce8cf4bb068548c4841c06ce5b7c10/BlockSelectWidget.js/clean/gallery2/lib/javascript/BlockSelectWidget.js