rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
collapse_link.setAttribute('href', 'javascript:CollapsedFieldsets.display(' + i + ');'); collapse_link.appendChild(document.createTextNode('Show ' + verbose_name)); div.appendChild(collapse_link); fs.appendChild(div);
collapse_link.className = 'collapse-toggle'; collapse_link.id = 'fieldsetcollapser' + i; collapse_link.onclick = new Function('CollapsedFieldsets.show('+i+'); return false;'); collapse_link.href = '#'; collapse_link.innerHTML = 'Show'; var h2 = fs.getElementsByTagName('h2')[0]; h2.appendChild(document.createTextNode(' (')); h2.appendChild(collapse_link); h2.appendChild(document.createTextNode(')'));
init: function() { var fieldsets = document.getElementsByTagName('fieldset'); var collapsed_seen = false; for (var i=0; i<fieldsets.length; i++) { var fs = fieldsets[i]; // Collapse this fieldset if it has the correct class, and if it // doesn't have any errors. (Collapsing shouldn't apply in the case // of error messages.) if (fs.className.match(CollapsedFieldsets.collapse_re) && !CollapsedFieldsets.fieldset_has_errors(fs)) { collapsed_seen = true; // Give it an additional class, used by CSS to hide it. fs.className += ' ' + CollapsedFieldsets.collapsed_class; // Get plural verbose name of object. var verbose_name = fs.getElementsByTagName('h2')[0].innerHTML; // <div class="form-row collapse-toggle" id="fieldsetcollapser1"> // <a href="javascript:toggleDisplay;">Show section priorities&hellip;</a> // </div> var div = document.createElement('div'); // Give it a hook so we can remove it later. div.id = 'fieldsetcollapser' + i; div.className = 'form-row collapse-toggle'; // CSS hook var collapse_link = document.createElement('a'); collapse_link.setAttribute('href', 'javascript:CollapsedFieldsets.display(' + i + ');'); collapse_link.appendChild(document.createTextNode('Show ' + verbose_name)); div.appendChild(collapse_link); fs.appendChild(div); } } if (collapsed_seen) { // Expand all collapsed fieldsets when form is submitted. addEvent(findForm(document.getElementsByTagName('fieldset')[0]), 'submit', function() { CollapsedFieldsets.uncollapse_all(); }); } },
1086 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1086/623863d0a4e0c850196a863c646a2fe3ef178791/CollapsedFieldsets.js/clean/django/conf/admin_media/js/admin/CollapsedFieldsets.js
this.runner.eval = function(str) { return eval(str); }
this.init = function() { if (this.runner != null) { // already initialized return; } this.log.debug("init"); this.paused = false; this.runner = new Object(); this.runner.editor = this.editor; this.editor.testCaseListeners.push(function(testCase) { self.runner.testCase = testCase; }); this.runner.testCase = this.editor.testCase; const subScriptLoader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader); //subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/selenium-logging.js', this.runner); if (!navigator.userAgent.match(/ rv:1\.8\.0/)) { // Not Firefox 1.5 (Gecko 1.8.0) // In Firefox 2.0, it seems that methods added to Object or String does not work in subscripts, // so we'll load prototype.js and htmlutils.js again // (Tested on Firefox 2.0 RC2) this.runner.window = window; this.runner.Element = window.Element; this.runner.Event = window.Event; subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/lib/prototype.js', this.runner); subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/scripts/htmlutils.js', this.runner); } subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/scripts/selenium-api.js', this.runner); subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/scripts/selenium-commandhandlers.js', this.runner); subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/scripts/selenium-executionloop.js', this.runner); subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/scripts/selenium-browserbot.js', this.runner); if (this.editor.options.userExtensionsURL) { try { ExtensionsLoader.loadSubScript(subScriptLoader, this.editor.options.userExtensionsURL, this.runner); } catch (error) { this.log.error("error loading user-extensions.js: " + error); } } subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium-runner.js', this.runner); this.editor.infoPanel.logView.setLog(this.runner.LOG); this.runner.getInterval = function() { if (self.runner.testCase.debugContext.currentCommand().breakpoint) { self.paused = true; return -1; } else if (self.paused) { return -1; } else { return document.getElementById("runInterval").selectedItem.value; } } }
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/9371877d02d7f62a78dc3fea91bf0c7c05395f87/debugger.js/buggy/src/content/debugger.js
if (previous) previous.syncModel(true);
function init() { if (!this.recorderInitialized) { log.info("initializing"); this.recorderInitialized = true; this.setOptions(optionsManager.load()); //this.options.load(); this.eventManager = new EventManager(this); this.treeView = new TreeView(this, document, document.getElementById("commands")); this.sourceView = new SourceView(this, document.getElementById("source")); this.testCaseListeners = new Array(); this.setTestCase = function(testCase) { this.testCase = testCase; for (var i = 0; i < this.testCaseListeners.length; i++) { this.testCaseListeners[i](this.testCase); } }; this.setTestCase(new TestCase()); this.testCaseListeners.push(function(testCase) { recorder.view.testCase = testCase }); this.toggleView = function(view) { log.debug("toggle view"); if (this.view != null) { this.view.onHide(); } this.view = view; this.view.testCase = this.testCase; this.view.refresh(); }; initOptions(); this.toggleView(this.treeView); var controller = { supportsCommand : function(cmd) { switch (cmd) { case "cmd_close": case "cmd_open": case "cmd_save": case "cmd_selenium_play": case "cmd_selenium_pause": case "cmd_selenium_step": return true; default: return false; } }, isCommandEnabled : function(cmd){ switch (cmd) { case "cmd_close": case "cmd_open": case "cmd_save": return true; case "cmd_selenium_play": return self.state != 'playing'; case "cmd_selenium_pause": return self.state == 'playing' || self.state == 'paused'; case "cmd_selenium_step": return self.state == 'paused'; default: return false; } }, doCommand : function(cmd) { switch (cmd) { case "cmd_close": if (confirmClose()) { window.close(); } break; case "cmd_save": saveTestCase(); break; case "cmd_open": loadTestCase(); break; case "cmd_selenium_play": seleniumDebugger.start(); break; case "cmd_selenium_pause": if (self.state == 'paused') { seleniumDebugger.doContinue(); } else { seleniumDebugger.pause(); } break; case "cmd_selenium_step": seleniumDebugger.doContinue(true); break; default: } }, onEvent : function(evt) {} }; window.controllers.appendController(controller); document.commandDispatcher.updateCommands("selenium-ide-state"); log.info("initialized"); setTimeout("afterInit()", 500); }}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/8559b7c3e1067cd32f5489bd7a35360a222901a0/selenium-ide.js/clean/src/content/selenium-ide.js
resize(150,50); setFont(new Font("TimesRoman",Font.BOLD,36)); s = getParameter("text");
this.resize(150,50); this.setFont(new Font("TimesRoman",Font.BOLD,36)); s = this.getParameter("text");
function init() { resize(150,50); setFont(new Font("TimesRoman",Font.BOLD,36)); s = getParameter("text"); if (s == null) { s = "Rhino"; } separated = s.split('');}
9191 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9191/394383a65dd802c3dde5b8a2f99b406cd7527b4f/NervousText.js/clean/examples/NervousText.js
if (document.getElementById("singleimage")) single(); /*else if (document.getElementById("pictures")) list();*/
if (document.getElementById("singleimage")) single(); /*else if (document.getElementById("pictures")) list();*/
function init() { if (document.getElementById("singleimage")) single(); /*else if (document.getElementById("pictures")) list();*/}
7185 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7185/80c9c938b752c166333756d458413e4d0fbbea10/jstemplate.js/clean/preset/Image Gallery/jstemplate.js
} else if (href.search(/file:(\/\/\/\/\/)(.*?)/gi) > -1) { mcTabs.displayTab('file_tab','file_panel'); document.forms[0].filepath.value = href.replace(/file:(\/\/\/\/\/)/gi, ""); } else if (href.search(/file:(\/\/)(.*?)/gi) > -1) { mcTabs.displayTab('file_tab','file_panel'); alert(href.replace(/file:(\/\/)/gi, "")); document.forms[0].filepath.value = href.replace(/file:(\/\/)/gi, "");
function init() { var text = tinyMCE.getWindowArg('text').toString(); var href = tinyMCE.getWindowArg('href').toString(); document.forms[0].wiki_text.value = text; document.forms[0].web_text.value = text; document.forms[0].attach_text.value = text; document.forms[0].email_text.value = text; if ((href != null) && (href != "")) { if (href.search(/(https?|ftp):\/\/[-a-zA-Z0-9+&@#\/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#\/%=~_|]/gi)>-1) { mcTabs.displayTab('web_tab','web_panel'); document.forms[0].web_page.value = href; } else if (href.search(/wikiattachment:-:(.*?)/gi) > -1) { mcTabs.displayTab('attachments_tab','attachments_panel'); document.forms[0].attach.value = href.replace(/wikiattachment:-:/gi, "").replace(/%20/gi, " "); } else if (href.search(/mailto:(.*?)/gi) > -1) { mcTabs.displayTab('email_tab','email_panel') document.forms[0].email.value = href.replace(/mailto:/gi, ""); } else { mcTabs.displayTab('wiki_tab','wiki_panel'); var space = "", whref = href; if (href.indexOf(".") > -1) { space = href.substring(0, href.indexOf(".")); whref = href.substring(href.indexOf(".") + 1, href.length); } document.forms[0].wiki_space.value = space; document.forms[0].wiki_page.value = whref; } } document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true); var className = tinyMCE.getWindowArg('className'); var editor_id = tinyMCE.getWindowArg('editor_id');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/7ca439438dc0f36f25d560b21bd1017c41053651/link.js/buggy/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js
var cols = 2, rows = 2, border = 0, cellpadding = "", cellspacing = "";
var cols = 2, rows = 2, border = tinyMCE.getParam('table_default_border', '0'), cellpadding = tinyMCE.getParam('table_default_cellpadding', ''), cellspacing = tinyMCE.getParam('table_default_cellspacing', '');
function init() { tinyMCEPopup.resizeToInnerSize(); document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor'); document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor'); var cols = 2, rows = 2, border = 0, cellpadding = "", cellspacing = ""; var align = "", width = "", height = "", bordercolor = "", bgcolor = "", className = ""; var id = "", summary = "", style = "", dir = "", lang = "", background = "", bgcolor = "", bordercolor = ""; var inst = tinyMCE.selectedInstance; var formObj = document.forms[0]; var elm = tinyMCE.getParentElement(inst.getFocusElement(), "table"); tinyMCE.tableElm = elm; action = tinyMCE.getWindowArg('action'); if (action == null) action = tinyMCE.tableElm ? "update" : "insert"; if (tinyMCE.tableElm && action != "insert") { var rowsAr = tinyMCE.tableElm.rows; var cols = 0; for (var i=0; i<rowsAr.length; i++) if (rowsAr[i].cells.length > cols) cols = rowsAr[i].cells.length; cols = cols; rows = rowsAr.length; st = tinyMCE.parseStyle(tinyMCE.getAttrib(tinyMCE.tableElm, "style")); border = trimSize(getStyle(elm, 'border', 'borderWidth')); cellpadding = tinyMCE.getAttrib(tinyMCE.tableElm, 'cellpadding', ""); cellspacing = tinyMCE.getAttrib(tinyMCE.tableElm, 'cellspacing', ""); width = trimSize(getStyle(elm, 'width', 'width')); height = trimSize(getStyle(elm, 'height', 'height')); bordercolor = convertRGBToHex(getStyle(elm, 'bordercolor', 'borderLeftColor')); bgcolor = convertRGBToHex(getStyle(elm, 'bgcolor', 'backgroundColor')); align = tinyMCE.getAttrib(tinyMCE.tableElm, 'align', align); className = tinyMCE.getVisualAidClass(tinyMCE.getAttrib(tinyMCE.tableElm, 'class'), false); id = tinyMCE.getAttrib(tinyMCE.tableElm, 'id'); summary = tinyMCE.getAttrib(tinyMCE.tableElm, 'summary'); style = tinyMCE.serializeStyle(st); dir = tinyMCE.getAttrib(tinyMCE.tableElm, 'dir'); lang = tinyMCE.getAttrib(tinyMCE.tableElm, 'lang'); background = getStyle(elm, 'background', 'backgroundImage').replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); orgTableWidth = width; orgTableHeight = height; action = "update"; } addClassesToList('class', "table_styles"); // Update form selectByValue(formObj, 'align', align); selectByValue(formObj, 'class', className); formObj.cols.value = cols; formObj.rows.value = rows; formObj.border.value = border; formObj.cellpadding.value = cellpadding; formObj.cellspacing.value = cellspacing; formObj.width.value = width; formObj.height.value = height; formObj.bordercolor.value = bordercolor; formObj.bgcolor.value = bgcolor; formObj.id.value = id; formObj.summary.value = summary; formObj.style.value = style; formObj.dir.value = dir; formObj.lang.value = lang; formObj.backgroundimage.value = background; formObj.insert.value = tinyMCE.getLang('lang_' + action, 'Insert', true); updateColor('bordercolor_pick', 'bordercolor'); updateColor('bgcolor_pick', 'bgcolor'); // Resize some elements if (isVisible('backgroundimagebrowser')) document.getElementById('backgroundimage').style.width = '180px'; // Disable some fields in update mode if (action == "update") { formObj.cols.disabled = true; formObj.rows.disabled = true; }}
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/table.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/table/jscripts/table.js
alert(href.replace(/file:(\/\/)/gi, ""));
function init() { var text = tinyMCE.getWindowArg('text').toString(); var href = tinyMCE.getWindowArg('href').toString(); document.forms[0].wiki_text.value = text; document.forms[0].web_text.value = text; document.forms[0].file_text.value = text; document.forms[0].attach_text.value = text; document.forms[0].email_text.value = text; if ((href != null) && (href != "")) { if (href.search(/(https?|ftp):\/\/[-a-zA-Z0-9+&@#\/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#\/%=~_|]/gi)>-1) { mcTabs.displayTab('web_tab','web_panel'); document.forms[0].web_page.value = href; } else if (href.search(/wikiattachment:-:(.*?)/gi) > -1) { mcTabs.displayTab('attachments_tab','attachments_panel'); document.forms[0].attach.value = href.replace(/wikiattachment:-:/gi, "").replace(/%20/gi, " "); } else if (href.search(/mailto:(.*?)/gi) > -1) { mcTabs.displayTab('email_tab','email_panel') document.forms[0].email.value = href.replace(/mailto:/gi, ""); } else if (href.search(/file:(\/\/\/\/\/)(.*?)/gi) > -1) { mcTabs.displayTab('file_tab','file_panel'); document.forms[0].filepath.value = href.replace(/file:(\/\/\/\/\/)/gi, ""); } else if (href.search(/file:(\/\/)(.*?)/gi) > -1) { mcTabs.displayTab('file_tab','file_panel'); alert(href.replace(/file:(\/\/)/gi, "")); document.forms[0].filepath.value = href.replace(/file:(\/\/)/gi, ""); } else { mcTabs.displayTab('wiki_tab','wiki_panel'); var space = "", whref = href; if (href.indexOf(".") > -1) { space = href.substring(0, href.indexOf(".")); whref = href.substring(href.indexOf(".") + 1, href.length); } document.forms[0].wiki_space.value = space; document.forms[0].wiki_page.value = whref; } } document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true); var className = tinyMCE.getWindowArg('className'); var editor_id = tinyMCE.getWindowArg('editor_id');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/f7074e4a3c7f8d598e9ff94e444bc246a94b0df1/link.js/clean/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js
document.forms[0].attach.value = href.replace(/wikiattachment:-:/gi, "").replace(/%20/gi, " ");
document.forms[0].attach_file.value = href.replace(/wikiattachment:-:/gi, "").replace(/%20/gi, " ");
function init() { var text = tinyMCE.getWindowArg('text').toString(); var href = tinyMCE.getWindowArg('href').toString(); document.forms[0].wiki_text.value = text; document.forms[0].web_text.value = text; document.forms[0].file_text.value = text; document.forms[0].attach_text.value = text; document.forms[0].email_text.value = text; if ((href != null) && (href != "")) { if (href.search(/(https?|ftp):\/\/[-a-zA-Z0-9+&@#\/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#\/%=~_|]/gi)>-1) { mcTabs.displayTab('web_tab','web_panel'); document.forms[0].web_page.value = href; } else if (href.search(/wikiattachment:-:(.*?)/gi) > -1) { mcTabs.displayTab('attachments_tab','attachments_panel'); document.forms[0].attach.value = href.replace(/wikiattachment:-:/gi, "").replace(/%20/gi, " "); } else if (href.search(/mailto:(.*?)/gi) > -1) { mcTabs.displayTab('email_tab','email_panel') document.forms[0].email.value = href.replace(/mailto:/gi, ""); } else if (href.search(/file:(\/\/\/\/\/)(.*?)/gi) > -1) { mcTabs.displayTab('file_tab','file_panel'); document.forms[0].filepath.value = href.replace(/file:(\/\/\/\/\/)/gi, ""); } else if (href.search(/file:(\/\/)(.*?)/gi) > -1) { mcTabs.displayTab('file_tab','file_panel'); document.forms[0].filepath.value = href.replace(/file:(\/\/)/gi, ""); } else { mcTabs.displayTab('wiki_tab','wiki_panel'); var space = "", whref = href; if (href.indexOf(".") > -1) { space = href.substring(0, href.indexOf(".")); whref = href.substring(href.indexOf(".") + 1, href.length); } document.forms[0].wiki_space.value = space; document.forms[0].wiki_page.value = whref; } } document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true); var className = tinyMCE.getWindowArg('className'); var editor_id = tinyMCE.getWindowArg('editor_id');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/dd352e85541f4f0c03f7f567916b9a31621e2ad2/link.js/clean/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js
document.forms[0].filepath.value = href.replace(/file:(\/\/\/\/\/)/gi, "");
function init() { var text = tinyMCE.getWindowArg('text').toString(); var href = tinyMCE.getWindowArg('href').toString(); document.forms[0].wiki_text.value = text; document.forms[0].web_text.value = text; document.forms[0].file_text.value = text; document.forms[0].attach_text.value = text; document.forms[0].email_text.value = text; if ((href != null) && (href != "")) { if (href.search(/(https?|ftp):\/\/[-a-zA-Z0-9+&@#\/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#\/%=~_|]/gi)>-1) { mcTabs.displayTab('web_tab','web_panel'); document.forms[0].web_page.value = href; } else if (href.search(/wikiattachment:-:(.*?)/gi) > -1) { mcTabs.displayTab('attachments_tab','attachments_panel'); document.forms[0].attach.value = href.replace(/wikiattachment:-:/gi, "").replace(/%20/gi, " "); } else if (href.search(/mailto:(.*?)/gi) > -1) { mcTabs.displayTab('email_tab','email_panel') document.forms[0].email.value = href.replace(/mailto:/gi, ""); } else if (href.search(/file:(\/\/\/\/\/)(.*?)/gi) > -1) { mcTabs.displayTab('file_tab','file_panel'); document.forms[0].filepath.value = href.replace(/file:(\/\/\/\/\/)/gi, ""); } else if (href.search(/file:(\/\/)(.*?)/gi) > -1) { mcTabs.displayTab('file_tab','file_panel'); document.forms[0].filepath.value = href.replace(/file:(\/\/)/gi, ""); } else { mcTabs.displayTab('wiki_tab','wiki_panel'); var space = "", whref = href; if (href.indexOf(".") > -1) { space = href.substring(0, href.indexOf(".")); whref = href.substring(href.indexOf(".") + 1, href.length); } document.forms[0].wiki_space.value = space; document.forms[0].wiki_page.value = whref; } } document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true); var className = tinyMCE.getWindowArg('className'); var editor_id = tinyMCE.getWindowArg('editor_id');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/dd352e85541f4f0c03f7f567916b9a31621e2ad2/link.js/clean/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js
document.forms[0].filepath.value = href.replace(/file:(\/\/)/gi, "");
function init() { var text = tinyMCE.getWindowArg('text').toString(); var href = tinyMCE.getWindowArg('href').toString(); document.forms[0].wiki_text.value = text; document.forms[0].web_text.value = text; document.forms[0].file_text.value = text; document.forms[0].attach_text.value = text; document.forms[0].email_text.value = text; if ((href != null) && (href != "")) { if (href.search(/(https?|ftp):\/\/[-a-zA-Z0-9+&@#\/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#\/%=~_|]/gi)>-1) { mcTabs.displayTab('web_tab','web_panel'); document.forms[0].web_page.value = href; } else if (href.search(/wikiattachment:-:(.*?)/gi) > -1) { mcTabs.displayTab('attachments_tab','attachments_panel'); document.forms[0].attach.value = href.replace(/wikiattachment:-:/gi, "").replace(/%20/gi, " "); } else if (href.search(/mailto:(.*?)/gi) > -1) { mcTabs.displayTab('email_tab','email_panel') document.forms[0].email.value = href.replace(/mailto:/gi, ""); } else if (href.search(/file:(\/\/\/\/\/)(.*?)/gi) > -1) { mcTabs.displayTab('file_tab','file_panel'); document.forms[0].filepath.value = href.replace(/file:(\/\/\/\/\/)/gi, ""); } else if (href.search(/file:(\/\/)(.*?)/gi) > -1) { mcTabs.displayTab('file_tab','file_panel'); document.forms[0].filepath.value = href.replace(/file:(\/\/)/gi, ""); } else { mcTabs.displayTab('wiki_tab','wiki_panel'); var space = "", whref = href; if (href.indexOf(".") > -1) { space = href.substring(0, href.indexOf(".")); whref = href.substring(href.indexOf(".") + 1, href.length); } document.forms[0].wiki_space.value = space; document.forms[0].wiki_page.value = whref; } } document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true); var className = tinyMCE.getWindowArg('className'); var editor_id = tinyMCE.getWindowArg('editor_id');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/dd352e85541f4f0c03f7f567916b9a31621e2ad2/link.js/clean/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js
document.forms[0].attach.value = href.replace(/wikiattachment:-:/gi, "");
document.forms[0].attach.value = href.replace(/wikiattachment:-:/gi, "").replace(/%20/gi, " ");
function init() { var text = tinyMCE.getWindowArg('text').toString(); var href = tinyMCE.getWindowArg('href').toString(); document.forms[0].wiki_text.value = text; document.forms[0].web_text.value = text; document.forms[0].attach_text.value = text; document.forms[0].email_text.value = text; if ((href != null) && (href != "")) { if (href.search(/(https?|ftp):\/\/[-a-zA-Z0-9+&@#\/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#\/%=~_|]/gi)>-1) { mcTabs.displayTab('web_tab','web_panel'); document.forms[0].web_page.value = href; } else if (href.search(/wikiattachment:-:(.*?)/gi) > -1) { mcTabs.displayTab('attachments_tab','attachments_panel'); document.forms[0].attach.value = href.replace(/wikiattachment:-:/gi, ""); } else if (href.search(/mailto:(.*?)/gi) > -1) { mcTabs.displayTab('email_tab','email_panel') document.forms[0].email.value = href.replace(/mailto:/gi, ""); } else { mcTabs.displayTab('wiki_tab','wiki_panel'); var space = "", whref = href; if (href.indexOf(".") > -1) { space = href.substring(0, href.indexOf(".")); whref = href.substring(href.indexOf(".") + 1, href.length); } document.forms[0].wiki_space.value = space; document.forms[0].wiki_page.value = whref; } } document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true); var className = tinyMCE.getWindowArg('className'); var editor_id = tinyMCE.getWindowArg('editor_id');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/baa0ff49e632f866bc8a0a1f4a567e8416b94608/link.js/clean/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js
tinyMCEPopup.resizeToInnerSize();
function init() { var formObj = document.forms[0]; formObj.width.value = tinyMCE.getWindowArg('width'); formObj.size.value = tinyMCE.getWindowArg('size'); formObj.insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('mceDo'),'Insert',true); if (tinyMCE.getWindowArg('noshade')) { formObj.noshade.checked = true; } if (tinyMCE.getWindowArg('width').lastIndexOf('%')!=-1) { formObj.width2.value = "%"; formObj.width.value = formObj.width.value.substring(0,formObj.width.value.length-1); }}
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/rule.js/buggy/mambots/editors/tinymce/jscripts/tiny_mce/plugins/advhr/jscripts/rule.js
var ce = document.getElementById('container');
var ce = document.getElementById('container'), h;
function init() { var ce = document.getElementById('container'); ce.style.cssText = tinyMCEPopup.getWindowArg('style_text'); tinyMCEPopup.resizeToInnerSize(); document.getElementById('text_color_pickcontainer').innerHTML = getColorPickerHTML('text_color_pick','text_color'); document.getElementById('background_color_pickcontainer').innerHTML = getColorPickerHTML('background_color_pick','background_color'); document.getElementById('border_color_top_pickcontainer').innerHTML = getColorPickerHTML('border_color_top_pick','border_color_top'); document.getElementById('border_color_right_pickcontainer').innerHTML = getColorPickerHTML('border_color_right_pick','border_color_right'); document.getElementById('border_color_bottom_pickcontainer').innerHTML = getColorPickerHTML('border_color_bottom_pick','border_color_bottom'); document.getElementById('border_color_left_pickcontainer').innerHTML = getColorPickerHTML('border_color_left_pick','border_color_left'); fillSelect(0, 'text_font', 'style_font', defaultFonts, ';', true); fillSelect(0, 'text_size', 'style_font_size', defaultSizes, ';', true); fillSelect(0, 'text_size_measurement', 'style_font_size_measurement', defaultMeasurement, ';', true); fillSelect(0, 'text_case', 'style_text_case', "capitalize;uppercase;lowercase", ';', true); fillSelect(0, 'text_weight', 'style_font_weight', defaultWeight, ';', true); fillSelect(0, 'text_style', 'style_font_style', defaultTextStyle, ';', true); fillSelect(0, 'text_variant', 'style_font_variant', defaultVariant, ';', true); fillSelect(0, 'text_lineheight', 'style_font_line_height', defaultLineHeight, ';', true); fillSelect(0, 'text_lineheight_measurement', 'style_font_line_height_measurement', defaultMeasurement, ';', true); fillSelect(0, 'background_attachment', 'style_background_attachment', defaultAttachment, ';', true); fillSelect(0, 'background_repeat', 'style_background_repeat', defaultRepeat, ';', true); fillSelect(0, 'background_hpos_measurement', 'style_background_hpos_measurement', defaultMeasurement, ';', true); fillSelect(0, 'background_vpos_measurement', 'style_background_vpos_measurement', defaultMeasurement, ';', true); fillSelect(0, 'background_hpos', 'style_background_hpos', defaultPosH, ';', true); fillSelect(0, 'background_vpos', 'style_background_vpos', defaultPosV, ';', true); fillSelect(0, 'block_wordspacing', 'style_wordspacing', 'normal', ';', true); fillSelect(0, 'block_wordspacing_measurement', 'style_wordspacing_measurement', defaultSpacingMeasurement, ';', true); fillSelect(0, 'block_letterspacing', 'style_letterspacing', 'normal', ';', true); fillSelect(0, 'block_letterspacing_measurement', 'style_letterspacing_measurement', defaultSpacingMeasurement, ';', true); fillSelect(0, 'block_vertical_alignment', 'style_vertical_alignment', defaultVAlign, ';', true); fillSelect(0, 'block_text_align', 'style_text_align', "left;right;center;justify", ';', true); fillSelect(0, 'block_whitespace', 'style_whitespace', "normal;pre;nowrap", ';', true); fillSelect(0, 'block_display', 'style_display', defaultDisplay, ';', true); fillSelect(0, 'block_text_indent_measurement', 'style_text_indent_measurement', defaultIndentMeasurement, ';', true); fillSelect(0, 'box_width_measurement', 'style_box_width_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_height_measurement', 'style_box_height_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_float', 'style_float', 'left;right;none', ';', true); fillSelect(0, 'box_clear', 'style_clear', 'left;right;both;none', ';', true); fillSelect(0, 'box_padding_left_measurement', 'style_padding_left_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_padding_top_measurement', 'style_padding_top_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_padding_bottom_measurement', 'style_padding_bottom_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_padding_right_measurement', 'style_padding_right_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_margin_left_measurement', 'style_margin_left_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_margin_top_measurement', 'style_margin_top_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_margin_bottom_measurement', 'style_margin_bottom_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_margin_right_measurement', 'style_margin_right_measurement', defaultMeasurement, ';', true); fillSelect(0, 'border_style_top', 'style_border_style_top', defaultBorderStyle, ';', true); fillSelect(0, 'border_style_right', 'style_border_style_right', defaultBorderStyle, ';', true); fillSelect(0, 'border_style_bottom', 'style_border_style_bottom', defaultBorderStyle, ';', true); fillSelect(0, 'border_style_left', 'style_border_style_left', defaultBorderStyle, ';', true); fillSelect(0, 'border_width_top', 'style_border_width_top', defaultBorderWidth, ';', true); fillSelect(0, 'border_width_right', 'style_border_width_right', defaultBorderWidth, ';', true); fillSelect(0, 'border_width_bottom', 'style_border_width_bottom', defaultBorderWidth, ';', true); fillSelect(0, 'border_width_left', 'style_border_width_left', defaultBorderWidth, ';', true); fillSelect(0, 'border_width_top_measurement', 'style_border_width_top_measurement', defaultMeasurement, ';', true); fillSelect(0, 'border_width_right_measurement', 'style_border_width_right_measurement', defaultMeasurement, ';', true); fillSelect(0, 'border_width_bottom_measurement', 'style_border_width_bottom_measurement', defaultMeasurement, ';', true); fillSelect(0, 'border_width_left_measurement', 'style_border_width_left_measurement', defaultMeasurement, ';', true); fillSelect(0, 'list_type', 'style_list_type', defaultListType, ';', true); fillSelect(0, 'list_position', 'style_list_position', "inside;outside", ';', true); fillSelect(0, 'positioning_type', 'style_positioning_type', "absolute;relative;static", ';', true); fillSelect(0, 'positioning_visibility', 'style_positioning_visibility', "inherit;visible;hidden", ';', true); fillSelect(0, 'positioning_width_measurement', 'style_positioning_width_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_height_measurement', 'style_positioning_height_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_overflow', 'style_positioning_overflow', "visible;hidden;scroll;auto", ';', true); fillSelect(0, 'positioning_placement_top_measurement', 'style_positioning_placement_top_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_placement_right_measurement', 'style_positioning_placement_right_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_placement_bottom_measurement', 'style_positioning_placement_bottom_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_placement_left_measurement', 'style_positioning_placement_left_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_clip_top_measurement', 'style_positioning_clip_top_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_clip_right_measurement', 'style_positioning_clip_right_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_clip_bottom_measurement', 'style_positioning_clip_bottom_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_clip_left_measurement', 'style_positioning_clip_left_measurement', defaultMeasurement, ';', true); TinyMCE_EditableSelects.init(); setupFormData(); showDisabledControls();}
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/props.js/buggy/mambots/editors/tinymce/jscripts/tiny_mce/plugins/style/jscripts/props.js
h = getBrowserHTML('background_image_browser','background_image','image','advimage'); document.getElementById("background_image_browser").innerHTML = h;
function init() { var ce = document.getElementById('container'); ce.style.cssText = tinyMCEPopup.getWindowArg('style_text'); tinyMCEPopup.resizeToInnerSize(); document.getElementById('text_color_pickcontainer').innerHTML = getColorPickerHTML('text_color_pick','text_color'); document.getElementById('background_color_pickcontainer').innerHTML = getColorPickerHTML('background_color_pick','background_color'); document.getElementById('border_color_top_pickcontainer').innerHTML = getColorPickerHTML('border_color_top_pick','border_color_top'); document.getElementById('border_color_right_pickcontainer').innerHTML = getColorPickerHTML('border_color_right_pick','border_color_right'); document.getElementById('border_color_bottom_pickcontainer').innerHTML = getColorPickerHTML('border_color_bottom_pick','border_color_bottom'); document.getElementById('border_color_left_pickcontainer').innerHTML = getColorPickerHTML('border_color_left_pick','border_color_left'); fillSelect(0, 'text_font', 'style_font', defaultFonts, ';', true); fillSelect(0, 'text_size', 'style_font_size', defaultSizes, ';', true); fillSelect(0, 'text_size_measurement', 'style_font_size_measurement', defaultMeasurement, ';', true); fillSelect(0, 'text_case', 'style_text_case', "capitalize;uppercase;lowercase", ';', true); fillSelect(0, 'text_weight', 'style_font_weight', defaultWeight, ';', true); fillSelect(0, 'text_style', 'style_font_style', defaultTextStyle, ';', true); fillSelect(0, 'text_variant', 'style_font_variant', defaultVariant, ';', true); fillSelect(0, 'text_lineheight', 'style_font_line_height', defaultLineHeight, ';', true); fillSelect(0, 'text_lineheight_measurement', 'style_font_line_height_measurement', defaultMeasurement, ';', true); fillSelect(0, 'background_attachment', 'style_background_attachment', defaultAttachment, ';', true); fillSelect(0, 'background_repeat', 'style_background_repeat', defaultRepeat, ';', true); fillSelect(0, 'background_hpos_measurement', 'style_background_hpos_measurement', defaultMeasurement, ';', true); fillSelect(0, 'background_vpos_measurement', 'style_background_vpos_measurement', defaultMeasurement, ';', true); fillSelect(0, 'background_hpos', 'style_background_hpos', defaultPosH, ';', true); fillSelect(0, 'background_vpos', 'style_background_vpos', defaultPosV, ';', true); fillSelect(0, 'block_wordspacing', 'style_wordspacing', 'normal', ';', true); fillSelect(0, 'block_wordspacing_measurement', 'style_wordspacing_measurement', defaultSpacingMeasurement, ';', true); fillSelect(0, 'block_letterspacing', 'style_letterspacing', 'normal', ';', true); fillSelect(0, 'block_letterspacing_measurement', 'style_letterspacing_measurement', defaultSpacingMeasurement, ';', true); fillSelect(0, 'block_vertical_alignment', 'style_vertical_alignment', defaultVAlign, ';', true); fillSelect(0, 'block_text_align', 'style_text_align', "left;right;center;justify", ';', true); fillSelect(0, 'block_whitespace', 'style_whitespace', "normal;pre;nowrap", ';', true); fillSelect(0, 'block_display', 'style_display', defaultDisplay, ';', true); fillSelect(0, 'block_text_indent_measurement', 'style_text_indent_measurement', defaultIndentMeasurement, ';', true); fillSelect(0, 'box_width_measurement', 'style_box_width_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_height_measurement', 'style_box_height_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_float', 'style_float', 'left;right;none', ';', true); fillSelect(0, 'box_clear', 'style_clear', 'left;right;both;none', ';', true); fillSelect(0, 'box_padding_left_measurement', 'style_padding_left_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_padding_top_measurement', 'style_padding_top_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_padding_bottom_measurement', 'style_padding_bottom_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_padding_right_measurement', 'style_padding_right_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_margin_left_measurement', 'style_margin_left_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_margin_top_measurement', 'style_margin_top_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_margin_bottom_measurement', 'style_margin_bottom_measurement', defaultMeasurement, ';', true); fillSelect(0, 'box_margin_right_measurement', 'style_margin_right_measurement', defaultMeasurement, ';', true); fillSelect(0, 'border_style_top', 'style_border_style_top', defaultBorderStyle, ';', true); fillSelect(0, 'border_style_right', 'style_border_style_right', defaultBorderStyle, ';', true); fillSelect(0, 'border_style_bottom', 'style_border_style_bottom', defaultBorderStyle, ';', true); fillSelect(0, 'border_style_left', 'style_border_style_left', defaultBorderStyle, ';', true); fillSelect(0, 'border_width_top', 'style_border_width_top', defaultBorderWidth, ';', true); fillSelect(0, 'border_width_right', 'style_border_width_right', defaultBorderWidth, ';', true); fillSelect(0, 'border_width_bottom', 'style_border_width_bottom', defaultBorderWidth, ';', true); fillSelect(0, 'border_width_left', 'style_border_width_left', defaultBorderWidth, ';', true); fillSelect(0, 'border_width_top_measurement', 'style_border_width_top_measurement', defaultMeasurement, ';', true); fillSelect(0, 'border_width_right_measurement', 'style_border_width_right_measurement', defaultMeasurement, ';', true); fillSelect(0, 'border_width_bottom_measurement', 'style_border_width_bottom_measurement', defaultMeasurement, ';', true); fillSelect(0, 'border_width_left_measurement', 'style_border_width_left_measurement', defaultMeasurement, ';', true); fillSelect(0, 'list_type', 'style_list_type', defaultListType, ';', true); fillSelect(0, 'list_position', 'style_list_position', "inside;outside", ';', true); fillSelect(0, 'positioning_type', 'style_positioning_type', "absolute;relative;static", ';', true); fillSelect(0, 'positioning_visibility', 'style_positioning_visibility', "inherit;visible;hidden", ';', true); fillSelect(0, 'positioning_width_measurement', 'style_positioning_width_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_height_measurement', 'style_positioning_height_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_overflow', 'style_positioning_overflow', "visible;hidden;scroll;auto", ';', true); fillSelect(0, 'positioning_placement_top_measurement', 'style_positioning_placement_top_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_placement_right_measurement', 'style_positioning_placement_right_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_placement_bottom_measurement', 'style_positioning_placement_bottom_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_placement_left_measurement', 'style_positioning_placement_left_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_clip_top_measurement', 'style_positioning_clip_top_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_clip_right_measurement', 'style_positioning_clip_right_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_clip_bottom_measurement', 'style_positioning_clip_bottom_measurement', defaultMeasurement, ';', true); fillSelect(0, 'positioning_clip_left_measurement', 'style_positioning_clip_left_measurement', defaultMeasurement, ';', true); TinyMCE_EditableSelects.init(); setupFormData(); showDisabledControls();}
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/props.js/buggy/mambots/editors/tinymce/jscripts/tiny_mce/plugins/style/jscripts/props.js
document.forms[0].href.value = tinyMCE.getWindowArg('src');;
var href = tinyMCE.getWindowArg('src') document.forms[0].href.value = href.replace(/%20/gi, " ");
function init() { editor_id = tinyMCE.getWindowArg('editor_id'); document.forms[0].href.value = tinyMCE.getWindowArg('src');; document.forms[0].width.value = tinyMCE.getWindowArg('width'); document.forms[0].height.value = tinyMCE.getWindowArg('height'); for (var i=0; i<document.forms[0].align.options.length; i++) { if (document.forms[0].align.options[i].value == tinyMCE.getWindowArg('align')) document.forms[0].align.options.selectedIndex = i; } document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true);}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/baa0ff49e632f866bc8a0a1f4a567e8416b94608/image.js/buggy/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/image.js
this.addExternalProcessor((/{\s*attach\s*:\s*(.*?)(\|(.*?))?}/i), 'convertAttachmentExternal');
this.addExternalProcessorBefore("convertTableExternal", (/{\s*attach\s*:\s*(.*?)(\|(.*?))?}/i), 'convertAttachmentExternal');
WikiEditor.prototype.initAttachmentsPlugin = function() { if(!this.isPluginLoaded('core')) { alert("Attachment Plugin: You must load the core syntax plugin before!"); return; } this.addExternalProcessorBefore("convertTableExternal", (/{\s*image\s*:\s*(.*?)(\|(.*?))?(\|(.*?))?(\|(.*?))?}/i), 'convertImageExternal'); this.addInternalProcessor((/<img\s*([^>]*)(class=\"wikiimage\")\s*([^>]*)\/>/i), 'convertImageInternal'); this.addExternalProcessor((/{\s*attach\s*:\s*(.*?)(\|(.*?))?}/i), 'convertAttachmentExternal'); this.addInternalProcessorBefore('convertLinkInternal', (/<a\s*href=\"wikiattachment:-:(.*?)\"\s*([^>]*)>(.*?)<\/a>/i), 'convertAttachmentInternal'); this.addToolbarHandler('handleAttachmentsButtons'); this.addCommand('wikiAttachment', 'attachmentCommand'); this.addCommand('mceImage', 'imageCommand');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/1e540478186618f6b999863aedec34c80810164b/attachments.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/attachments.js
this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal');
this.addInternalProcessor((/<p[^>]*>&nbsp;<\/p>/gi), ""); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal');
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal'); this.addInternalProcessor((/\s*<(ul|ol)\s*([^>]*)>/i), 'convertListInternal'); this.addExternalProcessor((/^s*----(\-)*\s*$/gim), '<hr class="line" \/>'); this.addInternalProcessor((/<hr[^>]*>/gi), '----'); // Must remove the html tag format so it won't interfere with paragraph conversion this.addExternalProcessor((/<%([\s\S]+?)%>/ig), '&lt;%$1%&gt;'); this.addExternalProcessor((/((\s|\S)*)/i), 'convertParagraphExternal'); this.addInternalProcessor((/<\s*p\s*([^>]*)>(.*?)<\s*\/\s*p\s*>/gi), '\r\n$2\r\n'); this.addExternalProcessor((/\[(.*?)(>(.*?))?\]/i), 'convertLinkExternal'); this.addInternalProcessor((/<a\s*([^>]*)(class=\"wikiexternallink\"|class=\"wikilink\")\s*([^>]*)>(.*?)<\/a>/i), 'convertLinkInternal'); this.addExternalProcessor((/\{table\}([\s\S]+?)\{table\}/i), 'convertTableExternal'); this.addInternalProcessor((/<table\s*([^>]*)class=\"wiki-table\"\s*([^>]*)>([\s\S]+?)<\/table>/i), 'convertTableInternal'); this.addExternalProcessor((/\*(.+?)\*/gi), '<b class="bold">$1<\/b>'); this.addExternalProcessor((/__(.+?)__/gi), '<b class="bold">$1<\/b>'); this.addInternalProcessor((/<strong[^>]*>(.*?)<\/strong>/gi), '*$1*'); this.addExternalProcessor((/~~(.+?)~~/gi), '<i class="italic">$1<\/i>'); this.addInternalProcessor((/<em[^>]*>(.*?)<\/em>/gi), '~~$1~~'); this.addExternalProcessor((/--(.+?)--/gi), '<strike class="strike">$1<\/strike>'); this.addInternalProcessor((/<strike[^>]*>(.*?)<\/strike>/gi), '--$1--'); this.addInternalProcessor((/[#$][a-zA-Z0-9-_.]+\(([^&)]*&quot;[^)]*)+?\)/i), 'convertVelocityScriptsInternal'); this.addInternalProcessor((/&lt;%([\s\S]+?)%&gt;/i), 'convertGroovyScriptsInternal'); //this.addInternalProcessor((/&nbsp;(?!\|)/gi), ""); var charStr = "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "?||||||" + "|||" + // Commercial symbols: "?||||?||" + "||" + //Other characters ">|<|&|\""; var characterEntityStr = "&Agrave;|&Aacute;|&Acirc;|&Atilde;|&Auml;|&Aring;|" + "&AElig;|&Ccedil;|&Egrave;|&Eacute;|&Ecirc;|&Euml;|" + "&Igrave;|&Iacute;|&Icirc;|&Iuml;|&Ntilde;|&Ograve;|" + "&Oacute;|&Ocirc;|&Otilde;|&Ouml;|&Oslash;|&Ugrave;|" + "&Uacute;|&Ucirc;|&Uuml;|&szlig;|&agrave;|&aacute;|" + "&acirc;|&atilde;|&auml;|&aring;|&aelig;|&ccedil;|" + "&egrave;|&eacute;|&ecirc;|&euml;|&igrave;|&iacute;|" + "&icirc;|&iuml;|&ntilde;|&ograve;|&oacute;|&ocirc;|" + "&oelig;|&otilde;|&ouml;|&oslash;|&ugrave;|&uacute;|" + "&ucirc;|&uuml;|&yuml;|" + // Commercial symbols: "&trade;|&copy;|&reg;|&cent;|&euro;|&yen;|" + "&pound;|&curren;|" + //Other characters "&gt;|&lt;|&amp;|&quot;" var characterEntitys = characterEntityStr.split("|"); var chars = charStr.split("|"); for (var i= 0; i< characterEntitys.length; i++) { var regExp = new RegExp(characterEntitys[i],'g'); this.addInternalProcessor((regExp), chars[i]); } this.setHtmlTagRemover('removeHtmlTags_Groovy'); this.setHtmlTagRemover('removeSpecialHtmlTags'); // Toolbar handlers this.addToolbarHandler('handleTextButtons'); this.addToolbarHandler('handleListButtons'); this.addToolbarHandler('handleIndentButtons'); this.addToolbarHandler('handleUndoButtons'); this.addToolbarHandler('handleTitlesList'); this.addToolbarHandler('handleLinkButtons'); this.addToolbarHandler('handleTableButtons'); // Add Comands and Fix Commands(workarounds) this.addCommand('Title', 'titleCommand'); this.addFixCommand('Title', 'fixTitle'); this.addFixCommand("InsertUnorderedList", 'fixInsertUnorderedList'); this.addFixCommand("Indent", 'fixInsertUnorderedList');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/99c4378ba78bef1f5ed4ec3e57a795da561a9024/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js
"?||||||" +
"||||||" +
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addInternalProcessor((/<p[^>]*>&nbsp;<\/p>/gi), ""); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal'); this.addInternalProcessor((/\s*<(ul|ol)\s*([^>]*)>/i), 'convertListInternal'); this.addExternalProcessor((/^s*----(\-)*\s*$/gim), '<hr class="line" \/>'); this.addInternalProcessor((/<hr[^>]*>/gi), '----'); // Must remove the html tag format so it won't interfere with paragraph conversion this.addExternalProcessor((/<%([\s\S]+?)%>/ig), '&lt;%$1%&gt;'); this.addExternalProcessor((/\{style:\s*(.*?)\}([\s\S]+?)\{style\}/i), 'convertStyleExternal'); this.addInternalProcessor((/<(font|span|div)\s*(.*?)>([\s\S]+?)<\/(font|span|div)>/i), 'convertStyleInternal'); this.addExternalProcessor((/((\s|\S)*)/i), 'convertParagraphExternal'); this.addInternalProcessor((/<\s*p\s*([^>]*)>(.*?)<\s*\/\s*p\s*>/gi), '\r\n$2\r\n'); this.addExternalProcessor((/\[(.*?)(>(.*?))?\]/i), 'convertLinkExternal'); this.addInternalProcessor((/<a\s*([^>]*)(class=\"wikiexternallink\"|class=\"wikilink\")\s*([^>]*)>(.*?)<\/a>/i), 'convertLinkInternal'); this.addExternalProcessor((/\{table\}([\s\S]+?)\{table\}/i), 'convertTableExternal'); this.addInternalProcessor((/<table\s*([^>]*)class=\"wiki-table\"\s*([^>]*)>([\s\S]+?)<\/table>/i), 'convertTableInternal'); this.addExternalProcessor((/\*(.+?)\*/gi), '<b class="bold">$1<\/b>'); this.addExternalProcessor((/__(.+?)__/gi), '<b class="bold">$1<\/b>'); this.addInternalProcessor((/<strong[^>]*>(.*?)<\/strong>/gi), '*$1*'); this.addExternalProcessor((/~~(.+?)~~/gi), '<i class="italic">$1<\/i>'); this.addInternalProcessor((/<em[^>]*>(.*?)<\/em>/gi), '~~$1~~'); this.addExternalProcessor((/--(.+?)--/gi), '<strike class="strike">$1<\/strike>'); this.addInternalProcessor((/<strike[^>]*>(.*?)<\/strike>/gi), '--$1--'); this.addInternalProcessor((/[#$][a-zA-Z0-9-_.]+\(([^&)]*&quot;[^)]*)+?\)/i), 'convertVelocityScriptsInternal'); this.addInternalProcessor((/&lt;%([\s\S]+?)%&gt;/i), 'convertGroovyScriptsInternal'); //this.addInternalProcessor((/&nbsp;(?!\|)/gi), ""); var charStr = "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "?||||||" + "|||" + // Commercial symbols: "?||||?||" + "||" + //Other characters ">|<|&|\""; var characterEntityStr = "&Agrave;|&Aacute;|&Acirc;|&Atilde;|&Auml;|&Aring;|" + "&AElig;|&Ccedil;|&Egrave;|&Eacute;|&Ecirc;|&Euml;|" + "&Igrave;|&Iacute;|&Icirc;|&Iuml;|&Ntilde;|&Ograve;|" + "&Oacute;|&Ocirc;|&Otilde;|&Ouml;|&Oslash;|&Ugrave;|" + "&Uacute;|&Ucirc;|&Uuml;|&szlig;|&agrave;|&aacute;|" + "&acirc;|&atilde;|&auml;|&aring;|&aelig;|&ccedil;|" + "&egrave;|&eacute;|&ecirc;|&euml;|&igrave;|&iacute;|" + "&icirc;|&iuml;|&ntilde;|&ograve;|&oacute;|&ocirc;|" + "&oelig;|&otilde;|&ouml;|&oslash;|&ugrave;|&uacute;|" + "&ucirc;|&uuml;|&yuml;|" + // Commercial symbols: "&trade;|&copy;|&reg;|&cent;|&euro;|&yen;|" + "&pound;|&curren;|" + //Other characters "&gt;|&lt;|&amp;|&quot;" var characterEntitys = characterEntityStr.split("|"); var chars = charStr.split("|"); for (var i= 0; i< characterEntitys.length; i++) { var regExp = new RegExp(characterEntitys[i],'g'); this.addInternalProcessor((regExp), chars[i]); } this.setHtmlTagRemover('removeHtmlTags_Groovy'); this.setHtmlTagRemover('removeSpecialHtmlTags'); // Toolbar handlers this.addToolbarHandler('handleTextButtons'); this.addToolbarHandler('handleListButtons'); this.addToolbarHandler('handleIndentButtons'); this.addToolbarHandler('handleUndoButtons'); this.addToolbarHandler('handleTitlesList'); this.addToolbarHandler('handleLinkButtons'); this.addToolbarHandler('handleTableButtons'); // Add Comands and Fix Commands(workarounds) this.addCommand('Title', 'titleCommand'); this.addFixCommand('Title', 'fixTitle'); this.addFixCommand("InsertUnorderedList", 'fixInsertUnorderedList'); this.addFixCommand("Indent", 'fixInsertUnorderedList');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/70a70b7f03b726caafdb9c443af79e49bb8ebd94/core.js/clean/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js
"?||||?||" +
"||||||" +
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addInternalProcessor((/<p[^>]*>&nbsp;<\/p>/gi), ""); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal'); this.addInternalProcessor((/\s*<(ul|ol)\s*([^>]*)>/i), 'convertListInternal'); this.addExternalProcessor((/^s*----(\-)*\s*$/gim), '<hr class="line" \/>'); this.addInternalProcessor((/<hr[^>]*>/gi), '----'); // Must remove the html tag format so it won't interfere with paragraph conversion this.addExternalProcessor((/<%([\s\S]+?)%>/ig), '&lt;%$1%&gt;'); this.addExternalProcessor((/\{style:\s*(.*?)\}([\s\S]+?)\{style\}/i), 'convertStyleExternal'); this.addInternalProcessor((/<(font|span|div)\s*(.*?)>([\s\S]+?)<\/(font|span|div)>/i), 'convertStyleInternal'); this.addExternalProcessor((/((\s|\S)*)/i), 'convertParagraphExternal'); this.addInternalProcessor((/<\s*p\s*([^>]*)>(.*?)<\s*\/\s*p\s*>/gi), '\r\n$2\r\n'); this.addExternalProcessor((/\[(.*?)(>(.*?))?\]/i), 'convertLinkExternal'); this.addInternalProcessor((/<a\s*([^>]*)(class=\"wikiexternallink\"|class=\"wikilink\")\s*([^>]*)>(.*?)<\/a>/i), 'convertLinkInternal'); this.addExternalProcessor((/\{table\}([\s\S]+?)\{table\}/i), 'convertTableExternal'); this.addInternalProcessor((/<table\s*([^>]*)class=\"wiki-table\"\s*([^>]*)>([\s\S]+?)<\/table>/i), 'convertTableInternal'); this.addExternalProcessor((/\*(.+?)\*/gi), '<b class="bold">$1<\/b>'); this.addExternalProcessor((/__(.+?)__/gi), '<b class="bold">$1<\/b>'); this.addInternalProcessor((/<strong[^>]*>(.*?)<\/strong>/gi), '*$1*'); this.addExternalProcessor((/~~(.+?)~~/gi), '<i class="italic">$1<\/i>'); this.addInternalProcessor((/<em[^>]*>(.*?)<\/em>/gi), '~~$1~~'); this.addExternalProcessor((/--(.+?)--/gi), '<strike class="strike">$1<\/strike>'); this.addInternalProcessor((/<strike[^>]*>(.*?)<\/strike>/gi), '--$1--'); this.addInternalProcessor((/[#$][a-zA-Z0-9-_.]+\(([^&)]*&quot;[^)]*)+?\)/i), 'convertVelocityScriptsInternal'); this.addInternalProcessor((/&lt;%([\s\S]+?)%&gt;/i), 'convertGroovyScriptsInternal'); //this.addInternalProcessor((/&nbsp;(?!\|)/gi), ""); var charStr = "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "?||||||" + "|||" + // Commercial symbols: "?||||?||" + "||" + //Other characters ">|<|&|\""; var characterEntityStr = "&Agrave;|&Aacute;|&Acirc;|&Atilde;|&Auml;|&Aring;|" + "&AElig;|&Ccedil;|&Egrave;|&Eacute;|&Ecirc;|&Euml;|" + "&Igrave;|&Iacute;|&Icirc;|&Iuml;|&Ntilde;|&Ograve;|" + "&Oacute;|&Ocirc;|&Otilde;|&Ouml;|&Oslash;|&Ugrave;|" + "&Uacute;|&Ucirc;|&Uuml;|&szlig;|&agrave;|&aacute;|" + "&acirc;|&atilde;|&auml;|&aring;|&aelig;|&ccedil;|" + "&egrave;|&eacute;|&ecirc;|&euml;|&igrave;|&iacute;|" + "&icirc;|&iuml;|&ntilde;|&ograve;|&oacute;|&ocirc;|" + "&oelig;|&otilde;|&ouml;|&oslash;|&ugrave;|&uacute;|" + "&ucirc;|&uuml;|&yuml;|" + // Commercial symbols: "&trade;|&copy;|&reg;|&cent;|&euro;|&yen;|" + "&pound;|&curren;|" + //Other characters "&gt;|&lt;|&amp;|&quot;" var characterEntitys = characterEntityStr.split("|"); var chars = charStr.split("|"); for (var i= 0; i< characterEntitys.length; i++) { var regExp = new RegExp(characterEntitys[i],'g'); this.addInternalProcessor((regExp), chars[i]); } this.setHtmlTagRemover('removeHtmlTags_Groovy'); this.setHtmlTagRemover('removeSpecialHtmlTags'); // Toolbar handlers this.addToolbarHandler('handleTextButtons'); this.addToolbarHandler('handleListButtons'); this.addToolbarHandler('handleIndentButtons'); this.addToolbarHandler('handleUndoButtons'); this.addToolbarHandler('handleTitlesList'); this.addToolbarHandler('handleLinkButtons'); this.addToolbarHandler('handleTableButtons'); // Add Comands and Fix Commands(workarounds) this.addCommand('Title', 'titleCommand'); this.addFixCommand('Title', 'fixTitle'); this.addFixCommand("InsertUnorderedList", 'fixInsertUnorderedList'); this.addFixCommand("Indent", 'fixInsertUnorderedList');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/70a70b7f03b726caafdb9c443af79e49bb8ebd94/core.js/clean/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js
this.addExternalProcessor((/\{style:\s*(.*?)\}([\s\S]+?)\{style\}/i), 'convertStyleExternal'); this.addInternalProcessor((/<(font|span|div)\s*(.*?)>([\s\S]+?)<\/(font|span|div)>/i), 'convertStyleInternal');
this.addExternalProcessorBefore('convertTableExternal', (/\{style:\s*(.*?)\}([\s\S]+?)\{style\}/i), 'convertStyleExternal'); this.addInternalProcessorBefore('convertTableInternal', (/<(font|span|div)\s*(.*?)>([\s\S]+?)<\/(font|span|div)>/i), 'convertStyleInternal');
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addInternalProcessor((/<p[^>]*>&nbsp;<\/p>/gi), ""); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal'); this.addInternalProcessor((/\s*<(ul|ol)\s*([^>]*)>/i), 'convertListInternal'); this.addExternalProcessor((/^s*----(\-)*\s*$/gim), '<hr class="line" \/>'); this.addInternalProcessor((/<hr[^>]*>/gi), '----'); // Must remove the html tag format so it won't interfere with paragraph conversion this.addExternalProcessor((/<%([\s\S]+?)%>/ig), '&lt;%$1%&gt;'); this.addExternalProcessor((/((\s|\S)*)/i), 'convertParagraphExternal'); this.addInternalProcessor((/<\s*p\s*([^>]*)>(.*?)<\s*\/\s*p\s*>/gi), '\r\n$2\r\n'); this.addExternalProcessor((/\[(.*?)(>(.*?))?(>(.*?))?\]/i), 'convertLinkExternal'); this.addInternalProcessor((/<a\s*([^>]*)(class=\"wikiexternallink\"|class=\"wikilink\")\s*([^>]*)>(.*?)<\/a>/i), 'convertLinkInternal'); this.addExternalProcessor((/\{table\}([\s\S]+?)\{table\}/i), 'convertTableExternal'); this.addInternalProcessor((/<table\s*([^>]*)class=\"wiki-table\"\s*([^>]*)>([\s\S]+?)<\/table>/i), 'convertTableInternal'); this.addExternalProcessor((/\*(.+?)\*/gi), '<b class="bold">$1<\/b>'); this.addExternalProcessor((/__(.+?)__/gi), '<b class="bold">$1<\/b>'); this.addInternalProcessor((/<strong[^>]*>(.*?)<\/strong>/gi), '*$1*'); this.addExternalProcessor((/~~(.+?)~~/gi), '<i class="italic">$1<\/i>'); this.addInternalProcessor((/<em[^>]*>(.*?)<\/em>/gi), '~~$1~~'); this.addExternalProcessor((/--(.+?)--/gi), '<strike class="strike">$1<\/strike>'); this.addInternalProcessor((/<strike[^>]*>(.*?)<\/strike>/gi), '--$1--'); this.addInternalProcessor((/[#$][a-zA-Z0-9-_.]+\(([^&)]*&quot;[^)]*)+?\)/i), 'convertVelocityScriptsInternal'); this.addInternalProcessor((/&lt;%([\s\S]+?)%&gt;/i), 'convertGroovyScriptsInternal'); this.addExternalProcessor((/\{style:\s*(.*?)\}([\s\S]+?)\{style\}/i), 'convertStyleExternal'); this.addInternalProcessor((/<(font|span|div)\s*(.*?)>([\s\S]+?)<\/(font|span|div)>/i), 'convertStyleInternal'); //this.addInternalProcessor((/&nbsp;(?!\|)/gi), ""); this.setHtmlTagRemover('removeHtmlTags_Groovy'); this.setHtmlTagRemover('removeSpecialHtmlTags'); // Toolbar handlers this.addToolbarHandler('handleTextButtons'); this.addToolbarHandler('handleListButtons'); this.addToolbarHandler('handleIndentButtons'); this.addToolbarHandler('handleUndoButtons'); this.addToolbarHandler('handleTitlesList'); this.addToolbarHandler('handleLinkButtons'); this.addToolbarHandler('handleTableButtons'); // Add Comands and Fix Commands(workarounds) this.addCommand('Title', 'titleCommand'); this.addFixCommand('Title', 'fixTitle'); this.addFixCommand("InsertUnorderedList", 'fixInsertUnorderedList'); this.addFixCommand("Indent", 'fixInsertUnorderedList');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/3b81b86ea7162be330903a80ef7d9ba510c15046/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js
this.addInternalProcessor((/&nbsp;(?!\|)/gi), "");
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal'); this.addInternalProcessor((/\s*<(ul|ol)\s*([^>]*)>/i), 'convertListInternal'); this.addExternalProcessor((/^s*----(\-)*\s*$/gim), '<hr class="line" \/>'); this.addInternalProcessor((/<hr[^>]*>/gi), '----'); // Must remove the html tag format so it won't interfere with paragraph conversion this.addExternalProcessor((/<%([\s\S]+?)%>/ig), '&lt;%$1%&gt;'); this.addExternalProcessor((/((\s|\S)*)/i), 'convertParagraphExternal'); this.addInternalProcessor((/<\s*p\s*([^>]*)>(.*?)<\s*\/\s*p\s*>/gi), '\r\n$2\r\n'); this.addExternalProcessor((/\[(.*?)(>(.*?))?\]/i), 'convertLinkExternal'); this.addInternalProcessor((/<a\s*([^>]*)(class=\"wikiexternallink\"|class=\"wikilink\")\s*([^>]*)>(.*?)<\/a>/i), 'convertLinkInternal'); this.addExternalProcessor((/\{table\}([\s\S]+?)\{table\}/i), 'convertTableExternal'); this.addInternalProcessor((/<table\s*([^>]*)class=\"wiki-table\"\s*([^>]*)>([\s\S]+?)<\/table>/i), 'convertTableInternal'); this.addExternalProcessor((/\*(.+?)\*/gi), '<b class="bold">$1<\/b>'); this.addExternalProcessor((/__(.+?)__/gi), '<b class="bold">$1<\/b>'); this.addInternalProcessor((/<strong[^>]*>(.*?)<\/strong>/gi), '*$1*'); this.addExternalProcessor((/~~(.+?)~~/gi), '<i class="italic">$1<\/i>'); this.addInternalProcessor((/<em[^>]*>(.*?)<\/em>/gi), '~~$1~~'); this.addExternalProcessor((/--(.+?)--/gi), '<strike class="strike">$1<\/strike>'); this.addInternalProcessor((/<strike[^>]*>(.*?)<\/strike>/gi), '--$1--'); this.addInternalProcessor((/[#$][a-zA-Z0-9-_.]+\(([^&)]*&quot;[^)]*)+?\)/i), 'convertVelocityScriptsInternal'); this.addInternalProcessor((/&lt;%([\s\S]+?)%&gt;/i), 'convertGroovyScriptsInternal'); // Remove &nbsp;'s this.addInternalProcessor((/&nbsp;(?!\|)/gi), ""); var charStr = "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "?||||||" + "|||" + // Commercial symbols: "?||||?||" + "||" + //Other characters ">|<|&|\""; var characterEntityStr = "&Agrave;|&Aacute;|&Acirc;|&Atilde;|&Auml;|&Aring;|" + "&AElig;|&Ccedil;|&Egrave;|&Eacute;|&Ecirc;|&Euml;|" + "&Igrave;|&Iacute;|&Icirc;|&Iuml;|&Ntilde;|&Ograve;|" + "&Oacute;|&Ocirc;|&Otilde;|&Ouml;|&Oslash;|&Ugrave;|" + "&Uacute;|&Ucirc;|&Uuml;|&szlig;|&agrave;|&aacute;|" + "&acirc;|&atilde;|&auml;|&aring;|&aelig;|&ccedil;|" + "&egrave;|&eacute;|&ecirc;|&euml;|&igrave;|&iacute;|" + "&icirc;|&iuml;|&ntilde;|&ograve;|&oacute;|&ocirc;|" + "&oelig;|&otilde;|&ouml;|&oslash;|&ugrave;|&uacute;|" + "&ucirc;|&uuml;|&yuml;|" + // Commercial symbols: "&trade;|&copy;|&reg;|&cent;|&euro;|&yen;|" + "&pound;|&curren;|" + //Other characters "&gt;|&lt;|&amp;|&quot;" var characterEntitys = characterEntityStr.split("|"); var chars = charStr.split("|"); for (var i= 0; i< characterEntitys.length; i++) { var regExp = new RegExp(characterEntitys[i],'g'); this.addInternalProcessor((regExp), chars[i]); } this.setHtmlTagRemover('removeHtmlTags_Groovy'); this.setHtmlTagRemover('removeSpecialHtmlTags'); // Toolbar handlers this.addToolbarHandler('handleTextButtons'); this.addToolbarHandler('handleListButtons'); this.addToolbarHandler('handleIndentButtons'); this.addToolbarHandler('handleUndoButtons'); this.addToolbarHandler('handleTitlesList'); this.addToolbarHandler('handleLinkButtons'); this.addToolbarHandler('handleTableButtons'); // Add Comands and Fix Commands(workarounds) this.addCommand('Title', 'titleCommand'); this.addFixCommand('Title', 'fixTitle'); this.addFixCommand("InsertUnorderedList", 'fixInsertUnorderedList'); this.addFixCommand("Indent", 'fixInsertUnorderedList');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/baa0ff49e632f866bc8a0a1f4a567e8416b94608/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js
"?||||||" +
"||||||" +
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal'); this.addInternalProcessor((/\s*<(ul|ol)\s*([^>]*)>/i), 'convertListInternal'); this.addExternalProcessor((/^s*----(\-)*\s*$/gim), '<hr class="line" \/>'); this.addInternalProcessor((/<hr[^>]*>/gi), '----'); // Must remove the html tag format so it won't interfere with paragraph conversion this.addExternalProcessor((/<%([\s\S]+?)%>/ig), '&lt;%$1%&gt;'); this.addExternalProcessor((/((\s|\S)*)/i), 'convertParagraphExternal'); this.addInternalProcessor((/<\s*p\s*([^>]*)>(.*?)<\s*\/\s*p\s*>/gi), '\r\n$2\r\n'); this.addExternalProcessor((/\[(.*?)(>(.*?))?\]/i), 'convertLinkExternal'); this.addInternalProcessor((/<a\s*([^>]*)(class=\"wikiexternallink\"|class=\"wikilink\")\s*([^>]*)>(.*?)<\/a>/i), 'convertLinkInternal'); // Must convert external images inside table before convert the table this.addExternalProcessor((/{\s*image\s*:\s*(.*?)(\|(.*?))?(\|(.*?))?(\|(.*?))?}/i), 'convertImageExternal'); this.addExternalProcessor((/\{table\}([\s\S]+?)\{table\}/i), 'convertTableExternal'); this.addInternalProcessor((/<table\s*([^>]*)class=\"wiki-table\"\s*([^>]*)>([\s\S]+?)<\/table>/i), 'convertTableInternal'); this.addExternalProcessor((/\*(.+?)\*/gi), '<b class="bold">$1<\/b>'); this.addExternalProcessor((/__(.+?)__/gi), '<b class="bold">$1<\/b>'); this.addInternalProcessor((/<strong[^>]*>(.*?)<\/strong>/gi), '*$1*'); this.addExternalProcessor((/~~(.+?)~~/gi), '<i class="italic">$1<\/i>'); this.addInternalProcessor((/<em[^>]*>(.*?)<\/em>/gi), '~~$1~~'); this.addExternalProcessor((/--(.+?)--/gi), '<strike class="strike">$1<\/strike>'); this.addInternalProcessor((/<strike[^>]*>(.*?)<\/strike>/gi), '--$1--'); this.addInternalProcessor((/[#$][a-zA-Z0-9-_.]+\(([^&)]*&quot;[^)]*)+?\)/i), 'convertVelocityScriptsInternal'); this.addInternalProcessor((/&lt;%([\s\S]+?)%&gt;/i), 'convertGroovyScriptsInternal'); // Remove &nbsp;'s this.addInternalProcessor((/&nbsp;(?!\|)/gi), ""); var charStr = "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "?||||||" + "|||" + // Commercial symbols: "?||||?||" + "||" + //Other characters ">|<|&|\""; var characterEntityStr = "&Agrave;|&Aacute;|&Acirc;|&Atilde;|&Auml;|&Aring;|" + "&AElig;|&Ccedil;|&Egrave;|&Eacute;|&Ecirc;|&Euml;|" + "&Igrave;|&Iacute;|&Icirc;|&Iuml;|&Ntilde;|&Ograve;|" + "&Oacute;|&Ocirc;|&Otilde;|&Ouml;|&Oslash;|&Ugrave;|" + "&Uacute;|&Ucirc;|&Uuml;|&szlig;|&agrave;|&aacute;|" + "&acirc;|&atilde;|&auml;|&aring;|&aelig;|&ccedil;|" + "&egrave;|&eacute;|&ecirc;|&euml;|&igrave;|&iacute;|" + "&icirc;|&iuml;|&ntilde;|&ograve;|&oacute;|&ocirc;|" + "&oelig;|&otilde;|&ouml;|&oslash;|&ugrave;|&uacute;|" + "&ucirc;|&uuml;|&yuml;|" + // Commercial symbols: "&trade;|&copy;|&reg;|&cent;|&euro;|&yen;|" + "&pound;|&curren;|" + //Other characters "&gt;|&lt;|&amp;|&quot;" var characterEntitys = characterEntityStr.split("|"); var chars = charStr.split("|"); for (var i= 0; i< characterEntitys.length; i++) { var regExp = new RegExp(characterEntitys[i],'g'); this.addInternalProcessor((regExp), chars[i]); } this.setHtmlTagRemover('removeHtmlTags_Groovy'); this.setHtmlTagRemover('removeSpecialHtmlTags'); // Toolbar handlers this.addToolbarHandler('handleTextButtons'); this.addToolbarHandler('handleListButtons'); this.addToolbarHandler('handleIndentButtons'); this.addToolbarHandler('handleUndoButtons'); this.addToolbarHandler('handleTitlesList'); this.addToolbarHandler('handleLinkButtons'); this.addToolbarHandler('handleTableButtons'); // Add Comands and Fix Commands(workarounds) this.addCommand('Title', 'titleCommand'); this.addFixCommand('Title', 'fixTitle'); this.addFixCommand("InsertUnorderedList", 'fixInsertUnorderedList'); this.addFixCommand("Indent", 'fixInsertUnorderedList');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/70a70b7f03b726caafdb9c443af79e49bb8ebd94/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor/plugins/core.js
"?||||?||" +
"||||||" +
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal'); this.addInternalProcessor((/\s*<(ul|ol)\s*([^>]*)>/i), 'convertListInternal'); this.addExternalProcessor((/^s*----(\-)*\s*$/gim), '<hr class="line" \/>'); this.addInternalProcessor((/<hr[^>]*>/gi), '----'); // Must remove the html tag format so it won't interfere with paragraph conversion this.addExternalProcessor((/<%([\s\S]+?)%>/ig), '&lt;%$1%&gt;'); this.addExternalProcessor((/((\s|\S)*)/i), 'convertParagraphExternal'); this.addInternalProcessor((/<\s*p\s*([^>]*)>(.*?)<\s*\/\s*p\s*>/gi), '\r\n$2\r\n'); this.addExternalProcessor((/\[(.*?)(>(.*?))?\]/i), 'convertLinkExternal'); this.addInternalProcessor((/<a\s*([^>]*)(class=\"wikiexternallink\"|class=\"wikilink\")\s*([^>]*)>(.*?)<\/a>/i), 'convertLinkInternal'); // Must convert external images inside table before convert the table this.addExternalProcessor((/{\s*image\s*:\s*(.*?)(\|(.*?))?(\|(.*?))?(\|(.*?))?}/i), 'convertImageExternal'); this.addExternalProcessor((/\{table\}([\s\S]+?)\{table\}/i), 'convertTableExternal'); this.addInternalProcessor((/<table\s*([^>]*)class=\"wiki-table\"\s*([^>]*)>([\s\S]+?)<\/table>/i), 'convertTableInternal'); this.addExternalProcessor((/\*(.+?)\*/gi), '<b class="bold">$1<\/b>'); this.addExternalProcessor((/__(.+?)__/gi), '<b class="bold">$1<\/b>'); this.addInternalProcessor((/<strong[^>]*>(.*?)<\/strong>/gi), '*$1*'); this.addExternalProcessor((/~~(.+?)~~/gi), '<i class="italic">$1<\/i>'); this.addInternalProcessor((/<em[^>]*>(.*?)<\/em>/gi), '~~$1~~'); this.addExternalProcessor((/--(.+?)--/gi), '<strike class="strike">$1<\/strike>'); this.addInternalProcessor((/<strike[^>]*>(.*?)<\/strike>/gi), '--$1--'); this.addInternalProcessor((/[#$][a-zA-Z0-9-_.]+\(([^&)]*&quot;[^)]*)+?\)/i), 'convertVelocityScriptsInternal'); this.addInternalProcessor((/&lt;%([\s\S]+?)%&gt;/i), 'convertGroovyScriptsInternal'); // Remove &nbsp;'s this.addInternalProcessor((/&nbsp;(?!\|)/gi), ""); var charStr = "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "||||||" + "?||||||" + "|||" + // Commercial symbols: "?||||?||" + "||" + //Other characters ">|<|&|\""; var characterEntityStr = "&Agrave;|&Aacute;|&Acirc;|&Atilde;|&Auml;|&Aring;|" + "&AElig;|&Ccedil;|&Egrave;|&Eacute;|&Ecirc;|&Euml;|" + "&Igrave;|&Iacute;|&Icirc;|&Iuml;|&Ntilde;|&Ograve;|" + "&Oacute;|&Ocirc;|&Otilde;|&Ouml;|&Oslash;|&Ugrave;|" + "&Uacute;|&Ucirc;|&Uuml;|&szlig;|&agrave;|&aacute;|" + "&acirc;|&atilde;|&auml;|&aring;|&aelig;|&ccedil;|" + "&egrave;|&eacute;|&ecirc;|&euml;|&igrave;|&iacute;|" + "&icirc;|&iuml;|&ntilde;|&ograve;|&oacute;|&ocirc;|" + "&oelig;|&otilde;|&ouml;|&oslash;|&ugrave;|&uacute;|" + "&ucirc;|&uuml;|&yuml;|" + // Commercial symbols: "&trade;|&copy;|&reg;|&cent;|&euro;|&yen;|" + "&pound;|&curren;|" + //Other characters "&gt;|&lt;|&amp;|&quot;" var characterEntitys = characterEntityStr.split("|"); var chars = charStr.split("|"); for (var i= 0; i< characterEntitys.length; i++) { var regExp = new RegExp(characterEntitys[i],'g'); this.addInternalProcessor((regExp), chars[i]); } this.setHtmlTagRemover('removeHtmlTags_Groovy'); this.setHtmlTagRemover('removeSpecialHtmlTags'); // Toolbar handlers this.addToolbarHandler('handleTextButtons'); this.addToolbarHandler('handleListButtons'); this.addToolbarHandler('handleIndentButtons'); this.addToolbarHandler('handleUndoButtons'); this.addToolbarHandler('handleTitlesList'); this.addToolbarHandler('handleLinkButtons'); this.addToolbarHandler('handleTableButtons'); // Add Comands and Fix Commands(workarounds) this.addCommand('Title', 'titleCommand'); this.addFixCommand('Title', 'fixTitle'); this.addFixCommand("InsertUnorderedList", 'fixInsertUnorderedList'); this.addFixCommand("Indent", 'fixInsertUnorderedList');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/70a70b7f03b726caafdb9c443af79e49bb8ebd94/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor/plugins/core.js
this.addExternalProcessor((/\{style:\s*(.*?)\}([\s\S]+?)\{style\}/i), 'convertStyleExternal'); this.addInternalProcessor((/<(font|span|div)\s*(.*?)>([\s\S]+?)<\/(font|span|div)>/i), 'convertStyleInternal');
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addInternalProcessor((/<p[^>]*>&nbsp;<\/p>/gi), ""); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal'); this.addInternalProcessor((/\s*<(ul|ol)\s*([^>]*)>/i), 'convertListInternal'); this.addExternalProcessor((/^s*----(\-)*\s*$/gim), '<hr class="line" \/>'); this.addInternalProcessor((/<hr[^>]*>/gi), '----'); // Must remove the html tag format so it won't interfere with paragraph conversion this.addExternalProcessor((/<%([\s\S]+?)%>/ig), '&lt;%$1%&gt;'); this.addExternalProcessor((/\{style:\s*(.*?)\}([\s\S]+?)\{style\}/i), 'convertStyleExternal'); this.addInternalProcessor((/<(font|span|div)\s*(.*?)>([\s\S]+?)<\/(font|span|div)>/i), 'convertStyleInternal'); this.addExternalProcessor((/((\s|\S)*)/i), 'convertParagraphExternal'); this.addInternalProcessor((/<\s*p\s*([^>]*)>(.*?)<\s*\/\s*p\s*>/gi), '\r\n$2\r\n'); this.addExternalProcessor((/\[(.*?)(>(.*?))?(>(.*?))?\]/i), 'convertLinkExternal'); this.addInternalProcessor((/<a\s*([^>]*)(class=\"wikiexternallink\"|class=\"wikilink\")\s*([^>]*)>(.*?)<\/a>/i), 'convertLinkInternal'); this.addExternalProcessor((/\{table\}([\s\S]+?)\{table\}/i), 'convertTableExternal'); this.addInternalProcessor((/<table\s*([^>]*)class=\"wiki-table\"\s*([^>]*)>([\s\S]+?)<\/table>/i), 'convertTableInternal'); this.addExternalProcessor((/\*(.+?)\*/gi), '<b class="bold">$1<\/b>'); this.addExternalProcessor((/__(.+?)__/gi), '<b class="bold">$1<\/b>'); this.addInternalProcessor((/<strong[^>]*>(.*?)<\/strong>/gi), '*$1*'); this.addExternalProcessor((/~~(.+?)~~/gi), '<i class="italic">$1<\/i>'); this.addInternalProcessor((/<em[^>]*>(.*?)<\/em>/gi), '~~$1~~'); this.addExternalProcessor((/--(.+?)--/gi), '<strike class="strike">$1<\/strike>'); this.addInternalProcessor((/<strike[^>]*>(.*?)<\/strike>/gi), '--$1--'); this.addInternalProcessor((/[#$][a-zA-Z0-9-_.]+\(([^&)]*&quot;[^)]*)+?\)/i), 'convertVelocityScriptsInternal'); this.addInternalProcessor((/&lt;%([\s\S]+?)%&gt;/i), 'convertGroovyScriptsInternal'); //this.addInternalProcessor((/&nbsp;(?!\|)/gi), ""); this.setHtmlTagRemover('removeHtmlTags_Groovy'); this.setHtmlTagRemover('removeSpecialHtmlTags'); // Toolbar handlers this.addToolbarHandler('handleTextButtons'); this.addToolbarHandler('handleListButtons'); this.addToolbarHandler('handleIndentButtons'); this.addToolbarHandler('handleUndoButtons'); this.addToolbarHandler('handleTitlesList'); this.addToolbarHandler('handleLinkButtons'); this.addToolbarHandler('handleTableButtons'); // Add Comands and Fix Commands(workarounds) this.addCommand('Title', 'titleCommand'); this.addFixCommand('Title', 'fixTitle'); this.addFixCommand("InsertUnorderedList", 'fixInsertUnorderedList'); this.addFixCommand("Indent", 'fixInsertUnorderedList');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/f29deeb74124823188a469c79e8bffa00b36f465/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addInternalProcessor((/<p[^>]*>&nbsp;<\/p>/gi), ""); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal'); this.addInternalProcessor((/\s*<(ul|ol)\s*([^>]*)>/i), 'convertListInternal'); this.addExternalProcessor((/^s*----(\-)*\s*$/gim), '<hr class="line" \/>'); this.addInternalProcessor((/<hr[^>]*>/gi), '----'); // Must remove the html tag format so it won't interfere with paragraph conversion this.addExternalProcessor((/<%([\s\S]+?)%>/ig), '&lt;%$1%&gt;'); this.addExternalProcessor((/\{style:\s*(.*?)\}([\s\S]+?)\{style\}/i), 'convertStyleExternal'); this.addInternalProcessor((/<(font|span|div)\s*(.*?)>([\s\S]+?)<\/(font|span|div)>/i), 'convertStyleInternal'); this.addExternalProcessor((/((\s|\S)*)/i), 'convertParagraphExternal'); this.addInternalProcessor((/<\s*p\s*([^>]*)>(.*?)<\s*\/\s*p\s*>/gi), '\r\n$2\r\n'); this.addExternalProcessor((/\[(.*?)(>(.*?))?(>(.*?))?\]/i), 'convertLinkExternal'); this.addInternalProcessor((/<a\s*([^>]*)(class=\"wikiexternallink\"|class=\"wikilink\")\s*([^>]*)>(.*?)<\/a>/i), 'convertLinkInternal'); this.addExternalProcessor((/\{table\}([\s\S]+?)\{table\}/i), 'convertTableExternal'); this.addInternalProcessor((/<table\s*([^>]*)class=\"wiki-table\"\s*([^>]*)>([\s\S]+?)<\/table>/i), 'convertTableInternal'); this.addExternalProcessor((/\*(.+?)\*/gi), '<b class="bold">$1<\/b>'); this.addExternalProcessor((/__(.+?)__/gi), '<b class="bold">$1<\/b>'); this.addInternalProcessor((/<strong[^>]*>(.*?)<\/strong>/gi), '*$1*'); this.addExternalProcessor((/~~(.+?)~~/gi), '<i class="italic">$1<\/i>'); this.addInternalProcessor((/<em[^>]*>(.*?)<\/em>/gi), '~~$1~~'); this.addExternalProcessor((/--(.+?)--/gi), '<strike class="strike">$1<\/strike>'); this.addInternalProcessor((/<strike[^>]*>(.*?)<\/strike>/gi), '--$1--'); this.addInternalProcessor((/[#$][a-zA-Z0-9-_.]+\(([^&)]*&quot;[^)]*)+?\)/i), 'convertVelocityScriptsInternal'); this.addInternalProcessor((/&lt;%([\s\S]+?)%&gt;/i), 'convertGroovyScriptsInternal'); //this.addInternalProcessor((/&nbsp;(?!\|)/gi), ""); this.setHtmlTagRemover('removeHtmlTags_Groovy'); this.setHtmlTagRemover('removeSpecialHtmlTags'); // Toolbar handlers this.addToolbarHandler('handleTextButtons'); this.addToolbarHandler('handleListButtons'); this.addToolbarHandler('handleIndentButtons'); this.addToolbarHandler('handleUndoButtons'); this.addToolbarHandler('handleTitlesList'); this.addToolbarHandler('handleLinkButtons'); this.addToolbarHandler('handleTableButtons'); // Add Comands and Fix Commands(workarounds) this.addCommand('Title', 'titleCommand'); this.addFixCommand('Title', 'fixTitle'); this.addFixCommand("InsertUnorderedList", 'fixInsertUnorderedList'); this.addFixCommand("Indent", 'fixInsertUnorderedList');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/f29deeb74124823188a469c79e8bffa00b36f465/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addInternalProcessor((/<p[^>]*>&nbsp;<\/p>/gi), ""); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal'); this.addInternalProcessor((/\s*<(ul|ol)\s*([^>]*)>/i), 'convertListInternal'); this.addExternalProcessor((/^s*----(\-)*\s*$/gim), '<hr class="line" \/>'); this.addInternalProcessor((/<hr[^>]*>/gi), '----'); // Must remove the html tag format so it won't interfere with paragraph conversion this.addExternalProcessor((/<%([\s\S]+?)%>/ig), '&lt;%$1%&gt;'); this.addExternalProcessor((/\{style:\s*(.*?)\}([\s\S]+?)\{style\}/i), 'convertStyleExternal'); this.addInternalProcessor((/<(font|span|div)\s*(.*?)>([\s\S]+?)<\/(font|span|div)>/i), 'convertStyleInternal'); this.addExternalProcessor((/((\s|\S)*)/i), 'convertParagraphExternal'); this.addInternalProcessor((/<\s*p\s*([^>]*)>(.*?)<\s*\/\s*p\s*>/gi), '\r\n$2\r\n'); this.addExternalProcessor((/\[(.*?)(>(.*?))?(>(.*?))?\]/i), 'convertLinkExternal'); this.addInternalProcessor((/<a\s*([^>]*)(class=\"wikiexternallink\"|class=\"wikilink\")\s*([^>]*)>(.*?)<\/a>/i), 'convertLinkInternal'); this.addExternalProcessor((/\{table\}([\s\S]+?)\{table\}/i), 'convertTableExternal'); this.addInternalProcessor((/<table\s*([^>]*)class=\"wiki-table\"\s*([^>]*)>([\s\S]+?)<\/table>/i), 'convertTableInternal'); this.addExternalProcessor((/\*(.+?)\*/gi), '<b class="bold">$1<\/b>'); this.addExternalProcessor((/__(.+?)__/gi), '<b class="bold">$1<\/b>'); this.addInternalProcessor((/<strong[^>]*>(.*?)<\/strong>/gi), '*$1*'); this.addExternalProcessor((/~~(.+?)~~/gi), '<i class="italic">$1<\/i>'); this.addInternalProcessor((/<em[^>]*>(.*?)<\/em>/gi), '~~$1~~'); this.addExternalProcessor((/--(.+?)--/gi), '<strike class="strike">$1<\/strike>'); this.addInternalProcessor((/<strike[^>]*>(.*?)<\/strike>/gi), '--$1--'); this.addInternalProcessor((/[#$][a-zA-Z0-9-_.]+\(([^&)]*&quot;[^)]*)+?\)/i), 'convertVelocityScriptsInternal'); this.addInternalProcessor((/&lt;%([\s\S]+?)%&gt;/i), 'convertGroovyScriptsInternal'); //this.addInternalProcessor((/&nbsp;(?!\|)/gi), ""); this.setHtmlTagRemover('removeHtmlTags_Groovy'); this.setHtmlTagRemover('removeSpecialHtmlTags'); // Toolbar handlers this.addToolbarHandler('handleTextButtons'); this.addToolbarHandler('handleListButtons'); this.addToolbarHandler('handleIndentButtons'); this.addToolbarHandler('handleUndoButtons'); this.addToolbarHandler('handleTitlesList'); this.addToolbarHandler('handleLinkButtons'); this.addToolbarHandler('handleTableButtons'); // Add Comands and Fix Commands(workarounds) this.addCommand('Title', 'titleCommand'); this.addFixCommand('Title', 'fixTitle'); this.addFixCommand("InsertUnorderedList", 'fixInsertUnorderedList'); this.addFixCommand("Indent", 'fixInsertUnorderedList');}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/f29deeb74124823188a469c79e8bffa00b36f465/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js
if(Draggable._revertCache[this.element]) { Draggable._revertCache[this.element].cancel(); Draggable._revertCache[this.element] = null; }
initDrag: function(event) { if(typeof Draggable._dragging[this.element] != 'undefined' && Draggable._dragging[this.element]) return; if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); if(src.tagName && ( src.tagName=='INPUT' || src.tagName=='SELECT' || src.tagName=='OPTION' || src.tagName=='BUTTON' || src.tagName=='TEXTAREA')) return; if(Draggable._revertCache[this.element]) { Draggable._revertCache[this.element].cancel(); Draggable._revertCache[this.element] = null; } var pointer = [Event.pointerX(event), Event.pointerY(event)]; var pos = Position.cumulativeOffset(this.element); this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]) }); Draggables.activate(this); Event.stop(event); } },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/4d928369043aea712d094cb4d97db2674c85c8ac/dragdrop.js/buggy/src/dragdrop.js
if(this.element._revert) { this.element._revert.cancel(); this.element._revert = null;
if(Draggable._revertCache[this.element]) { Draggable._revertCache[this.element].cancel(); Draggable._revertCache[this.element] = null;
initDrag: function(event) { if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); if(src.tagName && ( src.tagName=='INPUT' || src.tagName=='SELECT' || src.tagName=='OPTION' || src.tagName=='BUTTON' || src.tagName=='TEXTAREA')) return; if(this.element._revert) { this.element._revert.cancel(); this.element._revert = null; } var pointer = [Event.pointerX(event), Event.pointerY(event)]; var pos = Position.cumulativeOffset(this.element); this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]) }); Draggables.activate(this); Event.stop(event); } },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/bd1ac4786a539a5d509de64f60a003cc15cce8c9/dragdrop.js/clean/src/dragdrop.js
if(typeof Draggable._dragging[this.element] != undefined && Draggable._dragging[this.element]) return;
initDrag: function(event) { if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); if(src.tagName && ( src.tagName=='INPUT' || src.tagName=='SELECT' || src.tagName=='OPTION' || src.tagName=='BUTTON' || src.tagName=='TEXTAREA')) return; if(Draggable._revertCache[this.element]) { Draggable._revertCache[this.element].cancel(); Draggable._revertCache[this.element] = null; } var pointer = [Event.pointerX(event), Event.pointerY(event)]; var pos = Position.cumulativeOffset(this.element); this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]) }); Draggables.activate(this); Event.stop(event); } },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/c31fdc38f767373d22b3dd5a5072aa4962ca5b65/dragdrop.js/clean/src/dragdrop.js
if(this.element._revert) { this.element._revert.cancel(); this.element._revert = null; }
initDrag: function(event) { if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); if(src.tagName && ( src.tagName=='INPUT' || src.tagName=='SELECT' || src.tagName=='BUTTON' || src.tagName=='TEXTAREA')) return; var pointer = [Event.pointerX(event), Event.pointerY(event)]; var pos = Position.cumulativeOffset(this.element); this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]) }); Draggables.activate(this); Event.stop(event); } },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/08ca862091194b85b405f2c8d24c8c00908204ef/dragdrop.js/buggy/src/dragdrop.js
if(typeof Draggable._dragging[this.element] != undefined &&
if(typeof Draggable._dragging[this.element] != 'undefined' &&
initDrag: function(event) { if(typeof Draggable._dragging[this.element] != undefined && Draggable._dragging[this.element]) return; if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); if(src.tagName && ( src.tagName=='INPUT' || src.tagName=='SELECT' || src.tagName=='OPTION' || src.tagName=='BUTTON' || src.tagName=='TEXTAREA')) return; if(Draggable._revertCache[this.element]) { Draggable._revertCache[this.element].cancel(); Draggable._revertCache[this.element] = null; } var pointer = [Event.pointerX(event), Event.pointerY(event)]; var pos = Position.cumulativeOffset(this.element); this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]) }); Draggables.activate(this); Event.stop(event); } },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/4d67eb3655b3a4b840f279da33e69e2e7ef1c818/dragdrop.js/clean/src/dragdrop.js
src.tagName=='OPTION' ||
initDrag: function(event) { if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); if(src.tagName && ( src.tagName=='INPUT' || src.tagName=='SELECT' || src.tagName=='BUTTON' || src.tagName=='TEXTAREA')) return; if(this.element._revert) { this.element._revert.cancel(); this.element._revert = null; } var pointer = [Event.pointerX(event), Event.pointerY(event)]; var pos = Position.cumulativeOffset(this.element); this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]) }); Draggables.activate(this); Event.stop(event); } },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/5635b6fd49d757b46bbd96217ec3d73e21d0ddc8/dragdrop.js/buggy/src/dragdrop.js
if (!base) { base = "gm_script"; }
this.initFilename = function(script) { var index = {}; var base = script.name.replace(/[^A-Z0-9_]/gi, "").toLowerCase(); // 24 is a totally arbitrary max length if (base.length > 24) { base = base.substring(0, 24); } for (var i = 0; i < this.scripts.length; i++) { index[this.scripts[i].filename] = this.scripts[i]; } if (!index[base + ".user.js"]) { script.filename = base + ".user.js"; return; } for (var count = 1; count < Number.MAX_VALUE; count++) { if (!index[base + count + ".user.js"]) { script.filename = base + count + ".user.js"; return; } } throw new Error("doooooooode. get some different user script or something."); }
2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/19f3148325aee62fc8ed969890b86473177554ae/config.js/clean/src/content/config.js
testLoop.waitingForNext = function() { document.getElementById('continueTest').disabled = false; };
function initialiseTestLoop() { testLoop = new TestLoop(commandFactory); testLoop.getCommandInterval = function() { return runInterval; }; testLoop.firstCommand = nextCommand; testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; testLoop.commandError = commandError; testLoop.testComplete = testComplete; return testLoop;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/2fcc52b4c36971bc80c8c53c7e2a4289ca8af0c0/selenium-fitrunner.js/clean/code/javascript/selenium-fitrunner.js
testLoop.waitingForNext = function() { document.getElementById('continueTest').disabled = false; };
function initialiseTestLoop() { testLoop = new TestLoop(commandFactory); testLoop.getCommandInterval = function() { return runInterval; }; testLoop.firstCommand = nextCommand; testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; testLoop.commandError = commandError; testLoop.testComplete = testComplete; return testLoop;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ed2c8a04823b08b4112b9e08d6cbf9962ca6c66f/selenium-fitrunner.js/buggy/code/javascript/selenium-fitrunner.js
OpenLayers.Layer.prototype.initialize.apply(this, arguments);
OpenLayers.Layer.EventPane.prototype.initialize.apply(this, arguments);
initialize: function(name, options) { OpenLayers.Layer.prototype.initialize.apply(this, arguments); if (this.maxExtent == null) { this.maxExtent = new OpenLayers.Bounds(-180, -90, 180, 90); } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/8f33a633aa6d5eb5b7fd38f5342b2d65e1bafc3f/Google.js/clean/lib/OpenLayers/Layer/Google.js
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));
initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array;
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); },
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/buggy/railties/html/javascripts/controls.js
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));
initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array;
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/clean/railties/html/javascripts/controls.js
if (this.maxResolution == null || this.resolution == "auto") {
if (this.maxResolution == null || this.maxResolution == "auto") {
initialize: function (div, options) { Object.extend(this, options); this.div = div = $(div); // the viewPortDiv is the outermost div we modify var id = div.id + "_OpenLayers_ViewPort"; this.viewPortDiv = OpenLayers.Util.createDiv(id, null, null, null, "relative", null, "hidden"); this.viewPortDiv.style.width = "100%"; this.viewPortDiv.style.height = "100%"; this.div.appendChild(this.viewPortDiv); // the layerContainerDiv is the one that holds all the layers id = div.id + "_OpenLayers_Container"; this.layerContainerDiv = OpenLayers.Util.createDiv(id); this.viewPortDiv.appendChild(this.layerContainerDiv); this.events = new OpenLayers.Events(this, div, this.EVENT_TYPES); this.updateSize(); // make the entire maxExtent fix in zoom level 0 by default if (this.maxResolution == null || this.resolution == "auto") { this.maxResolution = Math.max( this.maxExtent.getWidth() / this.size.w, this.maxExtent.getHeight() / this.size.h ); } // update the internal size register whenever the div is resized this.events.register("resize", this, this.updateSize); this.layers = []; if (!this.controls) { this.controls = []; this.addControl(new OpenLayers.Control.MouseDefaults()); this.addControl(new OpenLayers.Control.PanZoom()); } this.popups = new Array(); // always call map.destroy() Event.observe(window, 'unload', this.destroy.bindAsEventListener(this)); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/351ebb0d520b31f7f4047796e8df79ca45f48eff/Map.js/buggy/lib/OpenLayers/Map.js
this.name = name; if (this.div == null) { this.div = OpenLayers.Util.createDiv(); this.div.style.width = "100%"; this.div.style.height = "100%";
if (arguments.length > 0) { this.name = name; if (this.div == null) { this.div = OpenLayers.Util.createDiv(); this.div.style.width = "100%"; this.div.style.height = "100%"; }
initialize: function(name) { this.name = name; if (this.div == null) { this.div = OpenLayers.Util.createDiv(); this.div.style.width = "100%"; this.div.style.height = "100%"; } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c59e66f1671af9ba4b8ddad52f80e52f5dfe6ac8/Layer.js/clean/lib/OpenLayers/Layer.js
this.controlDiv = OpenLayers.Util.createDiv( div.id + "_OpenLayers_Control" ); this.controlDiv.style.width="100%"; this.controlDiv.style.height="100%"; this.controlDiv.style.zIndex = this.Z_INDEX_BASE["Control"]; this.viewPortDiv.appendChild(this.controlDiv);
initialize: function (div, options) { Object.extend(this, options); this.div = div = $(div); // the viewPortDiv is the outermost div we modify this.viewPortDiv = OpenLayers.Util.createDiv( div.id + "_OpenLayers_ViewPort" ); this.viewPortDiv.style.width = "100%"; this.viewPortDiv.style.height = "100%"; this.viewPortDiv.style.overflow = "hidden"; this.viewPortDiv.style.position = "relative"; this.div.appendChild(this.viewPortDiv); // the controlDiv is the div that all the controls sit on this.controlDiv = OpenLayers.Util.createDiv( div.id + "_OpenLayers_Control" ); this.controlDiv.style.width="100%"; this.controlDiv.style.height="100%"; this.controlDiv.style.zIndex = this.Z_INDEX_BASE["Control"]; this.viewPortDiv.appendChild(this.controlDiv); // the layerContainerDiv is the one that holds all the layers this.layerContainerDiv = OpenLayers.Util.createDiv( div.id + "_OpenLayers_Container" ); this.viewPortDiv.appendChild(this.layerContainerDiv); this.events = new OpenLayers.Events(this, div, this.EVENT_TYPES); this.layers = []; this.controls = []; this.addControl( new OpenLayers.Control.PanZoom() ); this.addControl( new OpenLayers.Control.MouseDefaults() ); // always call map.destroy() Event.observe(window, 'unload', this.destroy.bindAsEventListener(this)); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/6c83a735197589956a69fda786203b440f7daa12/Map.js/clean/lib/OpenLayers/Map.js
initialize: function(element, frequency, callback) { this.frequency = frequency; this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); this.registerCallback();
initialize: function(element) { this.element = $(element); this.start = 153; this.finish = 255; this.current = this.start; this.fade();
initialize: function(element, frequency, callback) { this.frequency = frequency; this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); this.registerCallback(); },
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/ce59719a389fe9057004f655640d3cfff0df7ab8/prototype.js/buggy/public/javascripts/prototype.js
markers = new Array();
this.markers = new Array();
initialize: function(name) { OpenLayers.Layer.prototype.initialize.apply(this, arguments); markers = new Array(); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/a360238d813c48d5d19e13f37fb40e645dc987d0/Marker.js/buggy/lib/OpenLayers/Layer/Marker.js
this.obj = {}; for (var property in obj) { this.obj[property] = obj[property]; this.length++; }
this.extend(obj);
initialize: function(obj) { this.obj = {}; for (var property in obj) { this.obj[property] = obj[property]; this.length++; } },
6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/2f00bcee8e2a9577e18cd8c5c5c7c594651a3811/Hash.js/clean/Addons/Hash.js
initialize: function(element, callback) { this.element = $(element); this.callback = callback;
initialize: function() { this.element = $(arguments[0]); this.callback = arguments[1]; this.trigger = arguments[2];
initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); },
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/clean/railties/html/javascripts/prototype.js
this.registerCallback(this.element);
this.registerCallback(this.element, this.trigger);
initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); },
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/clean/railties/html/javascripts/prototype.js
Event.observe(document, "click", this.onBlur.bindAsEventListener(this));
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); },
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
this.featureClass = featureClass;
if (featureClass != null) this.featureClass = featureClass;
initialize: function(name, url, params, featureClass) { this.featureClass = featureClass; var newArguments = new Array(); if (arguments.length > 0) { //uppercase params params = OpenLayers.Util.upperCaseObject(params); newArguments.push(name, url, params); } OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments); OpenLayers.Layer.Markers.prototype.initialize.apply(this, newArguments); if (arguments.length > 0) { OpenLayers.Util.applyDefaults( this.params, OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS) ); } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c92cd6d88a59f79879c73965c26269e13afa25e3/WFS.js/buggy/lib/OpenLayers/Layer/WFS.js
loadingClassName: 'inplaceeditor-loading',
initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } },
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/railties/html/javascripts/controls.js
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));
initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array;
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
OpenLayers.Event.observe(window, "DOMMouseScroll", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(window, "mousewheel", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(document, "mousewheel", this.onWheelEvent.bindAsEventListener(this));
initialize: function() { OpenLayers.Control.prototype.initialize.apply(this, arguments); //register mousewheel events specifically on the window and document OpenLayers.Event.observe(window, "DOMMouseScroll", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(window, "mousewheel", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(document, "mousewheel", this.onWheelEvent.bindAsEventListener(this)); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/9c6817f5d6e4b39058416183c6aaa041a68dcace/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
Object.extend(this.params, this.DEFAULT_PARAMS);
OpenLayers.Util.applyDefaults( this.params, this.DEFAULT_PARAMS );
initialize: function(name, url, params) { OpenLayers.Layer.Grid.prototype.initialize.apply(this, arguments); Object.extend(this.params, this.DEFAULT_PARAMS); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/4d0179df503768763ea059f8b12bb532227dfd89/WMS.js/buggy/lib/OpenLayers/Layer/WMS.js
this.handle.addEvent('mousedown', this.start.bindWithEvent(this));
this.bound = {'start': this.start.bindWithEvent(this)}; this.handle.addEvent('mousedown', this.bound.start);
initialize: function(el, options){ this.setOptions(this.getOptions(), options); this.element = $(el); this.handle = $(this.options.handle) || this.element; this.mouse = {'start': {}, 'now': {}, 'pos': {}}; this.value = {'start': {}, 'now': {}}; this.handle.addEvent('mousedown', this.start.bindWithEvent(this)); if (this.options.initialize) this.options.initialize.call(this); },
5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/8ac103886cf6d33ed267fc2e146d71159138c0d8/Drag.Base.js/clean/Drag/Drag.Base.js
initialize: function (object, element, eventTypes) {
initialize: function (object, element, eventTypes, fallThrough) {
initialize: function (object, element, eventTypes) { this.object = object; this.element = element; this.eventTypes = eventTypes; this.listeners = new Object(); // if eventTypes is specified, create a listeners list for each // custom application event. if (this.eventTypes != null) for (var i = 0; i < this.eventTypes.length; i++) this.listeners[ this.eventTypes[i] ] = new Array(); // if a dom element is specified, add a listeners list // for browser events on the element and register them if (this.element != null) this.attachToElement(element); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/88ff0bc9afe1f5e8246e96516ef7db34199d94bf/Events.js/buggy/lib/OpenLayers/Events.js
this.fallThrough = fallThrough;
initialize: function (object, element, eventTypes) { this.object = object; this.element = element; this.eventTypes = eventTypes; this.listeners = new Object(); // if eventTypes is specified, create a listeners list for each // custom application event. if (this.eventTypes != null) for (var i = 0; i < this.eventTypes.length; i++) this.listeners[ this.eventTypes[i] ] = new Array(); // if a dom element is specified, add a listeners list // for browser events on the element and register them if (this.element != null) this.attachToElement(element); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/88ff0bc9afe1f5e8246e96516ef7db34199d94bf/Events.js/buggy/lib/OpenLayers/Events.js
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } );
new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } );
initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); },
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/buggy/railties/html/javascripts/prototype.js
loadingClassName: 'inplaceeditor-loading',
initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js
initialize: function(element, callback) { this.element = $(element); this.callback = callback;
initialize: function() { this.element = $(arguments[0]); this.callback = arguments[1]; this.trigger = arguments[2];
initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js
this.registerCallback(this.element);
this.registerCallback(this.element, this.trigger);
initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js
loadingClassName: 'inplaceeditor-loading',
initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } },
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js
loadingClassName: 'inplaceeditor-loading',
initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } },
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } );
new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } );
initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); },
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } );
new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } );
initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); },
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));
initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array;
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); },
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
Event.observe(document, "click", this.onBlur.bindAsEventListener(this));
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
OpenLayers.Tile.prototype.initialize.apply(this, arguments);
OpenLayers.Tile.prototype.initialize.apply(this, newArguments);
initialize: function(layer, position, bounds, urls, size) { var newArguments = [layer, position, bounds, null, size]; OpenLayers.Tile.prototype.initialize.apply(this, arguments); this.urls = urls; this.features = new Array(); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/a046bb2b3198111d4f10d490b054d5cece535ac1/WFS.js/buggy/lib/OpenLayers/Tile/WFS.js
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } );
new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } );
initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); },
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/clean/railties/html/javascripts/prototype.js
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } );
new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } );
initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); },
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/buggy/railties/html/javascripts/prototype.js
loadingClassName: 'inplaceeditor-loading',
initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } },
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js
initialize: function (object, element, eventTypes) {
initialize: function (object, element, eventTypes, fallThrough) {
initialize: function (object, element, eventTypes) { this.object = object; this.element = element; this.eventTypes = eventTypes; this.listeners = new Object(); // if eventTypes is specified, create a listeners list for each // custom application event. if (this.eventTypes != null) for (var i = 0; i < this.eventTypes.length; i++) this.listeners[ this.eventTypes[i] ] = new Array(); // if a dom element is specified, add a listeners list // for browser events on the element and register them if (this.element != null) this.attachToElement(element); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/88ff0bc9afe1f5e8246e96516ef7db34199d94bf/Events.js/clean/lib/OpenLayers/Events.js
this.fallThrough = fallThrough;
initialize: function (object, element, eventTypes) { this.object = object; this.element = element; this.eventTypes = eventTypes; this.listeners = new Object(); // if eventTypes is specified, create a listeners list for each // custom application event. if (this.eventTypes != null) for (var i = 0; i < this.eventTypes.length; i++) this.listeners[ this.eventTypes[i] ] = new Array(); // if a dom element is specified, add a listeners list // for browser events on the element and register them if (this.element != null) this.attachToElement(element); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/88ff0bc9afe1f5e8246e96516ef7db34199d94bf/Events.js/clean/lib/OpenLayers/Events.js
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));
initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array;
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); },
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
loadingClassName: 'inplaceeditor-loading',
initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } },
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
this.expectedFailure = null; this.expectedFailureType = null;
initialize: function(htmlTestCase, metrics, seleniumCommandFactory) { this.commandFactory = new HtmlRunnerCommandFactory(seleniumCommandFactory, this); this.metrics = metrics; this.htmlTestCase = htmlTestCase; se = selenium; global.se = selenium; this.currentRow = null; this.currentRowIndex = 0; // used for selenium tests in javascript this.currentItem = null; this.commandAgenda = new Array(); this.htmlTestCase.reset(); this.sejsElement = this.htmlTestCase.testDocument.getElementById('sejs'); if (this.sejsElement) { var fname = 'Selenium JavaScript'; parse_result = parse(this.sejsElement.innerHTML, fname, 0); var x2 = new ExecutionContext(GLOBAL_CODE); ExecutionContext.current = x2; execute(parse_result, x2) } },
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/afa54887f887b5863f6af88f1b5293c9af5683a3/selenium-testrunner.js/clean/code/javascript/core/scripts/selenium-testrunner.js
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));
initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array;
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); },
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/buggy/railties/html/javascripts/controls.js
this.bound = {'start': []};
initialize: function(list, options){ this.setOptions(this.getOptions(), options); this.list = $(list); this.elements = this.list.getChildren(); this.handles = $$(this.options.handles) || this.elements; this.elements.each(function(el, i){ this.handles[i].addEvent('mousedown', this.start.bindWithEvent(this, el)); }, this); },
5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/8ac103886cf6d33ed267fc2e146d71159138c0d8/Sortables.js/clean/Plugins/Sortables.js
this.bound.start[i] = this.start.bindWithEvent(this, el);
initialize: function(list, options){ this.setOptions(this.getOptions(), options); this.list = $(list); this.elements = this.list.getChildren(); this.handles = $$(this.options.handles) || this.elements; this.elements.each(function(el, i){ this.handles[i].addEvent('mousedown', this.start.bindWithEvent(this, el)); }, this); },
5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/8ac103886cf6d33ed267fc2e146d71159138c0d8/Sortables.js/clean/Plugins/Sortables.js
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));
initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array;
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); },
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
this.events = new OpenLayers.Events(this, this.icon.image, null);
this.events = new OpenLayers.Events(this, this.icon.imageDiv, null);
initialize: function(lonlat, icon) { this.lonlat = lonlat; this.icon = (icon) ? icon : OpenLayers.Marker.defaultIcon(); this.events = new OpenLayers.Events(this, this.icon.image, null); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/51aaf18b5964acdfc0c35f2078c52aff5101e0f5/Marker.js/buggy/lib/OpenLayers/Marker.js
loadingClassName: 'inplaceeditor-loading',
initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } );
new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } );
initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));
initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array;
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); },
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/buggy/railties/html/javascripts/controls.js
loadingClassName: 'inplaceeditor-loading',
initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } },
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
loadingClassName: 'inplaceeditor-loading',
initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/ce69ee676a665c2710e7b2f1edf9376c3a2ca806/controls.js/clean/src/controls.js
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));
initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array;
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); },
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
loadingClassName: 'inplaceeditor-loading',
initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } },
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
initialize: function() {
initialize: function(direction) {
initialize: function() { OpenLayers.Control.prototype.initialize.apply(this, arguments); this.mode = null; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
this.mode = null;
if (direction) { this.direction = direction; }
initialize: function() { OpenLayers.Control.prototype.initialize.apply(this, arguments); this.mode = null; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } );
new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } );
initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); },
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
this.controlDiv = OpenLayers.Util.createDiv( div.id + "_OpenLayers_Control" ); this.controlDiv.style.width="100%"; this.controlDiv.style.height="100%"; this.controlDiv.style.zIndex = this.Z_INDEX_BASE["Control"]; this.viewPortDiv.appendChild(this.controlDiv);
initialize: function (div, options) { Object.extend(this, options); this.div = div = $(div); // the viewPortDiv is the outermost div we modify this.viewPortDiv = OpenLayers.Util.createDiv( div.id + "_OpenLayers_ViewPort" ); this.viewPortDiv.style.width = "100%"; this.viewPortDiv.style.height = "100%"; this.viewPortDiv.style.overflow = "hidden"; this.viewPortDiv.style.position = "relative"; this.div.appendChild(this.viewPortDiv); // the controlDiv is the div that all the controls sit on this.controlDiv = OpenLayers.Util.createDiv( div.id + "_OpenLayers_Control" ); this.controlDiv.style.width="100%"; this.controlDiv.style.height="100%"; this.controlDiv.style.zIndex = this.Z_INDEX_BASE["Control"]; this.viewPortDiv.appendChild(this.controlDiv); // the layerContainerDiv is the one that holds all the layers this.layerContainerDiv = OpenLayers.Util.createDiv( div.id + "_OpenLayers_Container" ); this.viewPortDiv.appendChild(this.layerContainerDiv); this.events = new OpenLayers.Events(this, div, this.EVENT_TYPES); this.layers = []; this.controls = []; this.addControl( new OpenLayers.Control.PanZoom() ); this.addControl( new OpenLayers.Control.MouseDefaults() ); // always call map.destroy() Event.observe(window, 'unload', this.destroy.bindAsEventListener(this)); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/6c83a735197589956a69fda786203b440f7daa12/Map.js/buggy/lib/OpenLayers/Map.js
initialize: function(element, callback) { this.element = $(element); this.callback = callback;
initialize: function() { this.element = $(arguments[0]); this.callback = arguments[1]; this.trigger = arguments[2];
initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js
this.registerCallback(this.element);
this.registerCallback(this.element, this.trigger);
initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js
initialize: function(element, callback) { this.element = $(element); this.callback = callback;
initialize: function() { this.element = $(arguments[0]); this.callback = arguments[1]; this.trigger = arguments[2];
initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/clean/railties/html/javascripts/prototype.js
this.registerCallback(this.element);
this.registerCallback(this.element, this.trigger);
initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/clean/railties/html/javascripts/prototype.js
this.handle.addEvent('mousedown', this.start.bindWithEvent(this));
this.bound = {'start': this.start.bindWithEvent(this)}; this.handle.addEvent('mousedown', this.bound.start);
initialize: function(el, options){ this.setOptions(this.getOptions(), options); this.element = $(el); this.handle = $(this.options.handle) || this.element; this.mouse = {'start': {}, 'now': {}, 'pos': {}}; this.value = {'start': {}, 'now': {}}; this.handle.addEvent('mousedown', this.start.bindWithEvent(this)); if (this.options.initialize) this.options.initialize.call(this); },
6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/8ac103886cf6d33ed267fc2e146d71159138c0d8/Drag.Base.js/clean/Drag/Drag.Base.js