rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 13 136k | meta stringlengths 132 347 |
|---|---|---|---|
inputElem.setAttribute("id", "msgRecipient#" + rowID); awGetPopupElement(row).setAttribute("id", "msgRecipientType#" + rowID); | inputElem.setAttribute("id", "addressCol2#" + rowID); awGetPopupElement(row).setAttribute("id", "addressCol1#" + rowID); | function awCleanupRows(){ var maxRecipients = top.MAX_RECIPIENTS; var rowID = 1; for (var row = 1; row <= maxRecipients; row ++) { var inputElem = awGetInputElement(row); if (inputElem.value == "" && row < maxRecipients) awRemoveRow(row); else { inputElem.setAttribute("id", "msgRecipient#" + r... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awClickEmptySpace() | function awClickEmptySpace(setFocus) | function awClickEmptySpace(){ // FIX ME - not currently using this because of a bug in the tree var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(); else awSetFocus(top.MAX_RECIPIENTS, lastInput);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5fef87419a9b4f75b221078c9f3238a0211b0989/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awClickEmptySpace(){ // FIX ME - not currently using this because of a bug in the tree var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(); else awSetFocus(top.MAX_RECIPIENTS, lastInput);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5fef87419a9b4f75b221078c9f3238a0211b0989/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js | ||
awAppendNewRow(); | awAppendNewRow(setFocus); | function awClickEmptySpace(){ // FIX ME - not currently using this because of a bug in the tree var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(); else awSetFocus(top.MAX_RECIPIENTS, lastInput);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5fef87419a9b4f75b221078c9f3238a0211b0989/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awSetFocus(top.MAX_RECIPIENTS, lastInput); | if (setFocus) awSetFocus(top.MAX_RECIPIENTS, lastInput); | function awClickEmptySpace(){ // FIX ME - not currently using this because of a bug in the tree var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(); else awSetFocus(top.MAX_RECIPIENTS, lastInput);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5fef87419a9b4f75b221078c9f3238a0211b0989/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
dump("awClickEmptySpace\n"); | function awClickEmptySpace(setFocus){ var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(setFocus); else if (setFocus) awSetFocus(top.MAX_RECIPIENTS, lastInput);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/774c7525b3495ae83cac8ebf4cba24d194ff2c56/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js | |
if ( lastInput && lastInput.value ) | if ( lastInput && lastInput.input.value ) | function awClickEmptySpace(targ, setFocus){ if (targ.localName != 'treechildren') return; dump("awClickEmptySpace\n"); var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(setFocus); else if (setFocus) awSetFocus(top.MAX_RECIPIENTS, lastInput);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ca57cd6a137b11a14187b542b0652aadae53a1dd/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
return false; | if (! top.notAnEmptyArea) awClickEmptySpace(true); top.notAnEmptyArea=false; return; | function awClickRow(){ dump("awClickRow\n"); return false;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5fef87419a9b4f75b221078c9f3238a0211b0989/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awCopyNodeAndChildren(node){ var newNode; if ( node.nodeName == "#text" ) { // create new text node newNode = document.createTextNode(node.data); } else { // create new node if ( node.nodeName[0] >= 'A' && node.nodeName[0] <= 'Z' ) newNode = createHTML(node.nodeName); else newNode = document.createEl... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5fef87419a9b4f75b221078c9f3238a0211b0989/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js | ||
function awCopyNodeAndChildren(node){ var newNode; if ( node.nodeName == "#text" ) { // create new text node newNode = document.createTextNode(node.data); } else { // create new node if ( node.nodeName[0] >= 'A' && node.nodeName[0] <= 'Z' ) newNode = createHTML(node.nodeName); else newNode = document.createEl... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5fef87419a9b4f75b221078c9f3238a0211b0989/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js | ||
function awCreateDummyItem(aParent) | function awCreateDummyItem(aParent, cols) | function awCreateDummyItem(aParent){ var titem = document.createElement("treeitem"); titem.setAttribute("_isDummyRow", "true"); var trow = document.createElement("treerow"); trow.setAttribute("class", "dummy-row"); trow.setAttribute("onclick", "awDummyRow_onclick()"); titem.appendChild(trow); awCreateDummyCell(t... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awCreateDummyCell(trow); awCreateDummyCell(trow); | for (var i = 0; i < cols; i++) { awCreateDummyCell(trow); } | function awCreateDummyItem(aParent){ var titem = document.createElement("treeitem"); titem.setAttribute("_isDummyRow", "true"); var trow = document.createElement("treerow"); trow.setAttribute("class", "dummy-row"); trow.setAttribute("onclick", "awDummyRow_onclick()"); titem.appendChild(trow); awCreateDummyCell(t... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awCreateDummyItem(aParent, cols) | function awCreateDummyItem(aParent) | function awCreateDummyItem(aParent, cols){ var titem = document.createElement("listitem"); titem.setAttribute("_isDummyRow", "true"); titem.setAttribute("class", "dummy-row"); awCreateDummyCell(titem); awCreateDummyCell(titem); if (aParent) aParent.appendChild(titem); return titem;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awCreateDummyCell(titem); awCreateDummyCell(titem); | for (var i = awGetNumberOfCols(); i > 0; i--) awCreateDummyCell(titem); | function awCreateDummyItem(aParent, cols){ var titem = document.createElement("listitem"); titem.setAttribute("_isDummyRow", "true"); titem.setAttribute("class", "dummy-row"); awCreateDummyCell(titem); awCreateDummyCell(titem); if (aParent) aParent.appendChild(titem); return titem;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awCreateOrRemoveDummyRows() | function awCreateOrRemoveDummyRows(cols) | function awCreateOrRemoveDummyRows(){ var body = document.getElementById("addressWidgetBody"); var bodyHeight = body.boxObject.height; // remove rows to remove scrollbar var kids = body.childNodes; for (var i = kids.length-1; gAWContentHeight > bodyHeight && i >= 0; --i) { if (kids[i].hasAttribute("_isDummyRow"... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awCreateDummyItem(body); | awCreateDummyItem(body, cols); | function awCreateOrRemoveDummyRows(){ var body = document.getElementById("addressWidgetBody"); var bodyHeight = body.boxObject.height; // remove rows to remove scrollbar var kids = body.childNodes; for (var i = kids.length-1; gAWContentHeight > bodyHeight && i >= 0; --i) { if (kids[i].hasAttribute("_isDummyRow"... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awCreateOrRemoveDummyRows(cols) | function awCreateOrRemoveDummyRows() | function awCreateOrRemoveDummyRows(cols){ var listbox = document.getElementById("addressingWidget"); var listboxHeight = listbox.boxObject.height; // remove rows to remove scrollbar var kids = listbox.childNodes; for (var i = kids.length-1; gAWContentHeight > listboxHeight && i >= 0; --i) { if (kids[i].hasAttri... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awCreateDummyItem(listbox, cols); | awCreateDummyItem(listbox); | function awCreateOrRemoveDummyRows(cols){ var listbox = document.getElementById("addressingWidget"); var listboxHeight = listbox.boxObject.height; // remove rows to remove scrollbar var kids = listbox.childNodes; for (var i = kids.length-1; gAWContentHeight > listboxHeight && i >= 0; --i) { if (kids[i].hasAttri... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
inputElement.value = ""; | inputElement.input.value = ""; | function awDeleteHit(inputElement){ var row = awGetRowByInputElement(inputElement); /* 1. don't delete the row if it's the last one remaining, just reset it! */ if (top.MAX_RECIPIENTS <= 1) { inputElement.value = ""; return; } /* 2. Set the focus to the previous field if possible */ if (row > 1) awSet... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ca57cd6a137b11a14187b542b0652aadae53a1dd/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awDeleteHit(inputElement) | function awDeleteHit(inputElement, cols) | function awDeleteHit(inputElement){ var row = awGetRowByInputElement(inputElement); /* 1. don't delete the row if it's the last one remaining, just reset it! */ if (top.MAX_RECIPIENTS <= 1) { inputElement.value = ""; return; } /* 2. Set the focus to the previous field if possible */ if (row > 1) awSetFo... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awDeleteRow(row); | awDeleteRow(row, cols); | function awDeleteHit(inputElement){ var row = awGetRowByInputElement(inputElement); /* 1. don't delete the row if it's the last one remaining, just reset it! */ if (top.MAX_RECIPIENTS <= 1) { inputElement.value = ""; return; } /* 2. Set the focus to the previous field if possible */ if (row > 1) awSetFo... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awDeleteHit(inputElement, cols) | function awDeleteHit(inputElement) | function awDeleteHit(inputElement, cols){ var row = awGetRowByInputElement(inputElement); /* 1. don't delete the row if it's the last one remaining, just reset it! */ if (top.MAX_RECIPIENTS <= 1) { inputElement.value = ""; return; } /* 2. Set the focus to the previous field if possible */ if (row > 1) a... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awDeleteRow(row, cols); | awDeleteRow(row); | function awDeleteHit(inputElement, cols){ var row = awGetRowByInputElement(inputElement); /* 1. don't delete the row if it's the last one remaining, just reset it! */ if (top.MAX_RECIPIENTS <= 1) { inputElement.value = ""; return; } /* 2. Set the focus to the previous field if possible */ if (row > 1) a... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awDeleteRow(rowToDelete) | function awDeleteRow(rowToDelete, cols) | function awDeleteRow(rowToDelete){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; var rowID = rowToDelete; awRemoveRow(rowToDelete); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { awGetInputElement(row).... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
var rowID = rowToDelete; | function awDeleteRow(rowToDelete){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; var rowID = rowToDelete; awRemoveRow(rowToDelete); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { awGetInputElement(row).... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js | |
awRemoveRow(rowToDelete); | awRemoveRow(rowToDelete, cols); | function awDeleteRow(rowToDelete){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; var rowID = rowToDelete; awRemoveRow(rowToDelete); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { awGetInputElement(row).... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awGetInputElement(row).setAttribute("id", "msgRecipient#" + rowID); awGetPopupElement(row).setAttribute("id", "msgRecipientType#" + rowID); rowID ++; | for (var col = 0; col < cols; col++) { awGetElementByCol(row, col+1).setAttribute("id", "addressCol" + (col+1) + "#" + (row-1)); } | function awDeleteRow(rowToDelete){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; var rowID = rowToDelete; awRemoveRow(rowToDelete); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { awGetInputElement(row).... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awDeleteRow(rowToDelete, cols) | function awDeleteRow(rowToDelete) | function awDeleteRow(rowToDelete, cols){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; awRemoveRow(rowToDelete, cols); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { for (var col = 0; col < cols; col++) ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awRemoveRow(rowToDelete, cols); | var numberOfCols = awGetNumberOfCols(); | function awDeleteRow(rowToDelete, cols){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; awRemoveRow(rowToDelete, cols); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { for (var col = 0; col < cols; col++) ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
{ for (var col = 0; col < cols; col++) { awGetElementByCol(row, col+1).setAttribute("id", "addressCol" + (col+1) + "#" + (row-1)); } } | for (var col = 1; col <= numberOfCols; col++) awGetElementByCol(row, col).setAttribute("id", "addressCol" + (col) + "#" + (row-1)); | function awDeleteRow(rowToDelete, cols){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; awRemoveRow(rowToDelete, cols); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { for (var col = 0; col < cols; col++) ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awFitDummyRows() | function awFitDummyRows(cols) | function awFitDummyRows(){ awCalcContentHeight(); awCreateOrRemoveDummyRows();} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awCreateOrRemoveDummyRows(); | awCreateOrRemoveDummyRows(cols); | function awFitDummyRows(){ awCalcContentHeight(); awCreateOrRemoveDummyRows();} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awFitDummyRows(cols) | function awFitDummyRows() | function awFitDummyRows(cols){ awCalcContentHeight(); awCreateOrRemoveDummyRows(cols);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awCreateOrRemoveDummyRows(cols); | awCreateOrRemoveDummyRows(); | function awFitDummyRows(cols){ awCalcContentHeight(); awCreateOrRemoveDummyRows(cols);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
return document.getElementById("address#" + row); | return document.getElementById("addressCol1#" + row); | function awGetInputElement(row){ return document.getElementById("address#" + row);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/abMailListDialog.js/buggy/mailnews/addrbook/resources/content/abMailListDialog.js |
return document.getElementById("msgRecipient#" + row); | return document.getElementById("addressCol2#" + row); | function awGetInputElement(row){ return document.getElementById("msgRecipient#" + row);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
return document.getElementById("msgRecipientType#" + row); | return document.getElementById("addressCol1#" + row); | function awGetPopupElement(row){ return document.getElementById("msgRecipientType#" + row);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
var selectElem = document.getElementById("msgRecipientType#1"); | var selectElem = document.getElementById("addressCol1#1"); | function awGetSelectItemIndex(itemData){ if (selectElementIndexTable == null) { selectElementIndexTable = new Object(); var selectElem = document.getElementById("msgRecipientType#1"); for (var i = 0; i < selectElem.childNodes[0].childNodes.length; i ++) { var aData = selectElem.chil... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awClickEmptySpace(false); | var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value && !top.doNotCreateANewRow) awAppendNewRow(false); top.doNotCreateANewRow = false; | function awInputChanged(inputElement){ dump("awInputChanged\n"); AutoCompleteAddress(inputElement); //call awClickEmptySpace to add a new row if needed awClickEmptySpace(false);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/774c7525b3495ae83cac8ebf4cba24d194ff2c56/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
if ( lastInput && lastInput.value && !top.doNotCreateANewRow) | if ( lastInput && lastInput.input.value && !top.doNotCreateANewRow) | function awInputChanged(inputElement){ dump("awInputChanged\n");// AutoCompleteAddress(inputElement); //Do we need to add a new row? var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value && !top.doNotCreateANewRow) awAppendNewRow(false); top.doNotCreateANewRow = false;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ca57cd6a137b11a14187b542b0652aadae53a1dd/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
AutoCompleteAddress(inputElement); | function awInputChanged(inputElement){ dump("awInputChanged\n"); AutoCompleteAddress(inputElement); //Do we need to add a new row? var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value && !top.doNotCreateANewRow) awAppendNewRow(false); top.doNotCreateANewRow = false;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/1e5a0147f2697a453f20c61f531d08e50dc09179/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js | |
inputElementType = document.getElementById("address#1").localName; | inputElementType = document.getElementById("addressCol1#1").localName; | function awInputElementName(){ if (inputElementType == "") inputElementType = document.getElementById("address#1").localName; return inputElementType;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/abMailListDialog.js/buggy/mailnews/addrbook/resources/content/abMailListDialog.js |
inputElementType = document.getElementById("msgRecipient#1").localName; | inputElementType = document.getElementById("addressCol2#1").localName; | function awInputElementName(){ if (inputElementType == "") inputElementType = document.getElementById("msgRecipient#1").localName; return inputElementType;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awDeleteHit(inputs[0]); | awDeleteHit(inputs[0], 2); | function awKeyDown(event, treeElement){ switch(event.keyCode) { case 46: case 8: /* Warning, the treeElement.selectedItems will change everytime we delete a row */ var selItems = treeElement.selectedItems; var length = treeElement.selectedItems.length; for (var i = 1; i <= length; i++) { var inputs ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awDeleteHit(inputs[0], 2); | awDeleteHit(inputs[0]); | function awKeyDown(event, listboxElement){ switch(event.keyCode) { case 46: case 8: /* Warning, the listboxElement.selectedItems will change everytime we delete a row */ var selItems = listboxElement.selectedItems; var length = listboxElement.selectedItems.length; for (var i = 1; i <= length; i++) { ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awNotAnEmptyArea() | function awNotAnEmptyArea(event) | function awNotAnEmptyArea(){ dump("awNotAnEmptyArea\n"); top.notAnEmptyArea=true; return;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/774c7525b3495ae83cac8ebf4cba24d194ff2c56/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
top.notAnEmptyArea=true; return; | var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(false); event.preventBubble(); | function awNotAnEmptyArea(){ dump("awNotAnEmptyArea\n"); top.notAnEmptyArea=true; return;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/774c7525b3495ae83cac8ebf4cba24d194ff2c56/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
if (!element.value) | if (!element.input.value) | function awRecipientKeyDown(event, element){ switch(event.keyCode) { case 46: case 8: if (!element.value) awDeleteHit(element); event.preventBubble(); //We need to stop the event else the tree will receive it and the function //awKeyDown will be executed! break; }} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ca57cd6a137b11a14187b542b0652aadae53a1dd/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awRecipientKeyDown(event, element) | function awRecipientKeyDown(event, element, cols) | function awRecipientKeyDown(event, element){ switch(event.keyCode) { case 46: case 8: /* do not query directly the value of the text field else the autocomplete widget could potentially alter it value while doing some internal cleanup, instead, query the value through the first child */ if (!element.v... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awDeleteHit(element); | awDeleteHit(element, cols); | function awRecipientKeyDown(event, element){ switch(event.keyCode) { case 46: case 8: /* do not query directly the value of the text field else the autocomplete widget could potentially alter it value while doing some internal cleanup, instead, query the value through the first child */ if (!element.v... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awRecipientKeyDown(event, element, cols) | function awRecipientKeyDown(event, element) | function awRecipientKeyDown(event, element, cols){ switch(event.keyCode) { case 46: case 8: /* do not query directly the value of the text field else the autocomplete widget could potentially alter it value while doing some internal cleanup, instead, query the value through the first child */ if (!ele... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awDeleteHit(element, cols); | awDeleteHit(element); | function awRecipientKeyDown(event, element, cols){ switch(event.keyCode) { case 46: case 8: /* do not query directly the value of the text field else the autocomplete widget could potentially alter it value while doing some internal cleanup, instead, query the value through the first child */ if (!ele... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awRemoveNodeAndChildren(parent, nodeToRemove){ // children of nodes var childNode; while ( nodeToRemove.childNodes && nodeToRemove.childNodes.length ) { childNode = nodeToRemove.childNodes[0]; awRemoveNodeAndChildren(nodeToRemove, childNode); } parent.removeChild(nodeToRemove);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js | ||
if (input.value == recipientArray.StringAt(index)) | if (input.input.value == recipientArray.StringAt(index)) | function awRemoveRecipients(msgCompFields, recipientType, recipientsList){ if (!msgCompFields) return; var recipientArray = msgCompFields.SplitRecipients(recipientsList, false); if (! recipientArray) return; for ( var index = 0; index < recipientArray.count; index++ ) for (var row = 1; row <= top.MAX_REC... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ca57cd6a137b11a14187b542b0652aadae53a1dd/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awRemoveRow(row) | function awRemoveRow(row, cols) | function awRemoveRow(row){ var body = document.getElementById('addressWidgetBody'); awRemoveNodeAndChildren(body, awGetTreeItem(row)); awFitDummyRows(); top.MAX_RECIPIENTS --;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awFitDummyRows(); | awFitDummyRows(cols); | function awRemoveRow(row){ var body = document.getElementById('addressWidgetBody'); awRemoveNodeAndChildren(body, awGetTreeItem(row)); awFitDummyRows(); top.MAX_RECIPIENTS --;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
function awRemoveRow(row, cols) | function awRemoveRow(row) | function awRemoveRow(row, cols){ var listbox = document.getElementById('addressingWidget'); awRemoveNodeAndChildren(listbox, awGetListItem(row)); awFitDummyRows(cols); top.MAX_RECIPIENTS --;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awFitDummyRows(cols); | awFitDummyRows(); | function awRemoveRow(row, cols){ var listbox = document.getElementById('addressingWidget'); awRemoveNodeAndChildren(listbox, awGetListItem(row)); awFitDummyRows(cols); top.MAX_RECIPIENTS --;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awAppendNewRow(); | awAppendNewRow(true); | function awReturnHit(inputElement){ var row = awGetRowByInputElement(inputElement); if ( inputElement.value ) { var nextInput = awGetInputElement(row+1); if ( !nextInput ) awAppendNewRow(); else awSetFocus(row+1, nextInput); } else { // FIX ME - should tab to next field after addressing widget...probably subje... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5fef87419a9b4f75b221078c9f3238a0211b0989/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
else { } | function awReturnHit(inputElement){ var row = awGetRowByInputElement(inputElement); if ( inputElement.value ) { var nextInput = awGetInputElement(row+1); if ( !nextInput ) awAppendNewRow(); else awSetFocus(row+1, nextInput); } else { // FIX ME - should tab to next field after addressing widget...probably subje... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5fef87419a9b4f75b221078c9f3238a0211b0989/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js | |
if ( inputElement.value ) | if ( inputElement.input.value ) | function awReturnHit(inputElement){ var row = awGetRowByInputElement(inputElement); var nextInput = awGetInputElement(row+1); if ( !nextInput ) { if ( inputElement.value ) awAppendNewRow(true); else // No adress entered, switch to Subject field { var subjectField = document.getElementById( 'msgSubject' )... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ca57cd6a137b11a14187b542b0652aadae53a1dd/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
else | else | function awReturnHit(inputElement){ var row = awGetRowByInputElement(inputElement); var nextInput = awGetInputElement(row+1); if ( !nextInput ) { if ( inputElement.value ) awAppendNewRow(true); else // No adress entered, switch to Subject field { var subjectField = document.getElementById( 'msgSu... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
selectElementType = document.getElementById("msgRecipientType#1").localName; | selectElementType = document.getElementById("addressCol1#1").localName; | function awSelectElementName(){ if (selectElementType == "") selectElementType = document.getElementById("msgRecipientType#1").localName; return selectElementType;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
inputElem.setAttribute("id", "msgRecipient#" + rowNumber); popupElem.setAttribute("id", "msgRecipientType#" + rowNumber); | inputElem.setAttribute("id", "addressCol2#" + rowNumber); popupElem.setAttribute("id", "addressCol1#" + rowNumber); | function awSetInputAndPopupValue(inputElem, inputValue, popupElem, popupValue, rowNumber){ // remove leading spaces while (inputValue && inputValue[0] == " " ) inputValue = inputValue.substring(1, inputValue.length); inputElem.setAttribute("value", inputValue); inputElem.value = inputValue; popupElem.selectedIt... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
awCreateOrRemoveDummyRows(); | awCreateOrRemoveDummyRows(2); | function awSizerMouseMove(){ awCreateOrRemoveDummyRows();} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js |
var row = awGetRowByInputElement(element); if (!event.shiftKey && row < top.MAX_RECIPIENTS) { var listBoxRow = row - 1; var listBox = document.getElementById("addressingWidget"); listBox.listBoxObject.ensureIndexIsVisible(listBoxRow + 1); } | function awTabFromRecipient(element, event){ //If we are le last element in the listbox, we don't want to create a new row. if (element == awGetInputElement(top.MAX_RECIPIENTS)) top.doNotCreateANewRow = true;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/f8ab5b772061b05d98c9c31060fb2e47f890c38d/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js | |
var body = document.getElementById('addressWidgetBody'); var treeitems = body.getElementsByTagName('treeitem'); if (treeitems.length == top.MAX_RECIPIENTS ) | var listbox = document.getElementById('addressingWidget'); var listitems = listbox.getElementsByTagName('listitem'); if (listitems.length >= top.MAX_RECIPIENTS ) | function awTestRowSequence(){ /* This function is for debug and testing purpose only, normal user should not run it! Everytime we insert or delete a row, we must be sure we didn't break the ID sequence of the addressing widget rows. This function will run a quick test to see if the sequence still ok You ne... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
for (var i = 1; i <= treeitems.length; i ++) | for (var i = 1; i <= listitems.length; i ++) | function awTestRowSequence(){ /* This function is for debug and testing purpose only, normal user should not run it! Everytime we insert or delete a row, we must be sure we didn't break the ID sequence of the addressing widget rows. This function will run a quick test to see if the sequence still ok You ne... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
var item = treeitems[i - 1]; | var item = listitems [i - 1]; | function awTestRowSequence(){ /* This function is for debug and testing purpose only, normal user should not run it! Everytime we insert or delete a row, we must be sure we didn't break the ID sequence of the addressing widget rows. This function will run a quick test to see if the sequence still ok You ne... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
break; | return false; | function awTestRowSequence(){ /* This function is for debug and testing purpose only, normal user should not run it! Everytime we insert or delete a row, we must be sure we didn't break the ID sequence of the addressing widget rows. This function will run a quick test to see if the sequence still ok You ne... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
dump("---SEQUENCE OK---\n"); return true; | function awTestRowSequence(){ /* This function is for debug and testing purpose only, normal user should not run it! Everytime we insert or delete a row, we must be sure we didn't break the ID sequence of the addressing widget rows. This function will run a quick test to see if the sequence still ok You ne... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js | |
dump("#ERROR: treeitems.length(" + treeitems.length + ") != top.MAX_RECIPIENTS(" + top.MAX_RECIPIENTS + ")\n"); | dump("#ERROR: listitems.length(" + listitems.length + ") < top.MAX_RECIPIENTS(" + top.MAX_RECIPIENTS + ")\n"); | function awTestRowSequence(){ /* This function is for debug and testing purpose only, normal user should not run it! Everytime we insert or delete a row, we must be sure we didn't break the ID sequence of the addressing widget rows. This function will run a quick test to see if the sequence still ok You ne... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/df9c087e48f30597a15a21f59644cde7e070008e/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js |
fp.appendFilter("PKCS12 Files", "*.p12"); | fp.appendFilter(bundle.GetStringFromName("file_browse_PKCS12_spec"), "*.p12"); | function backupCerts(){ getSelectedCerts(); var numcerts = selected_certs.length; if (!numcerts) return; var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); var fp = Components.classes[nsFilePicker].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseP12... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/26fcd4cf0b94cd64d7a9543ca07ac2dce1f50620/certManager.js/buggy/security/manager/pki/resources/content/certManager.js |
dump("Exception caught in 'backupData': " + ex + "\n"); | backupData: function (categoryNameFix) { var currentColor; try { currentColor = categoryPrefBranch.getCharPref(categoryNameFix); } catch (ex) { currentColor = "##NEW"; } for (var i=0; i < parent.backupPrefList.length; i++) { if (categoryNameFix == ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d637ae6ad43674a7a647b13f316377eb2b3f34c2/categories.js/clean/calendar/base/content/preferences/categories.js | |
new Effect.Appear(update,{duration:0.15}); | Effect.Appear(update,{duration:0.15}); | baseInitialize: function(element, update, options) { this.element = $(element); this.update = $(update); this.hasFocus = false; this.changed = false; this.active = false; this.index = 0; this.entryCount = 0; if (this.setOptions) this.setOptions(optio... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
new Effect.Appear(update,{duration:0.15}); | Effect.Appear(update,{duration:0.15}); | baseInitialize: function(element, update, options) { this.element = $(element); this.update = $(update); this.hasFocus = false; this.changed = false; this.active = false; this.index = 0; this.entryCount = 0; if (this.setOptions) this.setOptions(optio... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/railties/html/javascripts/controls.js |
var pps = Components.classes["@mozilla.org/network/protocol-proxy-service;1"]. getService(). QueryInterface(Components.interfaces.nsIProtocolProxyService); | var cls = Components.classes["@mozilla.org/network/protocol-proxy-service;1"]; var pps = cls.getService(Components.interfaces.nsIProtocolProxyService); | function bc_connect(host, port, bind, tcp_flag, observer){ if (typeof tcp_flag == "undefined") tcp_flag = false; this.host = host.toLowerCase(); this.port = port; this.bind = bind; this.tcp_flag = tcp_flag; // Lets get a transportInfo for this var pps = Components.classes["@mozilla.org/network... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7488e28c59de8516f57a041d197a80a62240072b/connection-xpcom.js/buggy/extensions/irc/js/lib/connection-xpcom.js |
{ /* no nspr event queues in this environment, we can't use async calls, * so set up the streams. */ | { /* no nspr event queues in this environment, we can't use async * calls, so set up the streams. */ | function bc_connect(host, port, bind, tcp_flag, observer){ if (typeof tcp_flag == "undefined") tcp_flag = false; this.host = host.toLowerCase(); this.port = port; this.bind = bind; this.tcp_flag = tcp_flag; // Lets get a transportInfo for this var pps = Components.classes["@mozilla.org/network... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7488e28c59de8516f57a041d197a80a62240072b/connection-xpcom.js/buggy/extensions/irc/js/lib/connection-xpcom.js |
toScriptableInputStream(this._transport.openInputStream (0, -1, 0)); | toScriptableInputStream(this._transport.openInputStream(0, -1, 0)); | function bc_connect(host, port, bind, tcp_flag, observer){ if (typeof tcp_flag == "undefined") tcp_flag = false; this.host = host.toLowerCase(); this.port = port; this.bind = bind; this.tcp_flag = tcp_flag; // Lets get a transportInfo for this var pps = Components.classes["@mozilla.org/network... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7488e28c59de8516f57a041d197a80a62240072b/connection-xpcom.js/buggy/extensions/irc/js/lib/connection-xpcom.js |
this._transport = this._sockService.createTransport(null, 0, host, port, info); | this._transport = this._sockService.createTransport(null, 0, host, port, info); | function bc_connect(host, port, bind, tcp_flag, observer){ if (typeof tcp_flag == "undefined") tcp_flag = false; this.host = host.toLowerCase(); this.port = port; this.bind = bind; this.tcp_flag = tcp_flag; // Lets get a transportInfo for this var pps = Components.classes["@mozilla.org/network... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7488e28c59de8516f57a041d197a80a62240072b/connection-xpcom.js/buggy/extensions/irc/js/lib/connection-xpcom.js |
this._outputStream = this._transport.openOutputStream(openFlags, 4096, -1); | this._outputStream = this._transport.openOutputStream(openFlags, 4096, -1); | function bc_connect(host, port, bind, tcp_flag, observer){ if (typeof tcp_flag == "undefined") tcp_flag = false; this.host = host.toLowerCase(); this.port = port; this.bind = bind; this.tcp_flag = tcp_flag; // Lets get a transportInfo for this var pps = Components.classes["@mozilla.org/network... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7488e28c59de8516f57a041d197a80a62240072b/connection-xpcom.js/buggy/extensions/irc/js/lib/connection-xpcom.js |
if (this.isConnected) { this._inputStream.close(); /* .close() not implemented for output streams this._outputStream.close(); */ } | this._inputStream.close(); /* this._streamProvider.close(); if (this._streamProvider.isBlocked) this._write_req.resume(); */ | function bc_disconnect(){ if (this.isConnected) { this._inputStream.close(); /* .close() not implemented for output streams this._outputStream.close(); */ }} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/27364ee9ed40a24f7477a7f212d3113ebc57051d/connection-xpcom.js/clean/extensions/irc/js/lib/connection-xpcom.js |
{ this._inputStream.close(); | { if ("_inputStream" in this && this._inputStream) this._inputStream.close(); | function bc_disconnect(){ this._inputStream.close(); /* this._streamProvider.close(); if (this._streamProvider.isBlocked) this._write_req.resume(); */} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b8511d02e8bcb51d475c1c9a02b7a6f680ba5830/connection-xpcom.js/buggy/extensions/irc/js/lib/connection-xpcom.js |
this._transport.asyncRead (new StreamListener (observer), this, 0, -1, 0); | { this._transport.asyncRead (new StreamListener (observer), this, 0, -1, 0); } | function bc_saread (observer){ if (jsenv.HAS_STREAM_PROVIDER) this._transport.asyncRead (new StreamListener (observer), this, 0, -1, 0); else { var pump = Components.classes["@mozilla.org/network/input-stream-pump;1"]. createInstance(Components.interfaces.nsIInputStreamPump); pu... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7488e28c59de8516f57a041d197a80a62240072b/connection-xpcom.js/buggy/extensions/irc/js/lib/connection-xpcom.js |
var pump = Components.classes["@mozilla.org/network/input-stream-pump;1"]. createInstance(Components.interfaces.nsIInputStreamPump); | var cls = Components.classes["@mozilla.org/network/input-stream-pump;1"]; var pump = cls.createInstance(Components.interfaces.nsIInputStreamPump); | function bc_saread (observer){ if (jsenv.HAS_STREAM_PROVIDER) this._transport.asyncRead (new StreamListener (observer), this, 0, -1, 0); else { var pump = Components.classes["@mozilla.org/network/input-stream-pump;1"]. createInstance(Components.interfaces.nsIInputStreamPump); pu... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7488e28c59de8516f57a041d197a80a62240072b/connection-xpcom.js/buggy/extensions/irc/js/lib/connection-xpcom.js |
var clone = this.size() > 1; | var clone = this.size() > 1; | before: function() { var clone = this.size() > 1; var a = $.clean(arguments); return this.each(function(){ for ( var i in a ) this.parentNode.insertBefore( clone ? a[i].cloneNode(true) : a[i], this ); }); }, | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/130b8a1c030ae7888934fcd8dee6695eac271fcb/jquery.js/clean/jquery/jquery.js |
for ( var i in a ) | for ( var i = 0; i < a.length; i++ ) | before: function() { var clone = this.size() > 1; var a = $.clean(arguments); return this.each(function(){ for ( var i in a ) this.parentNode.insertBefore( clone ? a[i].cloneNode(true) : a[i], this ); }); }, | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c206df28db1d8e6ff7d276ea3d92cde35e0cc640/jquery.js/clean/jquery/jquery.js |
var clone = this.size() > 1; var a = $.clean(arguments); return this.each(function(){ for ( var i = 0; i < a.length; i++ ) this.parentNode.insertBefore( clone ? a[i].cloneNode(true) : a[i], this ); }); }, | var clone = this.size() > 1; var a = $.clean(arguments); return this.each(function(){ for ( var i = 0; i < a.length; i++ ) this.parentNode.insertBefore( clone ? a[i].cloneNode(true) : a[i], this ); }); }, | before: function() { var clone = this.size() > 1; var a = $.clean(arguments); return this.each(function(){ for ( var i = 0; i < a.length; i++ ) this.parentNode.insertBefore( clone ? a[i].cloneNode(true) : a[i], this ); }); }, | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js |
beforeAccept: function () { var proxyTypePref = document.getElementById("network.proxy.type"); if (proxyTypePref.value == 2) { this.doAutoconfigURLFixup(); return true; } if (proxyTypePref.value != 1) return true; var httpProxyURLPref = document.getElementById("network.proxy.http");... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/64f850cdaf73899e8628708d47f23015ef9c7a42/connection.js/clean/browser/components/preferences/connection.js | ||
var noProxiesPref = document.getElementById("network.proxy.no_proxies_on"); noProxiesPref.value = noProxiesPref.value.replace(/[;]/g,','); | beforeAccept: function () { var proxyTypePref = document.getElementById("network.proxy.type"); if (proxyTypePref.value == 2) { this.doAutoconfigURLFixup(); return true; } if (proxyTypePref.value != 1) return true; var httpProxyURLPref = document.getElementById("network.proxy.http");... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/64f850cdaf73899e8628708d47f23015ef9c7a42/connection.js/clean/browser/components/preferences/connection.js | |
headers:{}, | DWREngine.beginBatch = function() { if (DWREngine._batch) { DWREngine._handleError("Batch already started."); return; } // Setup a batch DWREngine._batch = { map:{ callCount:0 }, paramCount:0, ids:[], preHooks:[], postHooks:[] };}; | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/5698e064fd7cfccfcf96b459e1b1024bad78f808/engine.js/buggy/java/org/directwebremoting/engine.js | |
if (DWREngine._batch) { DWREngine._handleError("Batch already started."); return; } DWREngine._batch = {}; DWREngine._batch.map = {}; DWREngine._batch.paramCount = 0; DWREngine._batch.map.callCount = 0; DWREngine._batch.metadata = {}; | if (DWREngine._batch) { DWREngine._handleError("Batch already started."); return; } DWREngine._batch = {}; DWREngine._batch.map = {}; DWREngine._batch.paramCount = 0; DWREngine._batch.map.callCount = 0; DWREngine._batch.metadata = {}; | DWREngine.beginBatch = function() { if (DWREngine._batch) { DWREngine._handleError("Batch already started."); return; } // Setup a batch DWREngine._batch = {}; DWREngine._batch.map = {}; DWREngine._batch.paramCount = 0; DWREngine._batch.map.callCount = 0; DWREngine._batch.metadata ... | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js |
DWREngine.beginBatch = function() { if (DWREngine._batch) { DWREngine._handleError("Batch already started."); return; } // Setup a batch DWREngine._batch = { headers:{}, map:{ callCount:0 }, paramCount:0, ids:[], preHooks:[], postHooks:[] };}; | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/e52d243cc5fdca0e5a21595e0187a99b102489e2/engine.js/clean/java/org/directwebremoting/engine.js | ||
headers:{}, map:{ callCount:0 }, paramCount:0, ids:[], preHooks:[], postHooks:[] | headers:{}, map:{ callCount:0 }, paramCount:0, ids:[], preHooks:[], postHooks:[] | DWREngine.beginBatch = function() { if (DWREngine._batch) { DWREngine._handleError("Batch already started."); return; } // Setup a batch DWREngine._batch = { headers:{}, map:{ callCount:0 }, paramCount:0, ids:[], preHooks:[], postHooks:[] };}; | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/e52d243cc5fdca0e5a21595e0187a99b102489e2/engine.js/clean/java/org/directwebremoting/engine.js |
DWREngine._batch.preHooks = []; DWREngine._batch.postHooks = []; | DWREngine.beginBatch = function() { if (DWREngine._batch) { DWREngine._handleError("Batch already started."); return; } // Setup a batch DWREngine._batch = {}; DWREngine._batch.map = {}; DWREngine._batch.paramCount = 0; DWREngine._batch.map.callCount = 0; DWREngine._batch.metadata = {};}; | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/4b60feb51dda7728db59af5a77dcd95cb3cd6f1c/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js | |
DWREngine.beginBatch = function() { if (DWREngine._batch) { if (DWREngine._errorHandler) { DWREngine._errorHandler("Batch already started."); } | DWREngine.beginBatch = function() { if (DWREngine._batch) { DWREngine._handleError("Batch already started."); | DWREngine.beginBatch = function(){ if (DWREngine._batch) { if (DWREngine._errorHandler) { DWREngine._errorHandler("Batch already started."); } return; } // Setup a batch DWREngine._batch = {}; DWREngine._batch.map = {}; DWREngine._batch.paramCount = 0; DWRE... | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js |
DWREngine.beginBatch = function(){ if (DWREngine._batch) { if (DWREngine._errorHandler) { DWREngine._errorHandler("Batch already started."); } return; } // Setup a batch DWREngine._batch = {}; DWREngine._batch.map = {}; DWREngine._batch.paramCount = 0; DWRE... | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js | ||
ids:[], preHooks:[], postHooks:[] | isPoll:false, ids:[], preHooks:[], postHooks:[] | DWREngine.beginBatch = function() { if (DWREngine._batch) { DWREngine._handleError("Batch already started."); return; } DWREngine._batch = { headers:{}, map:{ callCount:0 }, paramCount:0, ids:[], preHooks:[], postHooks:[] };}; | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/cd758fac9e3f855daeffc9b0e45b4a6ba6761baf/engine.js/clean/java/org/directwebremoting/engine.js |
DWREngine._batch.metadata = {}; | DWREngine._batch.ids = []; | DWREngine.beginBatch = function() { if (DWREngine._batch) { DWREngine._handleError("Batch already started."); return; } // Setup a batch DWREngine._batch = {}; DWREngine._batch.map = {}; DWREngine._batch.paramCount = 0; DWREngine._batch.map.callCount = 0; DWREngine._batch.metadata = {}; DWREngine._batch.... | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/204a8dcf112f6bc2c3897fc4507d023e0e08dfd5/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js |
DWREngine.beginBatch = function() { if (DWREngine._batch) { DWREngine._handleError(null, { name:"dwrengine.batchBegun", message:"Batch already begun" }); | dwr.engine.beginBatch = function() { if (dwr.engine._batch) { dwr.engine._handleError(null, { name:"dwr.engine.batchBegun", message:"Batch already begun" }); | DWREngine.beginBatch = function() { if (DWREngine._batch) { DWREngine._handleError(null, { name:"dwrengine.batchBegun", message:"Batch already begun" }); return; } DWREngine._batch = { headers:{}, map:{ callCount:0 }, paramCount:0, isPoll:false, callIds:[], preHooks:[], postHooks:[] };}; | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.