rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 13
136k
| meta
stringlengths 132
347
|
---|---|---|---|
var menuPopupElement = document.createElement("menupopup"); alert(languagePairs[lang].length); for(var i = 1; i < languagePairs[lang].length ; i++) | /* var menuPopupElement = document.createElement("menupopup"); alert(languagePairs[locale].length); for(var i = 1; i < languagePairs[local].length ; i++) | function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + ... if (selection!="") { var selectedText = selection.toString() if (selectedText.length > 15) { selectedText = selectedText.substr(0,15) + "..."; //selectedText = "true" + selectedText; } var menuText; var item; var sep; item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator"); var lang = 2; var menuPopupElement = document.createElement("menupopup"); alert(languagePairs[lang].length);for(var i = 1; i < languagePairs[lang].length ; i++) { alert("for ok"); var languagePair = languagePairs[lang][i] + "_" + languagePairs[lang][0]; alert(languagePair); var menuItemLabel = "&translate.context.menu." + languagePair + ".label;"; alert(menuItemLabel); var menuItemTooltiptext = "&translate." + languagePair + ".tooltip;" ; alert(menuItemTooltiptext); var menuItemOncommand = "translateSelection('" + languagePair + "');"; alert(menuItemOncommand); var menuItemElement = document.createElement("menuitem"); menuItemElement.setAttribute("label",menuItemLabel); menuItemElement.setAttribute("tooltiptext",menuItemTooltiptext); menuItemElement.setAttribute("oncommand",menuItemOncommand); menuPopupElement.appendChild(menuItemElement); } item.appendChild(menuPopupElement); item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator"); sep.hidden = false; item.hidden = false; menuText = "Translate " + "\"" + selectedText + "\""; item.setAttribute("label", menuText); } else { item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator"); sep.hidden = true; item.hidden = true; } document.getElementById("translateSeparator");.appendChild(menuItemElement); } | 9817 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9817/423110b01481b4c8108fd05971951604f6efe1fe/translate.js/buggy/branch/options/chrome/content/translate.js |
var languagePair = languagePairs[lang][i] + "_" + languagePairs[lang][0]; | var languagePair = languagePairs[locale][i] + "_" + languagePairs[locale][0]; | function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + ... if (selection!="") { var selectedText = selection.toString() if (selectedText.length > 15) { selectedText = selectedText.substr(0,15) + "..."; //selectedText = "true" + selectedText; } var menuText; var item; var sep; item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator"); var lang = 2; var menuPopupElement = document.createElement("menupopup"); alert(languagePairs[lang].length);for(var i = 1; i < languagePairs[lang].length ; i++) { alert("for ok"); var languagePair = languagePairs[lang][i] + "_" + languagePairs[lang][0]; alert(languagePair); var menuItemLabel = "&translate.context.menu." + languagePair + ".label;"; alert(menuItemLabel); var menuItemTooltiptext = "&translate." + languagePair + ".tooltip;" ; alert(menuItemTooltiptext); var menuItemOncommand = "translateSelection('" + languagePair + "');"; alert(menuItemOncommand); var menuItemElement = document.createElement("menuitem"); menuItemElement.setAttribute("label",menuItemLabel); menuItemElement.setAttribute("tooltiptext",menuItemTooltiptext); menuItemElement.setAttribute("oncommand",menuItemOncommand); menuPopupElement.appendChild(menuItemElement); } item.appendChild(menuPopupElement); item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator"); sep.hidden = false; item.hidden = false; menuText = "Translate " + "\"" + selectedText + "\""; item.setAttribute("label", menuText); } else { item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator"); sep.hidden = true; item.hidden = true; } document.getElementById("translateSeparator");.appendChild(menuItemElement); } | 9817 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9817/423110b01481b4c8108fd05971951604f6efe1fe/translate.js/buggy/branch/options/chrome/content/translate.js |
item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator"); | function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + ... if (selection!="") { var selectedText = selection.toString() if (selectedText.length > 15) { selectedText = selectedText.substr(0,15) + "..."; //selectedText = "true" + selectedText; } var menuText; var item; var sep; item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator"); var lang = 2; var menuPopupElement = document.createElement("menupopup"); alert(languagePairs[lang].length);for(var i = 1; i < languagePairs[lang].length ; i++) { alert("for ok"); var languagePair = languagePairs[lang][i] + "_" + languagePairs[lang][0]; alert(languagePair); var menuItemLabel = "&translate.context.menu." + languagePair + ".label;"; alert(menuItemLabel); var menuItemTooltiptext = "&translate." + languagePair + ".tooltip;" ; alert(menuItemTooltiptext); var menuItemOncommand = "translateSelection('" + languagePair + "');"; alert(menuItemOncommand); var menuItemElement = document.createElement("menuitem"); menuItemElement.setAttribute("label",menuItemLabel); menuItemElement.setAttribute("tooltiptext",menuItemTooltiptext); menuItemElement.setAttribute("oncommand",menuItemOncommand); menuPopupElement.appendChild(menuItemElement); } item.appendChild(menuPopupElement); item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator"); sep.hidden = false; item.hidden = false; menuText = "Translate " + "\"" + selectedText + "\""; item.setAttribute("label", menuText); } else { item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator"); sep.hidden = true; item.hidden = true; } document.getElementById("translateSeparator");.appendChild(menuItemElement); } | 9817 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9817/423110b01481b4c8108fd05971951604f6efe1fe/translate.js/buggy/branch/options/chrome/content/translate.js |
|
document.getElementById("translateSeparator");.appendChild(menuItemElement); | function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + ... if (selection!="") { var selectedText = selection.toString() if (selectedText.length > 15) { selectedText = selectedText.substr(0,15) + "..."; //selectedText = "true" + selectedText; } var menuText; var item; var sep; item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator"); var lang = 2; var menuPopupElement = document.createElement("menupopup"); alert(languagePairs[lang].length);for(var i = 1; i < languagePairs[lang].length ; i++) { alert("for ok"); var languagePair = languagePairs[lang][i] + "_" + languagePairs[lang][0]; alert(languagePair); var menuItemLabel = "&translate.context.menu." + languagePair + ".label;"; alert(menuItemLabel); var menuItemTooltiptext = "&translate." + languagePair + ".tooltip;" ; alert(menuItemTooltiptext); var menuItemOncommand = "translateSelection('" + languagePair + "');"; alert(menuItemOncommand); var menuItemElement = document.createElement("menuitem"); menuItemElement.setAttribute("label",menuItemLabel); menuItemElement.setAttribute("tooltiptext",menuItemTooltiptext); menuItemElement.setAttribute("oncommand",menuItemOncommand); menuPopupElement.appendChild(menuItemElement); } item.appendChild(menuPopupElement); item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator"); sep.hidden = false; item.hidden = false; menuText = "Translate " + "\"" + selectedText + "\""; item.setAttribute("label", menuText); } else { item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator"); sep.hidden = true; item.hidden = true; } document.getElementById("translateSeparator");.appendChild(menuItemElement); } | 9817 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9817/423110b01481b4c8108fd05971951604f6efe1fe/translate.js/buggy/branch/options/chrome/content/translate.js |
|
this.defaultWheelDown(); | this.defaultWheelDown(e); | onWheelEvent: function(e){ // first determine whether or not the wheeling was inside the map var inMap = false; var elem = OpenLayers.Event.element(e); while(elem != null) { if (this.map && elem == this.map.div) { inMap = true; break; } elem = elem.parentNode; } if (inMap) { var delta = 0; if (!e) { e = window.event; } if (e.wheelDelta) { delta = e.wheelDelta/120; if (window.opera) { delta = -delta; } } else if (e.detail) { delta = -e.detail / 3; } if (delta) { if (delta < 0) { this.defaultWheelDown(); } else { this.defaultWheelUp(); } } //only wheel the map, not the window OpenLayers.Event.stop(e); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/15c2ab578fabf2c24ed636bbb490243d82a68076/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js |
this.defaultWheelUp(); | this.defaultWheelUp(e); | onWheelEvent: function(e){ // first determine whether or not the wheeling was inside the map var inMap = false; var elem = OpenLayers.Event.element(e); while(elem != null) { if (this.map && elem == this.map.div) { inMap = true; break; } elem = elem.parentNode; } if (inMap) { var delta = 0; if (!e) { e = window.event; } if (e.wheelDelta) { delta = e.wheelDelta/120; if (window.opera) { delta = -delta; } } else if (e.detail) { delta = -e.detail / 3; } if (delta) { if (delta < 0) { this.defaultWheelDown(); } else { this.defaultWheelUp(); } } //only wheel the map, not the window OpenLayers.Event.stop(e); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/15c2ab578fabf2c24ed636bbb490243d82a68076/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js |
this.defaultWheelDown(); | this.defaultWheelDown(e); | onWheelEvent: function(e){ // first determine whether or not the wheeling was inside the map var inMap = false; var elem = OpenLayers.Event.element(e); while(elem != null) { if (this.map && elem == this.map.div) { inMap = true; break; } elem = elem.parentNode; } if (inMap) { var delta = 0; if (!e) { e = window.event; } if (e.wheelDelta) { delta = e.wheelDelta/120; if (window.opera) { delta = -delta; } } else if (e.detail) { delta = -e.detail / 3; } if (delta) { if (delta < 0) { this.defaultWheelDown(); } else { this.defaultWheelUp(); } } //only wheel the map, not the window OpenLayers.Event.stop(e); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/15c2ab578fabf2c24ed636bbb490243d82a68076/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js |
this.defaultWheelUp(); | this.defaultWheelUp(e); | onWheelEvent: function(e){ // first determine whether or not the wheeling was inside the map var inMap = false; var elem = OpenLayers.Event.element(e); while(elem != null) { if (this.map && elem == this.map.div) { inMap = true; break; } elem = elem.parentNode; } if (inMap) { var delta = 0; if (!e) { e = window.event; } if (e.wheelDelta) { delta = e.wheelDelta/120; if (window.opera) { delta = -delta; } } else if (e.detail) { delta = -e.detail / 3; } if (delta) { if (delta < 0) { this.defaultWheelDown(); } else { this.defaultWheelUp(); } } //only wheel the map, not the window OpenLayers.Event.stop(e); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/15c2ab578fabf2c24ed636bbb490243d82a68076/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js |
return originalOpen(newUrl, two); | return originalOpen(newUrl, windowName, windowFeatures, replaceFlag); | windowToModify.open = function(url, windowName, windowFeatures, replaceFlag) { if (url.startsWith("http://") || url.startsWith("https://") || url.startsWith("/")) { return originalOpen(url, windowName, windowFeatures, replaceFlag); } // Reduce the current path to the directory var currentPath = windowToModify.location.pathname || "/"; currentPath = currentPath.replace(/\/[^\/]*$/, "/"); // Remove any leading "./" from the new url. url = url.replace(/^\.\//, ""); newUrl = currentPath + url; return originalOpen(newUrl, two); }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/3e1a42f9a649c59c24f202492560d72c0b691eb2/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js |
return originalOpen(newUrl, two); | return originalOpen(newUrl, windowName, windowFeatures, replaceFlag); | windowToModify.open = function(url, windowName, windowFeatures, replaceFlag) { if (url.startsWith("http://") || url.startsWith("https://") || url.startsWith("/")) { return originalOpen(url, windowName, windowFeatures, replaceFlag); } // Reduce the current path to the directory var currentPath = windowToModify.location.pathname || "/"; currentPath = currentPath.replace(/\/[^\/]*$/, "/"); // Remove any leading "./" from the new url. url = url.replace(/^\.\//, ""); newUrl = currentPath + url; return originalOpen(newUrl, two); }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/392961261f4ecac84ce9915cac37bd26394ba083/selenium-browserbot.js/clean/code/javascript/selenium-browserbot.js |
NewWindow('/cgi-bin/getcurrentepg2?ref='+xy, 'EPG', '600', '700', 'yes'); | NewWindow('/getcurrentepg2?ref='+xy, 'EPG', '600', '700', 'yes'); | function openEPG(xy){ NewWindow('/cgi-bin/getcurrentepg2?ref='+xy, 'EPG', '600', '700', 'yes');} | 6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/b688a21e909847df1756bbf702e2682959202cd0/index.js/clean/tuxbox/enigma/data/htdocs/index.js |
if (xy == undefined) xy = ""; | function openEPG(xy){ NewWindow('/getcurrentepg2?ref='+xy, 'EPG', screen.width, screen.height, 'yes');} | 6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/888302f8be792a5dfea4ed2969c0274048ba48ac/index.js/clean/tuxbox/enigma/data/htdocs/index.js |
|
currentDocument = null; | function openLocation(target, onloadCallback) { var el = new SelfRemovingLoadListener(onloadCallback); addLoadListener(getIframe(), el.invoke); getIframe().src = target;} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/372f0fea11088c31100c973444ebeb1c27022a77/selenium-browserbot.js/clean/javascript/selenium-browserbot.js |
|
currentDocument = null; | function openLocation(target, onloadCallback) { var el = new SelfRemovingLoadListener(onloadCallback); addLoadListener(getIframe(), el.invoke); getIframe().src = target;} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/b845efcbd913c9121c01866d3803959609b3585d/selenium-browserbot.js/buggy/javascript/selenium-browserbot.js |
|
"SeleniumLog.html", "SeleniumLog", | getDocumentBase(document) + "SeleniumLog.html", "SeleniumLog", | openLogWindow: function() { this.logWindow = window.open( "SeleniumLog.html", "SeleniumLog", "width=600,height=250,bottom=0,right=0,status,scrollbars,resizable" ); return this.logWindow; }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/b89eae6caef41d28a2b952919757a0f66c120dae/selenium-logging.js/clean/code/javascript/core/scripts/selenium-logging.js |
if (browserVersion.appearsToBeBrokenInitialIE6) { var pendingMessage = new LogMessage("warn", "You appear to be running an unpatched IE 6, which is not stable and can crash due to memory problems. We recommend you run Windows update to install a more stable version of IE."); this.pendingMessages.push(pendingMessage); } | openLogWindow: function() { this.logWindow = window.open( getDocumentBase(document) + "SeleniumLog.html", "SeleniumLog", "width=600,height=1000,bottom=0,right=0,status,scrollbars,resizable" ); this.logWindow.moveTo(window.screenX + 1210, window.screenY + window.outerHeight - 1400); return this.logWindow; }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/2926652532e34f5b463decd00e6cb0836ad65b1d/selenium-logging.js/clean/code/javascript/core/scripts/selenium-logging.js |
|
NewWindow('/cgi-bin/getMultiEPG?ref='+xy, 'MultiEPG', '1000', '800', 'yes'); | NewWindow('/getMultiEPG?ref='+xy, 'MultiEPG', screen.width, screen.height, 'yes'); | function openMultiEPG(xy){ NewWindow('/cgi-bin/getMultiEPG?ref='+xy, 'MultiEPG', '1000', '800', 'yes');} | 6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/f35cbb3fb41ebcf6b642f19e8e4d03110f553123/index.js/buggy/tuxbox/enigma/data/htdocs/index.js |
dojo.debug("closed popup."); | function openPopup(url, width, height, formid, action, loadfunc) { closePopup(); var objOverlay = document.getElementById("dialogoverlay"); if(!objOverlay) { var objBody = document.getElementsByTagName("body").item(0); objOverlay = document.createElement("div"); objOverlay.setAttribute('id','dialogoverlay'); objOverlay.onclick = function () {closePopup(); return false;} objOverlay.style.display = 'none'; objOverlay.style.position = 'absolute'; objOverlay.style.top = '0'; objOverlay.style.left = '0'; objOverlay.style.zIndex = '90'; objOverlay.style.width = ((dojo.html.getViewportWidth() + dojo.html.getScrollLeft() + 10) || 2000) + "px"; objBody.insertBefore(objOverlay, null); } var arrayPageSize = getPageSize(); var arrayPageScroll = getPageScroll(); // set height of Overlay to take up whole page and show objOverlay.style.height = (arrayPageSize[1] + 'px'); dojo.debug("page height: " + arrayPageSize[1]); dojo.debug("page width: " + objOverlay.style.width); objOverlay.style.display = 'block';var block = document.getElementById("popup");if (!block) {var body = dojo.html.body();block = document.createElement("div");block.setAttribute("id", "popup");block.className = "rounded rc-parentcolor-404040";block.style.display = "none";block.style.position = "absolute";block.style.width = width;if(height) block.style.height= height;//block.style.padding;block.style.zIndex = "400";block.style.background = "Window";block.style.backgroundColor = "#FFEB99";body.appendChild(block);}var block1 = document.getElementById("popup_close");if(!block1){ block1 = document.createElement("div"); block1.style.padding="0px"; block1.style.textAlign = "right"; block1.style.width="100%"; block1.setAttribute("id", "popup_close"); block1.innerHTML="<a href=\"#\" onclick=\"closePopup(); return false;\"><img border=\"0\" src=\"/static/images/close.gif\"></a> "; block.appendChild(block1);}var block2 = document.getElementById("popup_contents");if(!block2){ block2 = document.createElement("div"); block2.style.padding="0px 20px 20px 20px"; block2.setAttribute("id", "popup_contents"); block.appendChild(block2);}var bindArgs = { url: url, content: {ajax: "1"}, method: "POST", mimetype: "text/plain", error: function(type, errObj){ alert("error"); }, load: function(type, data, evt){ // handle successful response here block2.innerHTML = data.toString(); objOverlay.style.width = dojo.html.getViewportWidth() + dojo.html.getScrollLeft() + 10; var h = block.offsetHeight || block.style.pixelHeight || (block.currentStyle && block.currentStyle.height) || block.height; if(h && dojo.lang.isNumber(h)) h = ((dojo.html.getViewportHeight()) - h) / 2 else h = 20; var blockTop = dojo.html.getScrollTop() + h; h = block.offsetWidth || block.style.pixelWidth || (block.currentStyle && block.currentStyle.width) || block.width; if(h && dojo.lang.isNumber(h)) h = ((dojo.html.getViewportWidth()) - h) / 2 else h = 20; var blockLeft = dojo.html.getScrollLeft() + h; block.style.top = (blockTop < 0) ? "0px" : blockTop + "px"; block.style.left = (blockLeft < 0) ? "0px" : blockLeft + "px"; make_corners();dojo.debug("made corners."); dojo.fx.html.fadeShow(block, 200, function(){ arrayPageSize = getPageSize(); objOverlay.style.width = (arrayPageSize[2] + 'px'); objOverlay.style.height = (arrayPageSize[1] + 'px');dojo.debug("showing item."); if(loadfunc) loadfunc();}); // After image is loaded, update the overlay height as the new image might have // increased the overall page height. } }; if(formid) { var form = document.getElementById(formid); if(form) bindArgs.formNode = form; if(action && form) { document.getElementById("action").value=action; } }// dispatch the request var requestObj = dojo.io.bind(bindArgs); } | 1857 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1857/516705b8f0b226d950d4b984f1f7bd320363a288/menulayer.js/buggy/static/javascripts/menulayer.js |
|
dojo.debug("making corners."); | function openPopup(url, width, height, formid, action, loadfunc) { closePopup(); var objOverlay = document.getElementById("dialogoverlay"); if(!objOverlay) { var objBody = document.getElementsByTagName("body").item(0); objOverlay = document.createElement("div"); objOverlay.setAttribute('id','dialogoverlay'); objOverlay.onclick = function () {closePopup(); return false;} objOverlay.style.display = 'none'; objOverlay.style.position = 'absolute'; objOverlay.style.top = '0'; objOverlay.style.left = '0'; objOverlay.style.zIndex = '90'; objOverlay.style.width = ((dojo.html.getViewportWidth() + dojo.html.getScrollLeft() + 10) || 2000) + "px"; objBody.insertBefore(objOverlay, null); } var arrayPageSize = getPageSize(); var arrayPageScroll = getPageScroll(); // set height of Overlay to take up whole page and show objOverlay.style.height = (arrayPageSize[1] + 'px'); dojo.debug("page height: " + arrayPageSize[1]); dojo.debug("page width: " + objOverlay.style.width); objOverlay.style.display = 'block';var block = document.getElementById("popup");if (!block) {var body = dojo.html.body();block = document.createElement("div");block.setAttribute("id", "popup");block.className = "rounded rc-parentcolor-404040";block.style.display = "none";block.style.position = "absolute";block.style.width = width;if(height) block.style.height= height;//block.style.padding;block.style.zIndex = "400";block.style.background = "Window";block.style.backgroundColor = "#FFEB99";body.appendChild(block);}var block1 = document.getElementById("popup_close");if(!block1){ block1 = document.createElement("div"); block1.style.padding="0px"; block1.style.textAlign = "right"; block1.style.width="100%"; block1.setAttribute("id", "popup_close"); block1.innerHTML="<a href=\"#\" onclick=\"closePopup(); return false;\"><img border=\"0\" src=\"/static/images/close.gif\"></a> "; block.appendChild(block1);}var block2 = document.getElementById("popup_contents");if(!block2){ block2 = document.createElement("div"); block2.style.padding="0px 20px 20px 20px"; block2.setAttribute("id", "popup_contents"); block.appendChild(block2);}var bindArgs = { url: url, content: {ajax: "1"}, method: "POST", mimetype: "text/plain", error: function(type, errObj){ alert("error"); }, load: function(type, data, evt){ // handle successful response here block2.innerHTML = data.toString(); objOverlay.style.width = dojo.html.getViewportWidth() + dojo.html.getScrollLeft() + 10; var h = block.offsetHeight || block.style.pixelHeight || (block.currentStyle && block.currentStyle.height) || block.height; if(h && dojo.lang.isNumber(h)) h = ((dojo.html.getViewportHeight()) - h) / 2 else h = 20; var blockTop = dojo.html.getScrollTop() + h; h = block.offsetWidth || block.style.pixelWidth || (block.currentStyle && block.currentStyle.width) || block.width; if(h && dojo.lang.isNumber(h)) h = ((dojo.html.getViewportWidth()) - h) / 2 else h = 20; var blockLeft = dojo.html.getScrollLeft() + h; block.style.top = (blockTop < 0) ? "0px" : blockTop + "px"; block.style.left = (blockLeft < 0) ? "0px" : blockLeft + "px"; make_corners();dojo.debug("made corners."); dojo.fx.html.fadeShow(block, 200, function(){ arrayPageSize = getPageSize(); objOverlay.style.width = (arrayPageSize[2] + 'px'); objOverlay.style.height = (arrayPageSize[1] + 'px');dojo.debug("showing item."); if(loadfunc) loadfunc();}); // After image is loaded, update the overlay height as the new image might have // increased the overall page height. } }; if(formid) { var form = document.getElementById(formid); if(form) bindArgs.formNode = form; if(action && form) { document.getElementById("action").value=action; } }// dispatch the request var requestObj = dojo.io.bind(bindArgs); } | 1857 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1857/516705b8f0b226d950d4b984f1f7bd320363a288/menulayer.js/buggy/static/javascripts/menulayer.js |
|
if (tinyMCE.isMSIE) | if (tinyMCE.isIE) | openWindow : function(template, args) { var html, width, height, x, y, resizable, scrollbars, url; args['mce_template_file'] = template['file']; args['mce_width'] = template['width']; args['mce_height'] = template['height']; tinyMCE.windowArgs = args; html = template['html']; if (!(width = parseInt(template['width']))) width = 320; if (!(height = parseInt(template['height']))) height = 200; // Add to height in M$ due to SP2 WHY DON'T YOU GUYS IMPLEMENT innerWidth of windows!! if (tinyMCE.isMSIE) height += 40; else height += 20; x = parseInt(screen.width / 2.0) - (width / 2.0); y = parseInt(screen.height / 2.0) - (height / 2.0); resizable = (args && args['resizable']) ? args['resizable'] : "no"; scrollbars = (args && args['scrollbars']) ? args['scrollbars'] : "no"; if (template['file'].charAt(0) != '/' && template['file'].indexOf('://') == -1) url = tinyMCE.baseURL + "/themes/" + tinyMCE.getParam("theme") + "/" + template['file']; else url = template['file']; // Replace all args as variables in URL for (var name in args) { if (typeof(args[name]) == 'function') continue; url = tinyMCE.replaceVar(url, name, escape(args[name])); } if (html) { html = tinyMCE.replaceVar(html, "css", this.settings['popups_css']); html = tinyMCE.applyTemplate(html, args); var win = window.open("", "mcePopup" + new Date().getTime(), "top=" + y + ",left=" + x + ",scrollbars=" + scrollbars + ",dialog=yes,minimizable=" + resizable + ",modal=yes,width=" + width + ",height=" + height + ",resizable=" + resizable); if (win == null) { alert(tinyMCELang['lang_popup_blocked']); return; } win.document.write(html); win.document.close(); win.resizeTo(width, height); win.focus(); } else { if ((tinyMCE.isMSIE && !tinyMCE.isOpera) && resizable != 'yes' && tinyMCE.settings["dialog_type"] == "modal") { height += 10; var features = "resizable:" + resizable + ";scroll:" + scrollbars + ";status:yes;center:yes;help:no;dialogWidth:" + width + "px;dialogHeight:" + height + "px;"; window.showModalDialog(url, window, features); } else { var modal = (resizable == "yes") ? "no" : "yes"; if (tinyMCE.isGecko && tinyMCE.isMac) modal = "no"; if (template['close_previous'] != "no") try {tinyMCE.lastWindow.close();} catch (ex) {} var win = window.open(url, "mcePopup" + new Date().getTime(), "top=" + y + ",left=" + x + ",scrollbars=" + scrollbars + ",dialog=" + modal + ",minimizable=" + resizable + ",modal=" + modal + ",width=" + width + ",height=" + height + ",resizable=" + resizable); if (win == null) { alert(tinyMCELang['lang_popup_blocked']); return; } if (template['close_previous'] != "no") tinyMCE.lastWindow = win; eval('try { win.resizeTo(width, height); } catch(e) { }'); // Make it bigger if statusbar is forced if (tinyMCE.isGecko) { if (win.document.defaultView.statusbar.visible) win.resizeBy(0, tinyMCE.isMac ? 10 : 24); } win.focus(); } } }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
if ((tinyMCE.isMSIE && !tinyMCE.isOpera) && resizable != 'yes' && tinyMCE.settings["dialog_type"] == "modal") { | if ((tinyMCE.isRealIE) && resizable != 'yes' && tinyMCE.settings["dialog_type"] == "modal") { | openWindow : function(template, args) { var html, width, height, x, y, resizable, scrollbars, url; args['mce_template_file'] = template['file']; args['mce_width'] = template['width']; args['mce_height'] = template['height']; tinyMCE.windowArgs = args; html = template['html']; if (!(width = parseInt(template['width']))) width = 320; if (!(height = parseInt(template['height']))) height = 200; // Add to height in M$ due to SP2 WHY DON'T YOU GUYS IMPLEMENT innerWidth of windows!! if (tinyMCE.isMSIE) height += 40; else height += 20; x = parseInt(screen.width / 2.0) - (width / 2.0); y = parseInt(screen.height / 2.0) - (height / 2.0); resizable = (args && args['resizable']) ? args['resizable'] : "no"; scrollbars = (args && args['scrollbars']) ? args['scrollbars'] : "no"; if (template['file'].charAt(0) != '/' && template['file'].indexOf('://') == -1) url = tinyMCE.baseURL + "/themes/" + tinyMCE.getParam("theme") + "/" + template['file']; else url = template['file']; // Replace all args as variables in URL for (var name in args) { if (typeof(args[name]) == 'function') continue; url = tinyMCE.replaceVar(url, name, escape(args[name])); } if (html) { html = tinyMCE.replaceVar(html, "css", this.settings['popups_css']); html = tinyMCE.applyTemplate(html, args); var win = window.open("", "mcePopup" + new Date().getTime(), "top=" + y + ",left=" + x + ",scrollbars=" + scrollbars + ",dialog=yes,minimizable=" + resizable + ",modal=yes,width=" + width + ",height=" + height + ",resizable=" + resizable); if (win == null) { alert(tinyMCELang['lang_popup_blocked']); return; } win.document.write(html); win.document.close(); win.resizeTo(width, height); win.focus(); } else { if ((tinyMCE.isMSIE && !tinyMCE.isOpera) && resizable != 'yes' && tinyMCE.settings["dialog_type"] == "modal") { height += 10; var features = "resizable:" + resizable + ";scroll:" + scrollbars + ";status:yes;center:yes;help:no;dialogWidth:" + width + "px;dialogHeight:" + height + "px;"; window.showModalDialog(url, window, features); } else { var modal = (resizable == "yes") ? "no" : "yes"; if (tinyMCE.isGecko && tinyMCE.isMac) modal = "no"; if (template['close_previous'] != "no") try {tinyMCE.lastWindow.close();} catch (ex) {} var win = window.open(url, "mcePopup" + new Date().getTime(), "top=" + y + ",left=" + x + ",scrollbars=" + scrollbars + ",dialog=" + modal + ",minimizable=" + resizable + ",modal=" + modal + ",width=" + width + ",height=" + height + ",resizable=" + resizable); if (win == null) { alert(tinyMCELang['lang_popup_blocked']); return; } if (template['close_previous'] != "no") tinyMCE.lastWindow = win; eval('try { win.resizeTo(width, height); } catch(e) { }'); // Make it bigger if statusbar is forced if (tinyMCE.isGecko) { if (win.document.defaultView.statusbar.visible) win.resizeBy(0, tinyMCE.isMac ? 10 : 24); } win.focus(); } } }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
var TinyMCE_InlinePopupsPlugin={getInfo:function(){return{longname:'Inline Popups',author:'Moxiecode Systems',authorurl:'http: | var TinyMCE_InlinePopupsPlugin={getInfo:function(){return{longname:'Inline Popups',author:'Moxiecode Systems AB',authorurl:'http: | var TinyMCE_InlinePopupsPlugin={getInfo:function(){return{longname:'Inline Popups',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_inlinepopups.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};}};tinyMCE.addPlugin("inlinepopups",TinyMCE_InlinePopupsPlugin);TinyMCE_Engine.prototype.orgOpenWindow=TinyMCE_Engine.prototype.openWindow;TinyMCE_Engine.prototype.openWindow=function(template,args){if(args['inline']!="yes"||tinyMCE.isOpera||tinyMCE.getParam("plugins").indexOf('inlinepopups')==-1){mcWindows.selectedWindow=null;args['mce_inside_iframe']=false;this.orgOpenWindow(template,args);return;}var url,resizable,scrollbars;args['mce_inside_iframe']=true;tinyMCE.windowArgs=args;if(template['file'].charAt(0)!='/'&&template['file'].indexOf('://')==-1)url=tinyMCE.baseURL+"/themes/"+tinyMCE.getParam("theme")+"/"+template['file'];else url=template['file'];if(!(width=parseInt(template['width'])))width=320;if(!(height=parseInt(template['height'])))height=200;resizable=(args&&args['resizable'])?args['resizable']:"no";scrollbars=(args&&args['scrollbars'])?args['scrollbars']:"no";height+=18;for(var name in args){if(typeof(args[name])=='function')continue;url=tinyMCE.replaceVar(url,name,escape(args[name]));}var elm=document.getElementById(this.selectedInstance.editorId+'_parent');var pos=tinyMCE.getAbsPosition(elm);pos.absLeft+=Math.round((elm.firstChild.clientWidth/2)-(width/2));pos.absTop+=Math.round((elm.firstChild.clientHeight/2)-(height/2));mcWindows.open(url,mcWindows.idCounter++,"modal=yes,width="+width+",height="+height+",resizable="+resizable+",scrollbars="+scrollbars+",statusbar="+resizable+",left="+pos.absLeft+",top="+pos.absTop);};TinyMCE_Engine.prototype.orgCloseWindow=TinyMCE_Engine.prototype.closeWindow;TinyMCE_Engine.prototype.closeWindow=function(win){if(mcWindows.selectedWindow!=null)mcWindows.selectedWindow.close();else this.orgCloseWindow(win);};TinyMCE_Engine.prototype.setWindowTitle=function(win_ref,title){for(var n in mcWindows.windows){var win=mcWindows.windows[n];if(typeof(win)=='function')continue;if(win_ref.name==win.id+"_iframe")window.frames[win.id+"_iframe"].document.getElementById(win.id+'_title').innerHTML=title;}};function TinyMCE_Windows(){this.settings=new Array();this.windows=new Array();this.isMSIE=(navigator.appName=="Microsoft Internet Explorer");this.isGecko=navigator.userAgent.indexOf('Gecko')!=-1;this.isSafari=navigator.userAgent.indexOf('Safari')!=-1;this.isMac=navigator.userAgent.indexOf('Mac')!=-1;this.isMSIE5_0=this.isMSIE&&(navigator.userAgent.indexOf('MSIE 5.0')!=-1);this.action="none";this.selectedWindow=null;this.lastSelectedWindow=null;this.zindex=100;this.mouseDownScreenX=0;this.mouseDownScreenY=0;this.mouseDownLayerX=0;this.mouseDownLayerY=0;this.mouseDownWidth=0;this.mouseDownHeight=0;this.idCounter=0;};TinyMCE_Windows.prototype.init=function(settings){this.settings=settings;if(this.isMSIE)this.addEvent(document,"mousemove",mcWindows.eventDispatcher);else this.addEvent(window,"mousemove",mcWindows.eventDispatcher);this.addEvent(document,"mouseup",mcWindows.eventDispatcher);this.doc=document;};TinyMCE_Windows.prototype.getParam=function(name,default_value){var value=null;value=(typeof(this.settings[name])=="undefined")?default_value:this.settings[name];if(value=="true"||value=="false")return(value=="true");return value;};TinyMCE_Windows.prototype.eventDispatcher=function(e){e=typeof(e)=="undefined"?window.event:e;if(mcWindows.selectedWindow==null)return;if(mcWindows.isGecko&&e.type=="mousedown"){var elm=e.currentTarget;for(var n in mcWindows.windows){var win=mcWindows.windows[n];if(win.headElement==elm||win.resizeElement==elm){win.focus();break;}}}switch(e.type){case"mousemove":mcWindows.selectedWindow.onMouseMove(e);break;case"mouseup":mcWindows.selectedWindow.onMouseUp(e);break;case"mousedown":mcWindows.selectedWindow.onMouseDown(e);break;case"focus":mcWindows.selectedWindow.onFocus(e);break;}};TinyMCE_Windows.prototype.addEvent=function(obj,name,handler){if(this.isMSIE)obj.attachEvent("on"+name,handler);else obj.addEventListener(name,handler,true);};TinyMCE_Windows.prototype.cancelEvent=function(e){if(this.isMSIE){e.returnValue=false;e.cancelBubble=true;}else e.preventDefault();};TinyMCE_Windows.prototype.parseFeatures=function(opts){opts=opts.toLowerCase();opts=opts.replace(/;/g,",");opts=opts.replace(/[^0-9a-z=,]/g,"");var optionChunks=opts.split(',');var options=new Array();options['left']="10";options['top']="10";options['width']="300";options['height']="300";options['resizable']="yes";options['minimizable']="yes";options['maximizable']="yes";options['close']="yes";options['movable']="yes";options['statusbar']="yes";options['scrollbars']="auto";options['modal']="no";if(opts=="")return options;for(var i=0;i<optionChunks.length;i++){var parts=optionChunks[i].split('=');if(parts.length==2)options[parts[0]]=parts[1];}options['left']=parseInt(options['left']);options['top']=parseInt(options['top']);options['width']=parseInt(options['width']);options['height']=parseInt(options['height']);return options;};TinyMCE_Windows.prototype.open=function(url,name,features){this.lastSelectedWindow=this.selectedWindow;var win=new TinyMCE_Window();var winDiv,html="",id;var imgPath=this.getParam("images_path");features=this.parseFeatures(features);id="mcWindow_"+name;win.deltaHeight=18;if(features['statusbar']=="yes"){win.deltaHeight+=13;if(this.isMSIE)win.deltaHeight+=1;}width=parseInt(features['width']);height=parseInt(features['height'])-win.deltaHeight;if(this.isMSIE)width-=2;win.id=id;win.url=url;win.name=name;win.features=features;this.windows[name]=win;iframeWidth=width;iframeHeight=height;html+='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">';html+='<html>';html+='<head>';html+='<title>Wrapper iframe</title>';html+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';html+='<link href="'+this.getParam("css_file")+'" rel="stylesheet" type="text/css" />';html+='</head>';html+='<body onload="parent.mcWindows.onLoad(\''+name+'\');">';html+='<div id="'+id+'_container" class="mceWindow">';html+='<div id="'+id+'_head" class="mceWindowHead" onmousedown="parent.mcWindows.windows[\''+name+'\'].focus();">';html+=' <div id="'+id+'_title" class="mceWindowTitle"';html+=' onselectstart="return false;" unselectable="on" style="-moz-user-select: none !important;"></div>';html+=' <div class="mceWindowHeadTools">';html+=' <a href="javascript:parent.mcWindows.windows[\''+name+'\'].close();" target="_self" onmousedown="return false;" class="mceWindowClose"><img border="0" src="'+imgPath+'/window_close.gif" /></a>';html+=' </div>';html+='</div><div id="'+id+'_body" class="mceWindowBody" style="width: '+width+'px; height: '+height+'px;">';html+='<iframe id="'+id+'_iframe" name="'+id+'_iframe" frameborder="0" width="'+iframeWidth+'" height="'+iframeHeight+'" src="'+url+'" class="mceWindowBodyIframe" scrolling="'+features['scrollbars']+'"></iframe></div>';if(features['statusbar']=="yes"){html+='<div id="'+id+'_statusbar" class="mceWindowStatusbar" onmousedown="parent.mcWindows.windows[\''+name+'\'].focus();">';if(features['resizable']=="yes"){if(this.isGecko)html+='<div id="'+id+'_resize" class="mceWindowResize"><div style="background-image: url(\''+imgPath+'/window_resize.gif\'); width: 12px; height: 12px;"></div></div>';else html+='<div id="'+id+'_resize" class="mceWindowResize"><img onmousedown="parent.mcWindows.windows[\''+name+'\'].focus();" border="0" src="'+imgPath+'/window_resize.gif" /></div>';}html+='</div>';}html+='</div>';html+='</body>';html+='</html>';this.createFloatingIFrame(id,features['left'],features['top'],features['width'],features['height'],html);};TinyMCE_Windows.prototype.setDocumentLock=function(state){if(state){var elm=document.getElementById('mcWindowEventBlocker');if(elm==null){elm=document.createElement("div");elm.id="mcWindowEventBlocker";elm.style.position="absolute";elm.style.left="0";elm.style.top="0";document.body.appendChild(elm);}elm.style.display="none";var imgPath=this.getParam("images_path");var width=document.body.clientWidth;var height=document.body.clientHeight;elm.style.width=width;elm.style.height=height;elm.innerHTML='<img src="'+imgPath+'/spacer.gif" width="'+width+'" height="'+height+'" />';elm.style.zIndex=mcWindows.zindex-1;elm.style.display="block";}else{var elm=document.getElementById('mcWindowEventBlocker');if(mcWindows.windows.length==0)elm.parentNode.removeChild(elm);else elm.style.zIndex=mcWindows.zindex-1;}};TinyMCE_Windows.prototype.onLoad=function(name){var win=mcWindows.windows[name];var id="mcWindow_"+name;var wrapperIframe=window.frames[id+"_iframe"].frames[0];var wrapperDoc=window.frames[id+"_iframe"].document;var doc=window.frames[id+"_iframe"].document;var winDiv=document.getElementById("mcWindow_"+name+"_div");var realIframe=window.frames[id+"_iframe"].frames[0];win.id="mcWindow_"+name;win.winElement=winDiv;win.bodyElement=doc.getElementById(id+'_body');win.iframeElement=doc.getElementById(id+'_iframe');win.headElement=doc.getElementById(id+'_head');win.titleElement=doc.getElementById(id+'_title');win.resizeElement=doc.getElementById(id+'_resize');win.containerElement=doc.getElementById(id+'_container');win.left=win.features['left'];win.top=win.features['top'];win.frame=window.frames[id+'_iframe'].frames[0];win.wrapperFrame=window.frames[id+'_iframe'];win.wrapperIFrameElement=document.getElementById(id+"_iframe");mcWindows.addEvent(win.headElement,"mousedown",mcWindows.eventDispatcher);if(win.resizeElement!=null)mcWindows.addEvent(win.resizeElement,"mousedown",mcWindows.eventDispatcher);if(mcWindows.isMSIE){mcWindows.addEvent(realIframe.document,"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(realIframe.document,"mouseup",mcWindows.eventDispatcher);}else{mcWindows.addEvent(realIframe,"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(realIframe,"mouseup",mcWindows.eventDispatcher);mcWindows.addEvent(realIframe,"focus",mcWindows.eventDispatcher);}for(var i=0;i<window.frames.length;i++){if(!window.frames[i]._hasMouseHandlers){if(mcWindows.isMSIE){mcWindows.addEvent(window.frames[i].document,"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(window.frames[i].document,"mouseup",mcWindows.eventDispatcher);}else{mcWindows.addEvent(window.frames[i],"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(window.frames[i],"mouseup",mcWindows.eventDispatcher);}window.frames[i]._hasMouseHandlers=true;}}if(mcWindows.isMSIE){mcWindows.addEvent(win.frame.document,"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(win.frame.document,"mouseup",mcWindows.eventDispatcher);}else{mcWindows.addEvent(win.frame,"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(win.frame,"mouseup",mcWindows.eventDispatcher);mcWindows.addEvent(win.frame,"focus",mcWindows.eventDispatcher);}var func=this.getParam("on_open_window","");if(func!="")eval(func+"(win);");win.focus();if(win.features['modal']=="yes")mcWindows.setDocumentLock(true);};TinyMCE_Windows.prototype.createFloatingIFrame=function(id_prefix,left,top,width,height,html){var iframe=document.createElement("iframe");var div=document.createElement("div");width=parseInt(width);height=parseInt(height)+1;div.setAttribute("id",id_prefix+"_div");div.setAttribute("width",width);div.setAttribute("height",(height));div.style.position="absolute";div.style.left=left+"px";div.style.top=top+"px";div.style.width=width+"px";div.style.height=(height)+"px";div.style.backgroundColor="white";div.style.display="none";if(this.isGecko){iframeWidth=width+2;iframeHeight=height+2;}else{iframeWidth=width;iframeHeight=height+1;}iframe.setAttribute("id",id_prefix+"_iframe");iframe.setAttribute("name",id_prefix+"_iframe");iframe.setAttribute("border","0");iframe.setAttribute("frameBorder","0");iframe.setAttribute("marginWidth","0");iframe.setAttribute("marginHeight","0");iframe.setAttribute("leftMargin","0");iframe.setAttribute("topMargin","0");iframe.setAttribute("width",iframeWidth);iframe.setAttribute("height",iframeHeight);iframe.setAttribute("scrolling","no");iframe.style.width=iframeWidth+"px";iframe.style.height=iframeHeight+"px";iframe.style.backgroundColor="white";div.appendChild(iframe);document.body.appendChild(div);div.innerHTML=div.innerHTML;if(this.isSafari){window.setTimeout(function(){doc=window.frames[id_prefix+'_iframe'].document;doc.open();doc.write(html);doc.close();},10);}else{doc=window.frames[id_prefix+'_iframe'].window.document;doc.open();doc.write(html);doc.close();}div.style.display="block";return div;};function TinyMCE_Window(){};TinyMCE_Window.prototype.focus=function(){if(this!=mcWindows.selectedWindow){this.winElement.style.zIndex=++mcWindows.zindex;mcWindows.lastSelectedWindow=mcWindows.selectedWindow;mcWindows.selectedWindow=this;}};TinyMCE_Window.prototype.minimize=function(){};TinyMCE_Window.prototype.maximize=function(){};TinyMCE_Window.prototype.startResize=function(){mcWindows.action="resize";};TinyMCE_Window.prototype.startMove=function(e){mcWindows.action="move";};TinyMCE_Window.prototype.close=function(){if(this.frame&&this.frame['tinyMCEPopup'])this.frame['tinyMCEPopup'].restoreSelection();if(mcWindows.lastSelectedWindow!=null)mcWindows.lastSelectedWindow.focus();var mcWindowsNew=new Array();for(var n in mcWindows.windows){var win=mcWindows.windows[n];if(typeof(win)=='function')continue;if(win.name!=this.name)mcWindowsNew[n]=win;}mcWindows.windows=mcWindowsNew;var e=mcWindows.doc.getElementById(this.id+"_iframe");e.parentNode.removeChild(e);var e=mcWindows.doc.getElementById(this.id+"_div");e.parentNode.removeChild(e);mcWindows.setDocumentLock(false);};TinyMCE_Window.prototype.onMouseMove=function(e){var scrollX=0;var scrollY=0;var dx=e.screenX-mcWindows.mouseDownScreenX;var dy=e.screenY-mcWindows.mouseDownScreenY;switch(mcWindows.action){case"resize":width=mcWindows.mouseDownWidth+(e.screenX-mcWindows.mouseDownScreenX);height=mcWindows.mouseDownHeight+(e.screenY-mcWindows.mouseDownScreenY);width=width<100?100:width;height=height<100?100:height;this.wrapperIFrameElement.style.width=width+2;this.wrapperIFrameElement.style.height=height+2;this.wrapperIFrameElement.width=width+2;this.wrapperIFrameElement.height=height+2;this.winElement.style.width=width;this.winElement.style.height=height;height=height-this.deltaHeight;this.containerElement.style.width=width;this.iframeElement.style.width=width;this.iframeElement.style.height=height;this.bodyElement.style.width=width;this.bodyElement.style.height=height;this.headElement.style.width=width;mcWindows.cancelEvent(e);break;case"move":this.left=mcWindows.mouseDownLayerX+(e.screenX-mcWindows.mouseDownScreenX);this.top=mcWindows.mouseDownLayerY+(e.screenY-mcWindows.mouseDownScreenY);this.winElement.style.left=this.left+"px";this.winElement.style.top=this.top+"px";mcWindows.cancelEvent(e);break;}};function debug(msg){document.getElementById('debug').value+=msg+"\n";}TinyMCE_Window.prototype.onMouseUp=function(e){mcWindows.action="none";};TinyMCE_Window.prototype.onFocus=function(e){var winRef=e.currentTarget;for(var n in mcWindows.windows){var win=mcWindows.windows[n];if(typeof(win)=='function')continue;if(winRef.name==win.id+"_iframe"){win.focus();return;}}};TinyMCE_Window.prototype.onMouseDown=function(e){var elm=mcWindows.isMSIE?this.wrapperFrame.event.srcElement:e.target;var scrollX=0;var scrollY=0;mcWindows.mouseDownScreenX=e.screenX;mcWindows.mouseDownScreenY=e.screenY;mcWindows.mouseDownLayerX=this.left;mcWindows.mouseDownLayerY=this.top;mcWindows.mouseDownWidth=parseInt(this.winElement.style.width);mcWindows.mouseDownHeight=parseInt(this.winElement.style.height);if(this.resizeElement!=null&&elm==this.resizeElement.firstChild)this.startResize(e);else this.startMove(e);mcWindows.cancelEvent(e);};var mcWindows=new TinyMCE_Windows();mcWindows.init({images_path:tinyMCE.baseURL+"/plugins/inlinepopups/images",css_file:tinyMCE.baseURL+"/plugins/inlinepopups/css/inlinepopup.css"}); | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js |
log(ntype + ": " + nmessage); | function oper_notice(ntype,nmessage) { for(thisoper in Clients) { var oper=Clients[thisoper]; if ((oper.mode&USERMODE_OPER) && !oper.parent) oper.rawout(":" + servername + " NOTICE " + oper.nick + " :*** " + ntype + " -- " + nmessage); }} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/932a434bc900126d724150bfed8b94b9a8e530e1/ircd.js/buggy/ircd.js |
|
this.fromLocatorString = function(locatorString) { var locatorType = 'label'; var locatorValue = locatorString; var result = locatorString.match(/^([a-zA-Z]+)=(.*)/); if (result) { locatorType = result[1]; locatorValue = result[2]; } if ('label' == locatorType) { return new OptionLocatorByLabel(locatorValue); } else if ('index' == locatorType) { return new OptionLocatorByIndex(locatorValue); } else if ('value' == locatorType) { return new OptionLocatorByValue(locatorValue); } throw new Error("Unkown option locator type: " + locatorType); }; | function OptionLocatorFactory() { this.fromLocatorString = function(locatorString) { var locatorType = 'label'; var locatorValue = locatorString; // If there is a locator prefix, use the specified strategy var result = locatorString.match(/^([a-zA-Z]+)=(.*)/); if (result) { locatorType = result[1]; locatorValue = result[2]; } if ('label' == locatorType) { return new OptionLocatorByLabel(locatorValue); } else if ('index' == locatorType) { return new OptionLocatorByIndex(locatorValue); } else if ('value' == locatorType) { return new OptionLocatorByValue(locatorValue); } throw new Error("Unkown option locator type: " + locatorType); };} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/3b44b078ad64a491bc2e0d28cd5e2fb1cab0b379/selenium-api.js/clean/code/javascript/selenium-api.js |
|
this.fromLocatorString = function(locatorString) { var locatorType = 'label'; var locatorValue = locatorString; var result = locatorString.match(/^([a-zA-Z]+)=(.*)/); if (result) { locatorType = result[1]; locatorValue = result[2]; } if ('label' == locatorType) { return new OptionLocatorByLabel(locatorValue); } else if ('index' == locatorType) { return new OptionLocatorByIndex(locatorValue); } else if ('value' == locatorType) { return new OptionLocatorByValue(locatorValue); } throw new Error("Unkown option locator type: " + locatorType); }; | function OptionLocatorFactory() { this.fromLocatorString = function(locatorString) { var locatorType = 'label'; var locatorValue = locatorString; // If there is a locator prefix, use the specified strategy var result = locatorString.match(/^([a-zA-Z]+)=(.*)/); if (result) { locatorType = result[1]; locatorValue = result[2]; } if ('label' == locatorType) { return new OptionLocatorByLabel(locatorValue); } else if ('index' == locatorType) { return new OptionLocatorByIndex(locatorValue); } else if ('value' == locatorType) { return new OptionLocatorByValue(locatorValue); } throw new Error("Unkown option locator type: " + locatorType); };} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/2c3a29cf7b2d255e58bdf4babc5554df9b57d2d8/selenium-api.js/buggy/code/javascript/selenium-api.js |
|
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
var element = $(element); for(var i=0;i<this.sortables.length;i++) if(this.sortables[i].element == element) return this.sortables[i]; return null; | element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element){ var element = $(element); for(var i=0;i<this.sortables.length;i++) if(this.sortables[i].element == element) return this.sortables[i]; return null; }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/dragdrop.js/clean/public/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 2320 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2320/19200c26046dc00f15305e03b7c1d28b4c38c952/dragdrop.js/clean/web/scripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); | options: function(element) { element = Sortable._findRootElement($(element)); if(!element) return; return Sortable.sortables[element.id]; | options: function(element){ element = $(element); return this.sortables.detect(function(s) { return s.element == element }); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
function options() { | function options(type) { | function options() { cocoon.response.setHeader("DAV","1"); var options = "OPTIONS,GET,PUT,LOCK,PROPFIND,DELETE";// var options = "OPTIONS,GET,HEAD,POST,DELETE,TRACE,PUT,LOCK" // + ",MKCOL,PROPFIND,PROPPATCH,COPY,MOVE"; cocoon.response.setHeader("Allow",options); //interoperability with Windows 2000 var w2kDAVDiscoverAgent = "Microsoft Data Access Internet" + " Publishing Provider Protocol Discovery"; if (cocoon.request.getHeader("User-Agent") == w2kDAVDiscoverAgent) { cocoon.response.setHeader("MS-Author-Via","DAV"); } sendStatus(200);} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/49863727a7ad4a093c1368d1ec485b53b956a824/webdav.js/buggy/src/webapp/lenya/pubs/default/lenya/usecases/webdav/webdav.js |
var options = "OPTIONS,GET,PUT,LOCK,PROPFIND,DELETE"; | var options = ""; if (type == "file") { options = "OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,PUT,LOCK,UNLOCK"; } else { options = "OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,LOCK,UNLOCK"; } | function options() { cocoon.response.setHeader("DAV","1"); var options = "OPTIONS,GET,PUT,LOCK,PROPFIND,DELETE";// var options = "OPTIONS,GET,HEAD,POST,DELETE,TRACE,PUT,LOCK" // + ",MKCOL,PROPFIND,PROPPATCH,COPY,MOVE"; cocoon.response.setHeader("Allow",options); //interoperability with Windows 2000 var w2kDAVDiscoverAgent = "Microsoft Data Access Internet" + " Publishing Provider Protocol Discovery"; if (cocoon.request.getHeader("User-Agent") == w2kDAVDiscoverAgent) { cocoon.response.setHeader("MS-Author-Via","DAV"); } sendStatus(200);} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/49863727a7ad4a093c1368d1ec485b53b956a824/webdav.js/buggy/src/webapp/lenya/pubs/default/lenya/usecases/webdav/webdav.js |
if (!this.sendq.bytes && !sendsock.send(send_data + "\r\n")) | if (this.sendq.bytes || !sendsock.send(send_data + "\r\n")) | function originatorout(str,origin) { var send_data; var sendsock; if (debug) log(format("[%s->%s]: %s",origin.nick,this.nick,str)); sendsock = this.socket; if(this.local && !this.server) { if (origin.server) send_data = ":" + origin.nick + " " + str; else send_data = ":" + origin.nuh + " " + str; } else if (this.server) { send_data = ":" + origin.nick + " " + str; } else if (!this.local) { sendsock = Servers[this.parent.toLowerCase()].socket; send_data = ":" + origin.nick + " " + str; } else { log(LOG_ERR,"!ERROR: No socket to send to?"); return 0; } if (!this.sendq.bytes && !sendsock.send(send_data + "\r\n")) this.sendq.add(send_data);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/a480ba7e9bd9e28acd5b0581357f6a699cc03670/ircd.js/buggy/ircd.js |
sendsock = Servers[this.parent].socket; | sendsock = Servers[this.parent.toLowerCase()].socket; | function originatorout(str,origin) { var send_data; var sendsock; if (debug) log(format("[%s->%s]: %s",origin.nick,this.nick,str)); sendsock = this.socket; if(this.local && !this.server) { if (origin.server) send_data = ":" + origin.nick + " " + str; else send_data = ":" + origin.nuh + " " + str; } else if (this.server) { send_data = ":" + origin.nick + " " + str; } else if (!this.local) { sendsock = Servers[this.parent].socket; send_data = ":" + origin.nick + " " + str; } else { log("!ERROR: No socket to send to?"); return 0; } if (!writeout(sendsock,send_data)) this.flagged_for_quit = "Socket write failed miserably";} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/9b31fc080a4a6c10c64fce10214bfae574877b10/ircd.js/clean/ircd.js |
send_data = ":" + origin.nuh + " " + str; } else if (this.parent) { | if (origin.server) send_data = ":" + origin.nick + " " + str; else send_data = ":" + origin.nuh + " " + str; } else if (this.server) { send_data = ":" + origin.nick + " " + str; } else if (!this.local) { | function originatorout(str,origin) { var send_data; var sendsock; if (debug) log(format("[%s->%s]: %s",origin.nick,this.nick,str)); sendsock = this.socket; if(this.local && !this.server) { send_data = ":" + origin.nuh + " " + str; } else if (this.parent) { sendsock = Servers[this.parent].socket; send_data = ":" + origin.nick + " " + str; } else if (this.server) { send_data = ":" + origin.nick + " " + str; } else { log("!ERROR: No socket to send to?"); return 0; } if (!writeout(sendsock,send_data)) this.flagged_for_quit = "Socket write failed miserably";} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/906f77be442b63d7184d7076d5f4ce67c3aae953/ircd.js/buggy/ircd.js |
send_data = ":" + origin.nick + " " + str; } else if (this.server) { | function originatorout(str,origin) { var send_data; var sendsock; if (debug) log(format("[%s->%s]: %s",origin.nick,this.nick,str)); sendsock = this.socket; if(this.local && !this.server) { send_data = ":" + origin.nuh + " " + str; } else if (this.parent) { sendsock = Servers[this.parent].socket; send_data = ":" + origin.nick + " " + str; } else if (this.server) { send_data = ":" + origin.nick + " " + str; } else { log("!ERROR: No socket to send to?"); return 0; } if (!writeout(sendsock,send_data)) this.flagged_for_quit = "Socket write failed miserably";} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/906f77be442b63d7184d7076d5f4ce67c3aae953/ircd.js/buggy/ircd.js |
|
return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; | return ((this.offset[1]+element.offsetHeight)-this.ycomp) / element.offsetHeight; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; | return ((this.offset[0]+element.offsetWidth)-this.xcomp) / element.offsetWidth; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; | return ((this.offset[1]+element.offsetHeight)-this.ycomp) / element.offsetHeight; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; | return ((this.offset[0]+element.offsetWidth)-this.xcomp) / element.offsetWidth; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; | return ((this.offset[1]+element.offsetHeight)-this.ycomp) / element.offsetHeight; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; | return ((this.offset[0]+element.offsetWidth)-this.xcomp) / element.offsetWidth; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; | return ((this.offset[1]+element.offsetHeight)-this.ycomp) / element.offsetHeight; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; | return ((this.offset[0]+element.offsetWidth)-this.xcomp) / element.offsetWidth; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; | return ((this.offset[1]+element.offsetHeight)-this.ycomp) / element.offsetHeight; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; | return ((this.offset[0]+element.offsetWidth)-this.xcomp) / element.offsetWidth; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; | return ((this.offset[1]+element.offsetHeight)-this.ycomp) / element.offsetHeight; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; | return ((this.offset[0]+element.offsetWidth)-this.xcomp) / element.offsetWidth; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; | return ((this.offset[1]+element.offsetHeight)-this.ycomp) / element.offsetHeight; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; | return ((this.offset[0]+element.offsetWidth)-this.xcomp) / element.offsetWidth; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; | return ((this.offset[1]+element.offsetHeight)-this.ycomp) / element.offsetHeight; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; | return ((this.offset[0]+element.offsetWidth)-this.xcomp) / element.offsetWidth; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; | return ((this.offset[1]+element.offsetHeight)-this.ycomp) / element.offsetHeight; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; | return ((this.offset[0]+element.offsetWidth)-this.xcomp) / element.offsetWidth; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; | return ((this.offset[1]+element.offsetHeight)-this.ycomp) / element.offsetHeight; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; | return ((this.offset[0]+element.offsetWidth)-this.xcomp) / element.offsetWidth; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; | return ((this.offset[1]+element.offsetHeight)-this.ycomp) / element.offsetHeight; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; | return ((this.offset[0]+element.offsetWidth)-this.xcomp) / element.offsetWidth; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; | return ((this.offset[1]+element.offsetHeight)-this.ycomp) / element.offsetHeight; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; | return ((this.offset[0]+element.offsetWidth)-this.xcomp) / element.offsetWidth; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/c9f2389c010ba9364a4454b45b3cedd4dd273c38/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; | return ((this.offset[1]+element.offsetHeight)-this.ycomp) / element.offsetHeight; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/5fec2a22b3ffc5a2da695845e2922706e29402bb/prototype-ext.js/buggy/src/prototype-ext.js |
return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; | return ((this.offset[0]+element.offsetWidth)-this.xcomp) / element.offsetWidth; | overlap: function(mode, element) { if(!mode) return 0; if(mode == 'vertical') return ((element.offsetTop+element.offsetHeight)-this.ycomp) / element.offsetHeight; if(mode == 'horizontal') return ((element.offsetLeft+element.offsetWidth)-this.xcomp) / element.offsetWidth; }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/5fec2a22b3ffc5a2da695845e2922706e29402bb/prototype-ext.js/buggy/src/prototype-ext.js |
overlap: function(mode, element) { if (!mode) return 0; if (mode == 'vertical') return ((this.offset[1] + element.offsetHeight) - this.ycomp) / | overlap: function(mode, element) { if (!mode) return 0; if (mode == 'vertical') return ((this.offset[1] + element.offsetHeight) - this.ycomp) / | overlap: function(mode, element) { if (!mode) return 0; if (mode == 'vertical') return ((this.offset[1] + element.offsetHeight) - this.ycomp) / element.offsetHeight; if (mode == 'horizontal') return ((this.offset[0] + element.offsetWidth) - this.xcomp) / element.offsetWidth; }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/buggy/public/javascripts/prototype.js |
return ((this.offset[0] + element.offsetWidth) - this.xcomp) / | return ((this.offset[0] + element.offsetWidth) - this.xcomp) / | overlap: function(mode, element) { if (!mode) return 0; if (mode == 'vertical') return ((this.offset[1] + element.offsetHeight) - this.ycomp) / element.offsetHeight; if (mode == 'horizontal') return ((this.offset[0] + element.offsetWidth) - this.xcomp) / element.offsetWidth; }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/buggy/public/javascripts/prototype.js |
(g < 16 ? '0' : '') + g.toString(16) + (b < 16 ? '0' : '') + b.toString(16); | (g < 16 ? '0' : '') + g.toString(16) + (b < 16 ? '0' : '') + b.toString(16); | fb.pack = function (rgb) { var r = Math.round(rgb[0] * 255); var g = Math.round(rgb[1] * 255); var b = Math.round(rgb[2] * 255); return '#' + (r < 16 ? '0' : '') + r.toString(16) + (g < 16 ? '0' : '') + g.toString(16) + (b < 16 ? '0' : '') + b.toString(16); } | 3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/49f6f3bf71daf78f75c731db626a40f2284838b2/farbtastic.js/buggy/misc/farbtastic/farbtastic.js |
new_string = this; | var new_string = this; | String.prototype.pad_left = function(pad_length, pad_string) { new_string = this; for (var i = 0; new_string.length < pad_length; i++) { new_string = pad_string + new_string; } return new_string;} | 1086 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1086/3daf7bde2e150c623b80a3a0518196121bd4ea36/core.js/clean/django/contrib/admin/media/js/core.js |
if(element == document.body) return [0, 0]; | Position.page = function(forElement) { if(element == document.body) return [0, 0]; var valueT = 0, valueL = 0; var element = forElement; do { valueT += element.offsetTop || 0; valueL += element.offsetLeft || 0; // Safari fix if (element.offsetParent==document.body) if (Element.getStyle(element,'position')=='absolute') break; } while (element = element.offsetParent); element = forElement; do { valueT -= element.scrollTop || 0; valueL -= element.scrollLeft || 0; } while (element = element.parentNode); return [valueL, valueT];} | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/e8c39d48af400cd700cad64b8c66b855d356a5bc/util.js/clean/src/util.js |
|
this.title = function() {return this.currentDocument.title;}; | this.title = function() { return this.currentDocument.title; }; | var PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions // TODO - don't do this in the constructor - only needed once ever this.locationStrategies = {}; for (var functionName in this) { var result = /^locateElementBy([A-Z].+)$/.exec(functionName); if (result != null) { var locatorFunction = this[functionName]; if (typeof(locatorFunction) != 'function') { continue; } // Use a specified prefix in preference to one generated from // the function name var locatorPrefix = locatorFunction.prefix || result[1].toLowerCase(); this.locationStrategies[locatorPrefix] = locatorFunction; } } /** * Find a locator based on a prefix. */ this.findElementBy = function(locatorType, locator, inDocument) { var locatorFunction = this.locationStrategies[locatorType]; if (! locatorFunction) { throw new SeleniumError("Unrecognised locator type: '" + locatorType + "'"); } return locatorFunction.call(this, locator, inDocument); }; /** * The implicit locator, that is used when no prefix is supplied. */ this.locationStrategies['implicit'] = function(locator, inDocument) { if (locator.startsWith('//')) { return this.locateElementByXPath(locator, inDocument); } if (locator.startsWith('document.')) { return this.locateElementByDomTraversal(locator, inDocument); } return this.locateElementByIdentifier(locator, inDocument); };}; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0e14a53996e4d4f6077da9fa5f25415f4fff0108/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js |
PageBot = function(pageWindow, browserBot) { this.currentWindow = pageWindow; this.browserBot = browserBot; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title}; modifyWindowToRecordAlerts(pageWindow, browserBot); //SPIKE factor this better via TDD function clearPageCache() { browserbot.currentPage = null; } if (window.addEventListener) { this.currentWindow.addEventListener("unload",clearPageCache, true); } else if (window.attachEvent) { this.currentWindow.attachEvent("onunload",clearPageCache); } // End SPIKE function modifyWindowToRecordAlerts(window, browserBot) { window.alert = function(alert){browserBot.recordAlert(alert);}; }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/d234886e8fa68dac43c3506a745065790965587c/selenium-browserbot.js/buggy/javascript/selenium-browserbot.js |
||
return this.locateElementByIdentifier(locator, inDocument) || this.locateElementByDomTraversal(locator, inDocument) || this.locateElementByXPath(locator, inDocument); | if (locator.startsWith(' return this.locateElementByXPath(locator, inDocument); } if (locator.startsWith('document.')) { return this.locateElementByDomTraversal(locator, inDocument); } return this.locateElementByIdentifier(locator, inDocument); | PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions // TODO - don't do this in the constructor - only needed once ever this.locationStrategies = {}; for (var functionName in this) { var result = /^locateElementBy([A-Z].+)$/.exec(functionName); if (result != null) { var locatorFunction = this[functionName]; if (typeof(locatorFunction) != 'function') { continue; } // Use a specified prefix in preference to one generated from // the function name var locatorPrefix = locatorFunction.prefix || result[1].toLowerCase(); this.locationStrategies[locatorPrefix] = locatorFunction; } } /** * Find a locator based on a prefix. */ this.findElementBy = function(locatorType, locator, inDocument) { var locatorFunction = this.locationStrategies[locatorType]; if (! locatorFunction) { throw new SeleniumError("Unrecognised locator type: '" + locatorType + "'"); } return locatorFunction.call(this, locator, inDocument); }; /** * The implicit locator, that is used when no prefix is supplied. */ this.locationStrategies['implicit'] = function(locator, inDocument) { return this.locateElementByIdentifier(locator, inDocument) || this.locateElementByDomTraversal(locator, inDocument) || this.locateElementByXPath(locator, inDocument); }; }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ea5a924ee70e3252794128058125022ac719f685/selenium-browserbot.js/clean/code/javascript/selenium-browserbot.js |
PageBot = function(pageWindow) { | var PageBot = function(pageWindow) { | PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions // TODO - don't do this in the constructor - only needed once ever this.locationStrategies = {}; for (var functionName in this) { var result = /^locateElementBy([A-Z].+)$/.exec(functionName); if (result != null) { var locatorFunction = this[functionName]; if (typeof(locatorFunction) != 'function') { continue; } // Use a specified prefix in preference to one generated from // the function name var locatorPrefix = locatorFunction.prefix || result[1].toLowerCase(); this.locationStrategies[locatorPrefix] = locatorFunction; } } /** * Find a locator based on a prefix. */ this.findElementBy = function(locatorType, locator, inDocument) { var locatorFunction = this.locationStrategies[locatorType]; if (! locatorFunction) { throw new SeleniumError("Unrecognised locator type: '" + locatorType + "'"); } return locatorFunction.call(this, locator, inDocument); }; /** * The implicit locator, that is used when no prefix is supplied. */ this.locationStrategies['implicit'] = function(locator, inDocument) { if (locator.startsWith('//')) { return this.locateElementByXPath(locator, inDocument); } if (locator.startsWith('document.')) { return this.locateElementByDomTraversal(locator, inDocument); } return this.locateElementByIdentifier(locator, inDocument); };}; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/10e591b5be05718f2e4d76628c0765675e463e1b/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js |
this.title = function() { return this.currentDocument.title; }; | this.title = function() {return this.currentDocument.title;}; | var PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location; this.title = function() { return this.currentDocument.title; }; } // Register all locateElementBy* functions // TODO - don't do this in the constructor - only needed once ever this.locationStrategies = {}; for (var functionName in this) { var result = /^locateElementBy([A-Z].+)$/.exec(functionName); if (result != null) { var locatorFunction = this[functionName]; if (typeof(locatorFunction) != 'function') { continue; } // Use a specified prefix in preference to one generated from // the function name var locatorPrefix = locatorFunction.prefix || result[1].toLowerCase(); this.locationStrategies[locatorPrefix] = locatorFunction; } } /** * Find a locator based on a prefix. */ this.findElementBy = function(locatorType, locator, inDocument) { var locatorFunction = this.locationStrategies[locatorType]; if (! locatorFunction) { throw new SeleniumError("Unrecognised locator type: '" + locatorType + "'"); } return locatorFunction.call(this, locator, inDocument); }; /** * The implicit locator, that is used when no prefix is supplied. */ this.locationStrategies['implicit'] = function(locator, inDocument) { if (locator.startsWith('//')) { return this.locateElementByXPath(locator, inDocument); } if (locator.startsWith('document.')) { return this.locateElementByDomTraversal(locator, inDocument); } return this.locateElementByIdentifier(locator, inDocument); };}; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/6b0b260c628dcdbf842d816728bb3bdcc6219faa/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js |
return this.locateElementByIdentifier(locator, inDocument) || this.locateElementByDomTraversal(locator, inDocument) || this.locateElementByXPath(locator, inDocument); | if (locator.startsWith(' return this.locateElementByXPath(locator, inDocument); } if (locator.startsWith('document.')) { return this.locateElementByDomTraversal(locator, inDocument); } return this.locateElementByIdentifier(locator, inDocument); | PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions // TODO - don't do this in the constructor - only needed once ever this.locationStrategies = {}; for (var functionName in this) { var result = /^locateElementBy([A-Z].+)$/.exec(functionName); if (result != null) { var locatorFunction = this[functionName]; if (typeof(locatorFunction) != 'function') { continue; } // Use a specified prefix in preference to one generated from // the function name var locatorPrefix = locatorFunction.prefix || result[1].toLowerCase(); this.locationStrategies[locatorPrefix] = locatorFunction; } } /** * Find a locator based on a prefix. */ this.findElementBy = function(locatorType, locator, inDocument) { var locatorFunction = this.locationStrategies[locatorType]; if (! locatorFunction) { throw new SeleniumError("Unrecognised locator type: '" + locatorType + "'"); } return locatorFunction.call(this, locator, inDocument); }; /** * The implicit locator, that is used when no prefix is supplied. */ this.locationStrategies['implicit'] = function(locator, inDocument) { return this.locateElementByIdentifier(locator, inDocument) || this.locateElementByDomTraversal(locator, inDocument) || this.locateElementByXPath(locator, inDocument); }; }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/918f8d394d531142ffd702f7bf13140055e35ee3/selenium-browserbot.js/clean/code/javascript/selenium-browserbot.js |
this.location = pageWindow.location.pathname; | this.location = pageWindow.location; | PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions // TODO - don't do this in the constructor - only needed once ever this.locationStrategies = {}; for (var functionName in this) { var result = /^locateElementBy([A-Z].+)$/.exec(functionName); if (result != null) { var locatorFunction = this[functionName]; if (typeof(locatorFunction) != 'function') { continue; } // Use a specified prefix in preference to one generated from // the function name var locatorPrefix = locatorFunction.prefix || result[1].toLowerCase(); this.locationStrategies[locatorPrefix] = locatorFunction; } } /** * Find a locator based on a prefix. */ this.findElementBy = function(locatorType, locator, inDocument) { var locatorFunction = this.locationStrategies[locatorType]; if (! locatorFunction) { throw new Error("Unrecognised locator type: '" + locatorType + "'"); } return locatorFunction.call(this, locator, inDocument); }; /** * The implicit locator, that is used when no prefix is supplied. */ this.locationStrategies['implicit'] = function(locator, inDocument) { return this.locateElementByIdentifier(locator, inDocument) || this.locateElementByDomTraversal(locator, inDocument) || this.locateElementByXPath(locator, inDocument); }; }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/e7ef48632ccd6eb6a75316090903d555f278d4a3/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js |
this.locatorFunctions = new Array(); | PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions // TODO - don't do this in the constructor - only needed once ever this.locatorFunctions = new Array(); this.locators = {}; for (var functionName in this) { var result = /^locateElementBy([A-Z].+)$/.exec(functionName); if (result != null) { var locatorFunction = this[functionName]; if (typeof(locatorFunction) != 'function') { continue; } // Use a specified prefix in preference to one generated from the function name var locatorPrefix = locatorFunction.prefix || result[1].toLowerCase(); this.locatorFunctions.push(locatorFunction); this.locators[locatorPrefix] = locatorFunction; } }}; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/c4c251f7b8e27dbf5413c4f8cd8bab0e135fb135/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js |
|
this.locatorFunctions.push(locatorFunction); | PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions // TODO - don't do this in the constructor - only needed once ever this.locatorFunctions = new Array(); this.locators = {}; for (var functionName in this) { var result = /^locateElementBy([A-Z].+)$/.exec(functionName); if (result != null) { var locatorFunction = this[functionName]; if (typeof(locatorFunction) != 'function') { continue; } // Use a specified prefix in preference to one generated from the function name var locatorPrefix = locatorFunction.prefix || result[1].toLowerCase(); this.locatorFunctions.push(locatorFunction); this.locators[locatorPrefix] = locatorFunction; } }}; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/c4c251f7b8e27dbf5413c4f8cd8bab0e135fb135/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js |
|
/** * Find a locator based on a prefix. */ this.getLocator = function(prefix) { return this.locators[prefix]; }; /** * The implicit locator, that is used when no prefix is supplied. */ this.implicitLocator = function(locator, inDocument) { return this.getLocator("identifier")(locator, inDocument) || this.getLocator("dom")(locator, inDocument) || this.getLocator("xpath")(locator, inDocument); }; | PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions // TODO - don't do this in the constructor - only needed once ever this.locatorFunctions = new Array(); this.locators = {}; for (var functionName in this) { var result = /^locateElementBy([A-Z].+)$/.exec(functionName); if (result != null) { var locatorFunction = this[functionName]; if (typeof(locatorFunction) != 'function') { continue; } // Use a specified prefix in preference to one generated from the function name var locatorPrefix = locatorFunction.prefix || result[1].toLowerCase(); this.locatorFunctions.push(locatorFunction); this.locators[locatorPrefix] = locatorFunction; } }}; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/c4c251f7b8e27dbf5413c4f8cd8bab0e135fb135/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js |
|
this.location = pageWindow.location.pathname | this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title}; | PageBot = function(pageWindow, browserBot) { this.currentWindow = pageWindow; this.browserBot = browserBot; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4ef9dce64cb8bc638dd0887dfc6ace54d10ce2e4/selenium-browserbot.js/buggy/javascript/selenium-browserbot.js |
this.locatorFunctions = new Array(); for (var f in this) { if (typeof(this[f]) == 'function' && f.match(/^locate/)) { this.locatorFunctions.push(this[f]); | this.locatorFunctions = new Array(); this.locators = {}; for (var functionName in this) { var result = /^locateElementBy([A-Z].+)$/.exec(functionName); if (result != null) { var locatorFunction = this[functionName]; if (typeof(locatorFunction) != 'function') { continue; | PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title;}; // Register all locate* functions this.locatorFunctions = new Array(); for (var f in this) { if (typeof(this[f]) == 'function' && f.match(/^locate/)) { this.locatorFunctions.push(this[f]); } } }}; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/28e92872d79dde130d1e6dfb1c795eb73f87a0ce/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.