rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 13
136k
| meta
stringlengths 132
347
|
---|---|---|---|
instance.selection.getSel().collapseToStart(); | inst.selection.getSel().collapseToStart(); | execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execCommand('mceInsertContent', false, str); } if (!value) value = new Array(); // Setup defualt values defValue("editor_id", editor_id); defValue("searchstring", ""); defValue("replacestring", null); defValue("replacemode", "none"); defValue("casesensitive", false); defValue("backwards", false); defValue("wrap", false); defValue("wholeword", false); defValue("inline", "yes"); // Handle commands switch (command) { case "mceResetSearch": tinyMCE.lastSearchRng = null; return true; case "mceSearch": if (user_interface) { // Open search dialog var template = new Array(); if (value['replacestring'] != null) { template['file'] = '../../plugins/searchreplace/replace.htm'; // Relative to theme template['width'] = 320; template['height'] = 100 + (tinyMCE.isNS7 ? 20 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_replace_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } else { template['file'] = '../../plugins/searchreplace/search.htm'; // Relative to theme template['width'] = 310; template['height'] = 105 + (tinyMCE.isNS7 ? 25 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_search_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } instance.execCommand('SelectAll'); if (tinyMCE.isMSIE) { var r = instance.selection.getRng(); r.collapse(true); r.select(); } else instance.selection.getSel().collapseToStart(); tinyMCE.openWindow(template, value); } else { var win = tinyMCE.getInstanceById(editor_id).contentWindow; var doc = tinyMCE.getInstanceById(editor_id).contentWindow.document; var body = tinyMCE.getInstanceById(editor_id).contentWindow.document.body; // Whats the point if (body.innerHTML == "") { alert(tinyMCE.getLang('lang_searchreplace_notfound')); return true; } // Handle replace current if (value['replacemode'] == "current") { replaceSel(value['string'], value['replacestring'], value['backwards']); // Search next one value['replacemode'] = "none"; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } if (tinyMCE.isMSIE) { var rng = tinyMCE.lastSearchRng ? tinyMCE.lastSearchRng : doc.selection.createRange(); var flags = 0; if (value['wholeword']) flags = flags | 2; if (value['casesensitive']) flags = flags | 4; if (!rng.findText) { alert('This operation is currently not supported by this browser.'); return true; } // Handle replace all mode if (value['replacemode'] == "all") { while (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(false); replaceSel(value['string'], value['replacestring'], value['backwards']); } alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(value['backwards']); tinyMCE.lastSearchRng = rng; } else alert(tinyMCE.getLang('lang_searchreplace_notfound')); } else { if (value['replacemode'] == "all") { while (win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) replaceSel(value['string'], value['replacestring'], value['backwards']); alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (!win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) alert(tinyMCE.getLang('lang_searchreplace_notfound')); } } return true; case "mceSearchReplace": value['replacestring'] = ""; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } // Pass to next handler in chain return false; } | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js |
execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execCommand('mceInsertContent', false, str); } if (!value) value = new Array(); // Setup defualt values defValue("editor_id", editor_id); defValue("searchstring", ""); defValue("replacestring", null); defValue("replacemode", "none"); defValue("casesensitive", false); defValue("backwards", false); defValue("wrap", false); defValue("wholeword", false); defValue("inline", "yes"); // Handle commands switch (command) { case "mceResetSearch": tinyMCE.lastSearchRng = null; return true; case "mceSearch": if (user_interface) { // Open search dialog var template = new Array(); if (value['replacestring'] != null) { template['file'] = '../../plugins/searchreplace/replace.htm'; // Relative to theme template['width'] = 320; template['height'] = 100 + (tinyMCE.isNS7 ? 20 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_replace_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } else { template['file'] = '../../plugins/searchreplace/search.htm'; // Relative to theme template['width'] = 310; template['height'] = 105 + (tinyMCE.isNS7 ? 25 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_search_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } instance.execCommand('SelectAll'); if (tinyMCE.isMSIE) { var r = instance.selection.getRng(); r.collapse(true); r.select(); } else instance.selection.getSel().collapseToStart(); tinyMCE.openWindow(template, value); } else { var win = tinyMCE.getInstanceById(editor_id).contentWindow; var doc = tinyMCE.getInstanceById(editor_id).contentWindow.document; var body = tinyMCE.getInstanceById(editor_id).contentWindow.document.body; // Whats the point if (body.innerHTML == "") { alert(tinyMCE.getLang('lang_searchreplace_notfound')); return true; } // Handle replace current if (value['replacemode'] == "current") { replaceSel(value['string'], value['replacestring'], value['backwards']); // Search next one value['replacemode'] = "none"; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } if (tinyMCE.isMSIE) { var rng = tinyMCE.lastSearchRng ? tinyMCE.lastSearchRng : doc.selection.createRange(); var flags = 0; if (value['wholeword']) flags = flags | 2; if (value['casesensitive']) flags = flags | 4; if (!rng.findText) { alert('This operation is currently not supported by this browser.'); return true; } // Handle replace all mode if (value['replacemode'] == "all") { while (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(false); replaceSel(value['string'], value['replacestring'], value['backwards']); } alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(value['backwards']); tinyMCE.lastSearchRng = rng; } else alert(tinyMCE.getLang('lang_searchreplace_notfound')); } else { if (value['replacemode'] == "all") { while (win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) replaceSel(value['string'], value['replacestring'], value['backwards']); alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (!win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) alert(tinyMCE.getLang('lang_searchreplace_notfound')); } } return true; case "mceSearchReplace": value['replacestring'] = ""; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } // Pass to next handler in chain return false; } | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js |
||
execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execCommand('mceInsertContent', false, str); } if (!value) value = new Array(); // Setup defualt values defValue("editor_id", editor_id); defValue("searchstring", ""); defValue("replacestring", null); defValue("replacemode", "none"); defValue("casesensitive", false); defValue("backwards", false); defValue("wrap", false); defValue("wholeword", false); defValue("inline", "yes"); // Handle commands switch (command) { case "mceResetSearch": tinyMCE.lastSearchRng = null; return true; case "mceSearch": if (user_interface) { // Open search dialog var template = new Array(); if (value['replacestring'] != null) { template['file'] = '../../plugins/searchreplace/replace.htm'; // Relative to theme template['width'] = 320; template['height'] = 100 + (tinyMCE.isNS7 ? 20 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_replace_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } else { template['file'] = '../../plugins/searchreplace/search.htm'; // Relative to theme template['width'] = 310; template['height'] = 105 + (tinyMCE.isNS7 ? 25 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_search_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } instance.execCommand('SelectAll'); if (tinyMCE.isMSIE) { var r = instance.selection.getRng(); r.collapse(true); r.select(); } else instance.selection.getSel().collapseToStart(); tinyMCE.openWindow(template, value); } else { var win = tinyMCE.getInstanceById(editor_id).contentWindow; var doc = tinyMCE.getInstanceById(editor_id).contentWindow.document; var body = tinyMCE.getInstanceById(editor_id).contentWindow.document.body; // Whats the point if (body.innerHTML == "") { alert(tinyMCE.getLang('lang_searchreplace_notfound')); return true; } // Handle replace current if (value['replacemode'] == "current") { replaceSel(value['string'], value['replacestring'], value['backwards']); // Search next one value['replacemode'] = "none"; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } if (tinyMCE.isMSIE) { var rng = tinyMCE.lastSearchRng ? tinyMCE.lastSearchRng : doc.selection.createRange(); var flags = 0; if (value['wholeword']) flags = flags | 2; if (value['casesensitive']) flags = flags | 4; if (!rng.findText) { alert('This operation is currently not supported by this browser.'); return true; } // Handle replace all mode if (value['replacemode'] == "all") { while (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(false); replaceSel(value['string'], value['replacestring'], value['backwards']); } alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(value['backwards']); tinyMCE.lastSearchRng = rng; } else alert(tinyMCE.getLang('lang_searchreplace_notfound')); } else { if (value['replacemode'] == "all") { while (win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) replaceSel(value['string'], value['replacestring'], value['backwards']); alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (!win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) alert(tinyMCE.getLang('lang_searchreplace_notfound')); } } return true; case "mceSearchReplace": value['replacestring'] = ""; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } // Pass to next handler in chain return false; } | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js |
||
execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execCommand('mceInsertContent', false, str); } if (!value) value = new Array(); // Setup defualt values defValue("editor_id", editor_id); defValue("searchstring", ""); defValue("replacestring", null); defValue("replacemode", "none"); defValue("casesensitive", false); defValue("backwards", false); defValue("wrap", false); defValue("wholeword", false); defValue("inline", "yes"); // Handle commands switch (command) { case "mceResetSearch": tinyMCE.lastSearchRng = null; return true; case "mceSearch": if (user_interface) { // Open search dialog var template = new Array(); if (value['replacestring'] != null) { template['file'] = '../../plugins/searchreplace/replace.htm'; // Relative to theme template['width'] = 320; template['height'] = 100 + (tinyMCE.isNS7 ? 20 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_replace_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } else { template['file'] = '../../plugins/searchreplace/search.htm'; // Relative to theme template['width'] = 310; template['height'] = 105 + (tinyMCE.isNS7 ? 25 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_search_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } instance.execCommand('SelectAll'); if (tinyMCE.isMSIE) { var r = instance.selection.getRng(); r.collapse(true); r.select(); } else instance.selection.getSel().collapseToStart(); tinyMCE.openWindow(template, value); } else { var win = tinyMCE.getInstanceById(editor_id).contentWindow; var doc = tinyMCE.getInstanceById(editor_id).contentWindow.document; var body = tinyMCE.getInstanceById(editor_id).contentWindow.document.body; // Whats the point if (body.innerHTML == "") { alert(tinyMCE.getLang('lang_searchreplace_notfound')); return true; } // Handle replace current if (value['replacemode'] == "current") { replaceSel(value['string'], value['replacestring'], value['backwards']); // Search next one value['replacemode'] = "none"; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } if (tinyMCE.isMSIE) { var rng = tinyMCE.lastSearchRng ? tinyMCE.lastSearchRng : doc.selection.createRange(); var flags = 0; if (value['wholeword']) flags = flags | 2; if (value['casesensitive']) flags = flags | 4; if (!rng.findText) { alert('This operation is currently not supported by this browser.'); return true; } // Handle replace all mode if (value['replacemode'] == "all") { while (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(false); replaceSel(value['string'], value['replacestring'], value['backwards']); } alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(value['backwards']); tinyMCE.lastSearchRng = rng; } else alert(tinyMCE.getLang('lang_searchreplace_notfound')); } else { if (value['replacemode'] == "all") { while (win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) replaceSel(value['string'], value['replacestring'], value['backwards']); alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (!win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) alert(tinyMCE.getLang('lang_searchreplace_notfound')); } } return true; case "mceSearchReplace": value['replacestring'] = ""; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } // Pass to next handler in chain return false; } | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js |
||
execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execCommand('mceInsertContent', false, str); } if (!value) value = new Array(); // Setup defualt values defValue("editor_id", editor_id); defValue("searchstring", ""); defValue("replacestring", null); defValue("replacemode", "none"); defValue("casesensitive", false); defValue("backwards", false); defValue("wrap", false); defValue("wholeword", false); defValue("inline", "yes"); // Handle commands switch (command) { case "mceResetSearch": tinyMCE.lastSearchRng = null; return true; case "mceSearch": if (user_interface) { // Open search dialog var template = new Array(); if (value['replacestring'] != null) { template['file'] = '../../plugins/searchreplace/replace.htm'; // Relative to theme template['width'] = 320; template['height'] = 100 + (tinyMCE.isNS7 ? 20 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_replace_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } else { template['file'] = '../../plugins/searchreplace/search.htm'; // Relative to theme template['width'] = 310; template['height'] = 105 + (tinyMCE.isNS7 ? 25 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_search_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } instance.execCommand('SelectAll'); if (tinyMCE.isMSIE) { var r = instance.selection.getRng(); r.collapse(true); r.select(); } else instance.selection.getSel().collapseToStart(); tinyMCE.openWindow(template, value); } else { var win = tinyMCE.getInstanceById(editor_id).contentWindow; var doc = tinyMCE.getInstanceById(editor_id).contentWindow.document; var body = tinyMCE.getInstanceById(editor_id).contentWindow.document.body; // Whats the point if (body.innerHTML == "") { alert(tinyMCE.getLang('lang_searchreplace_notfound')); return true; } // Handle replace current if (value['replacemode'] == "current") { replaceSel(value['string'], value['replacestring'], value['backwards']); // Search next one value['replacemode'] = "none"; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } if (tinyMCE.isMSIE) { var rng = tinyMCE.lastSearchRng ? tinyMCE.lastSearchRng : doc.selection.createRange(); var flags = 0; if (value['wholeword']) flags = flags | 2; if (value['casesensitive']) flags = flags | 4; if (!rng.findText) { alert('This operation is currently not supported by this browser.'); return true; } // Handle replace all mode if (value['replacemode'] == "all") { while (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(false); replaceSel(value['string'], value['replacestring'], value['backwards']); } alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(value['backwards']); tinyMCE.lastSearchRng = rng; } else alert(tinyMCE.getLang('lang_searchreplace_notfound')); } else { if (value['replacemode'] == "all") { while (win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) replaceSel(value['string'], value['replacestring'], value['backwards']); alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (!win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) alert(tinyMCE.getLang('lang_searchreplace_notfound')); } } return true; case "mceSearchReplace": value['replacestring'] = ""; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } // Pass to next handler in chain return false; } | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js |
||
execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execCommand('mceInsertContent', false, str); } if (!value) value = new Array(); // Setup defualt values defValue("editor_id", editor_id); defValue("searchstring", ""); defValue("replacestring", null); defValue("replacemode", "none"); defValue("casesensitive", false); defValue("backwards", false); defValue("wrap", false); defValue("wholeword", false); defValue("inline", "yes"); // Handle commands switch (command) { case "mceResetSearch": tinyMCE.lastSearchRng = null; return true; case "mceSearch": if (user_interface) { // Open search dialog var template = new Array(); if (value['replacestring'] != null) { template['file'] = '../../plugins/searchreplace/replace.htm'; // Relative to theme template['width'] = 320; template['height'] = 100 + (tinyMCE.isNS7 ? 20 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_replace_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } else { template['file'] = '../../plugins/searchreplace/search.htm'; // Relative to theme template['width'] = 310; template['height'] = 105 + (tinyMCE.isNS7 ? 25 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_search_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } instance.execCommand('SelectAll'); if (tinyMCE.isMSIE) { var r = instance.selection.getRng(); r.collapse(true); r.select(); } else instance.selection.getSel().collapseToStart(); tinyMCE.openWindow(template, value); } else { var win = tinyMCE.getInstanceById(editor_id).contentWindow; var doc = tinyMCE.getInstanceById(editor_id).contentWindow.document; var body = tinyMCE.getInstanceById(editor_id).contentWindow.document.body; // Whats the point if (body.innerHTML == "") { alert(tinyMCE.getLang('lang_searchreplace_notfound')); return true; } // Handle replace current if (value['replacemode'] == "current") { replaceSel(value['string'], value['replacestring'], value['backwards']); // Search next one value['replacemode'] = "none"; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } if (tinyMCE.isMSIE) { var rng = tinyMCE.lastSearchRng ? tinyMCE.lastSearchRng : doc.selection.createRange(); var flags = 0; if (value['wholeword']) flags = flags | 2; if (value['casesensitive']) flags = flags | 4; if (!rng.findText) { alert('This operation is currently not supported by this browser.'); return true; } // Handle replace all mode if (value['replacemode'] == "all") { while (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(false); replaceSel(value['string'], value['replacestring'], value['backwards']); } alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(value['backwards']); tinyMCE.lastSearchRng = rng; } else alert(tinyMCE.getLang('lang_searchreplace_notfound')); } else { if (value['replacemode'] == "all") { while (win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) replaceSel(value['string'], value['replacestring'], value['backwards']); alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (!win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) alert(tinyMCE.getLang('lang_searchreplace_notfound')); } } return true; case "mceSearchReplace": value['replacestring'] = ""; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } // Pass to next handler in chain return false; } | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js |
||
execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execCommand('mceInsertContent', false, str); } if (!value) value = new Array(); // Setup defualt values defValue("editor_id", editor_id); defValue("searchstring", ""); defValue("replacestring", null); defValue("replacemode", "none"); defValue("casesensitive", false); defValue("backwards", false); defValue("wrap", false); defValue("wholeword", false); defValue("inline", "yes"); // Handle commands switch (command) { case "mceResetSearch": tinyMCE.lastSearchRng = null; return true; case "mceSearch": if (user_interface) { // Open search dialog var template = new Array(); if (value['replacestring'] != null) { template['file'] = '../../plugins/searchreplace/replace.htm'; // Relative to theme template['width'] = 320; template['height'] = 100 + (tinyMCE.isNS7 ? 20 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_replace_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } else { template['file'] = '../../plugins/searchreplace/search.htm'; // Relative to theme template['width'] = 310; template['height'] = 105 + (tinyMCE.isNS7 ? 25 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_search_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } instance.execCommand('SelectAll'); if (tinyMCE.isMSIE) { var r = instance.selection.getRng(); r.collapse(true); r.select(); } else instance.selection.getSel().collapseToStart(); tinyMCE.openWindow(template, value); } else { var win = tinyMCE.getInstanceById(editor_id).contentWindow; var doc = tinyMCE.getInstanceById(editor_id).contentWindow.document; var body = tinyMCE.getInstanceById(editor_id).contentWindow.document.body; // Whats the point if (body.innerHTML == "") { alert(tinyMCE.getLang('lang_searchreplace_notfound')); return true; } // Handle replace current if (value['replacemode'] == "current") { replaceSel(value['string'], value['replacestring'], value['backwards']); // Search next one value['replacemode'] = "none"; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } if (tinyMCE.isMSIE) { var rng = tinyMCE.lastSearchRng ? tinyMCE.lastSearchRng : doc.selection.createRange(); var flags = 0; if (value['wholeword']) flags = flags | 2; if (value['casesensitive']) flags = flags | 4; if (!rng.findText) { alert('This operation is currently not supported by this browser.'); return true; } // Handle replace all mode if (value['replacemode'] == "all") { while (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(false); replaceSel(value['string'], value['replacestring'], value['backwards']); } alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(value['backwards']); tinyMCE.lastSearchRng = rng; } else alert(tinyMCE.getLang('lang_searchreplace_notfound')); } else { if (value['replacemode'] == "all") { while (win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) replaceSel(value['string'], value['replacestring'], value['backwards']); alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (!win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) alert(tinyMCE.getLang('lang_searchreplace_notfound')); } } return true; case "mceSearchReplace": value['replacestring'] = ""; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } // Pass to next handler in chain return false; } | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js |
||
case "mceSearchReplace": | case "mceSearchReplace" : | execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execCommand('mceInsertContent', false, str); } if (!value) value = new Array(); // Setup defualt values defValue("editor_id", editor_id); defValue("searchstring", ""); defValue("replacestring", null); defValue("replacemode", "none"); defValue("casesensitive", false); defValue("backwards", false); defValue("wrap", false); defValue("wholeword", false); defValue("inline", "yes"); // Handle commands switch (command) { case "mceResetSearch": tinyMCE.lastSearchRng = null; return true; case "mceSearch": if (user_interface) { // Open search dialog var template = new Array(); if (value['replacestring'] != null) { template['file'] = '../../plugins/searchreplace/replace.htm'; // Relative to theme template['width'] = 320; template['height'] = 100 + (tinyMCE.isNS7 ? 20 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_replace_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } else { template['file'] = '../../plugins/searchreplace/search.htm'; // Relative to theme template['width'] = 310; template['height'] = 105 + (tinyMCE.isNS7 ? 25 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_search_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } instance.execCommand('SelectAll'); if (tinyMCE.isMSIE) { var r = instance.selection.getRng(); r.collapse(true); r.select(); } else instance.selection.getSel().collapseToStart(); tinyMCE.openWindow(template, value); } else { var win = tinyMCE.getInstanceById(editor_id).contentWindow; var doc = tinyMCE.getInstanceById(editor_id).contentWindow.document; var body = tinyMCE.getInstanceById(editor_id).contentWindow.document.body; // Whats the point if (body.innerHTML == "") { alert(tinyMCE.getLang('lang_searchreplace_notfound')); return true; } // Handle replace current if (value['replacemode'] == "current") { replaceSel(value['string'], value['replacestring'], value['backwards']); // Search next one value['replacemode'] = "none"; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } if (tinyMCE.isMSIE) { var rng = tinyMCE.lastSearchRng ? tinyMCE.lastSearchRng : doc.selection.createRange(); var flags = 0; if (value['wholeword']) flags = flags | 2; if (value['casesensitive']) flags = flags | 4; if (!rng.findText) { alert('This operation is currently not supported by this browser.'); return true; } // Handle replace all mode if (value['replacemode'] == "all") { while (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(false); replaceSel(value['string'], value['replacestring'], value['backwards']); } alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(value['backwards']); tinyMCE.lastSearchRng = rng; } else alert(tinyMCE.getLang('lang_searchreplace_notfound')); } else { if (value['replacemode'] == "all") { while (win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) replaceSel(value['string'], value['replacestring'], value['backwards']); alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (!win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) alert(tinyMCE.getLang('lang_searchreplace_notfound')); } } return true; case "mceSearchReplace": value['replacestring'] = ""; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } // Pass to next handler in chain return false; } | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js |
execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execCommand('mceInsertContent', false, str); } if (!value) value = new Array(); // Setup defualt values defValue("editor_id", editor_id); defValue("searchstring", ""); defValue("replacestring", null); defValue("replacemode", "none"); defValue("casesensitive", false); defValue("backwards", false); defValue("wrap", false); defValue("wholeword", false); defValue("inline", "yes"); // Handle commands switch (command) { case "mceResetSearch": tinyMCE.lastSearchRng = null; return true; case "mceSearch": if (user_interface) { // Open search dialog var template = new Array(); if (value['replacestring'] != null) { template['file'] = '../../plugins/searchreplace/replace.htm'; // Relative to theme template['width'] = 320; template['height'] = 100 + (tinyMCE.isNS7 ? 20 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_replace_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } else { template['file'] = '../../plugins/searchreplace/search.htm'; // Relative to theme template['width'] = 310; template['height'] = 105 + (tinyMCE.isNS7 ? 25 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_search_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } instance.execCommand('SelectAll'); if (tinyMCE.isMSIE) { var r = instance.selection.getRng(); r.collapse(true); r.select(); } else instance.selection.getSel().collapseToStart(); tinyMCE.openWindow(template, value); } else { var win = tinyMCE.getInstanceById(editor_id).contentWindow; var doc = tinyMCE.getInstanceById(editor_id).contentWindow.document; var body = tinyMCE.getInstanceById(editor_id).contentWindow.document.body; // Whats the point if (body.innerHTML == "") { alert(tinyMCE.getLang('lang_searchreplace_notfound')); return true; } // Handle replace current if (value['replacemode'] == "current") { replaceSel(value['string'], value['replacestring'], value['backwards']); // Search next one value['replacemode'] = "none"; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } if (tinyMCE.isMSIE) { var rng = tinyMCE.lastSearchRng ? tinyMCE.lastSearchRng : doc.selection.createRange(); var flags = 0; if (value['wholeword']) flags = flags | 2; if (value['casesensitive']) flags = flags | 4; if (!rng.findText) { alert('This operation is currently not supported by this browser.'); return true; } // Handle replace all mode if (value['replacemode'] == "all") { while (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(false); replaceSel(value['string'], value['replacestring'], value['backwards']); } alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(value['backwards']); tinyMCE.lastSearchRng = rng; } else alert(tinyMCE.getLang('lang_searchreplace_notfound')); } else { if (value['replacemode'] == "all") { while (win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) replaceSel(value['string'], value['replacestring'], value['backwards']); alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (!win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) alert(tinyMCE.getLang('lang_searchreplace_notfound')); } } return true; case "mceSearchReplace": value['replacestring'] = ""; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } // Pass to next handler in chain return false; } | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js |
||
execCommand : function(editor_id, element, command, user_interface, value) { var instance = tinyMCE.getInstanceById(editor_id); function defValue(key, default_value) { value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; } function replaceSel(search_str, str, back) { instance.execCommand('mceInsertContent', false, str); } if (!value) value = new Array(); // Setup defualt values defValue("editor_id", editor_id); defValue("searchstring", ""); defValue("replacestring", null); defValue("replacemode", "none"); defValue("casesensitive", false); defValue("backwards", false); defValue("wrap", false); defValue("wholeword", false); defValue("inline", "yes"); // Handle commands switch (command) { case "mceResetSearch": tinyMCE.lastSearchRng = null; return true; case "mceSearch": if (user_interface) { // Open search dialog var template = new Array(); if (value['replacestring'] != null) { template['file'] = '../../plugins/searchreplace/replace.htm'; // Relative to theme template['width'] = 320; template['height'] = 100 + (tinyMCE.isNS7 ? 20 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_replace_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } else { template['file'] = '../../plugins/searchreplace/search.htm'; // Relative to theme template['width'] = 310; template['height'] = 105 + (tinyMCE.isNS7 ? 25 : 0); template['width'] += tinyMCE.getLang('lang_searchreplace_search_delta_width', 0); template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0); } instance.execCommand('SelectAll'); if (tinyMCE.isMSIE) { var r = instance.selection.getRng(); r.collapse(true); r.select(); } else instance.selection.getSel().collapseToStart(); tinyMCE.openWindow(template, value); } else { var win = tinyMCE.getInstanceById(editor_id).contentWindow; var doc = tinyMCE.getInstanceById(editor_id).contentWindow.document; var body = tinyMCE.getInstanceById(editor_id).contentWindow.document.body; // Whats the point if (body.innerHTML == "") { alert(tinyMCE.getLang('lang_searchreplace_notfound')); return true; } // Handle replace current if (value['replacemode'] == "current") { replaceSel(value['string'], value['replacestring'], value['backwards']); // Search next one value['replacemode'] = "none"; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } if (tinyMCE.isMSIE) { var rng = tinyMCE.lastSearchRng ? tinyMCE.lastSearchRng : doc.selection.createRange(); var flags = 0; if (value['wholeword']) flags = flags | 2; if (value['casesensitive']) flags = flags | 4; if (!rng.findText) { alert('This operation is currently not supported by this browser.'); return true; } // Handle replace all mode if (value['replacemode'] == "all") { while (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(false); replaceSel(value['string'], value['replacestring'], value['backwards']); } alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { rng.scrollIntoView(); rng.select(); rng.collapse(value['backwards']); tinyMCE.lastSearchRng = rng; } else alert(tinyMCE.getLang('lang_searchreplace_notfound')); } else { if (value['replacemode'] == "all") { while (win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) replaceSel(value['string'], value['replacestring'], value['backwards']); alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); return true; } if (!win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) alert(tinyMCE.getLang('lang_searchreplace_notfound')); } } return true; case "mceSearchReplace": value['replacestring'] = ""; tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); return true; } // Pass to next handler in chain return false; } | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js |
||
var inst = tinyMCE.getInstanceById(editor_id); | var inst = tinyMCE.getInstanceById(editor_id), r; | execInstanceCommand : function(editor_id, command, user_interface, value, focus) { var inst = tinyMCE.getInstanceById(editor_id); if (inst) { if (typeof(focus) == "undefined") focus = true; if (focus) inst.contentWindow.focus(); // Reset design mode if lost inst.autoResetDesignMode(); this.selectedElement = inst.getFocusElement(); this.selectedInstance = inst; tinyMCE.execCommand(command, user_interface, value); // Cancel event so it doesn't call onbeforeonunlaod if (tinyMCE.isMSIE && window.event != null) tinyMCE.cancelEvent(window.event); } }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
if (focus) | if (focus && (!r || !r.item)) | execInstanceCommand : function(editor_id, command, user_interface, value, focus) { var inst = tinyMCE.getInstanceById(editor_id); if (inst) { if (typeof(focus) == "undefined") focus = true; if (focus) inst.contentWindow.focus(); // Reset design mode if lost inst.autoResetDesignMode(); this.selectedElement = inst.getFocusElement(); this.selectedInstance = inst; tinyMCE.execCommand(command, user_interface, value); // Cancel event so it doesn't call onbeforeonunlaod if (tinyMCE.isMSIE && window.event != null) tinyMCE.cancelEvent(window.event); } }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
this.selectedInstance = inst; | inst.select(); | execInstanceCommand : function(editor_id, command, user_interface, value, focus) { var inst = tinyMCE.getInstanceById(editor_id); if (inst) { if (typeof(focus) == "undefined") focus = true; if (focus) inst.contentWindow.focus(); // Reset design mode if lost inst.autoResetDesignMode(); this.selectedElement = inst.getFocusElement(); this.selectedInstance = inst; tinyMCE.execCommand(command, user_interface, value); // Cancel event so it doesn't call onbeforeonunlaod if (tinyMCE.isMSIE && window.event != null) tinyMCE.cancelEvent(window.event); } }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
if (tinyMCE.isMSIE && window.event != null) | if (tinyMCE.isIE && window.event != null) | execInstanceCommand : function(editor_id, command, user_interface, value, focus) { var inst = tinyMCE.getInstanceById(editor_id); if (inst) { if (typeof(focus) == "undefined") focus = true; if (focus) inst.contentWindow.focus(); // Reset design mode if lost inst.autoResetDesignMode(); this.selectedElement = inst.getFocusElement(); this.selectedInstance = inst; tinyMCE.execCommand(command, user_interface, value); // Cancel event so it doesn't call onbeforeonunlaod if (tinyMCE.isMSIE && window.event != null) tinyMCE.cancelEvent(window.event); } }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
this.execute = function() { var baseFailureMessage = decoratedExecutor(baseHandler, arguments); var result = {}; if (!baseFailureMessage) { result.failed = true; result.failureMessage = "Expected " + errorType + " did not occur."; } else { if (! PatternMatcher.matches(expectedErrorMessage, baseFailureMessage)) { result.failed = true; result.failureMessage = "Expected " + errorType + " message '" + expectedErrorMessage + "' but was '" + baseFailureMessage + "'"; } else { result.passed = true; result.result = baseFailureMessage; } } currentTest.commandFactory = originalCommandFactory; return result; }; | execute: function(selenium, command) { testLoop.pauseInterval = command.target; return {}; } | this.execute = function() { var baseFailureMessage = decoratedExecutor(baseHandler, arguments); var result = {}; if (!baseFailureMessage) { result.failed = true; result.failureMessage = "Expected " + errorType + " did not occur."; } else { if (! PatternMatcher.matches(expectedErrorMessage, baseFailureMessage)) { result.failed = true; result.failureMessage = "Expected " + errorType + " message '" + expectedErrorMessage + "' but was '" + baseFailureMessage + "'"; } else { result.passed = true; result.result = baseFailureMessage; } } currentTest.commandFactory = originalCommandFactory; return result; }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/1ab60129fcc4fbcf622a70b6be8d572140c8fb34/selenium-testrunner.js/clean/code/javascript/core/scripts/selenium-testrunner.js |
selenium = Selenium.createForFrame(window.getBrowser()); | selenium = Selenium.createForFrame(window.getBrowser().selectedBrowser); | function executeCommand(baseURL, command) { if (!stopAndDo("executeCommand", baseURL, command)) return; // TODO refactor with start() var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow('navigator:browser'); selenium = Selenium.createForFrame(window.getBrowser()); selenium.browserbot.getCurrentPage(); selenium.baseURL = baseURL; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); testLoop = new TestLoop(commandFactory); testLoop.getCommandInterval = function() { return 0; } var first = true; testLoop.nextCommand = function() { if (first) { first = false; testCase.debugContext.debugIndex = testCase.commands.indexOf(command); return new SeleniumCommand(command.command, command.target, command.value); } else { return null; } } testLoop.firstCommand = testLoop.nextCommand; // Selenium <= 0.6 only testLoop.commandStarted = function() { editor.view.rowUpdated(testCase.commands.indexOf(command)); } testLoop.commandComplete = function(result) { if (result.failed) { command.result = 'failed'; } else if (result.passed) { command.result = 'passed'; } else { command.result = 'done'; } editor.view.rowUpdated(testCase.commands.indexOf(command)); } testLoop.commandError = function() { command.result = 'failed'; editor.view.rowUpdated(testCase.commands.indexOf(command)); } testLoop.testComplete = function() { testLoop = null; testCase.debugContext.reset(); editor.view.rowUpdated(testCase.commands.indexOf(command)); } testLoop.pause = function() { editor.setState("paused"); } testLoop.start();} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ed34b0cd5b414d752a08dcb1fef34298d56118ed/selenium-runner.js/clean/src/content/selenium-runner.js |
}; | }; | function executeCommandAndReturnErrorMessage(baseHandler, originalArguments) { try { baseHandler.execute.apply(baseHandler, originalArguments); return null; } catch (expected) { return expected.message; } }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/3c51d88047f049ca77e3dc3c54620418c670daa9/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js |
}; | }; | function executeCommandAndReturnErrorMessage(baseHandler, originalArguments) { try { baseHandler.execute.apply(baseHandler, originalArguments); return null; } catch (expected) { return expected.message; } }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ec019b445c1098c4c79632d8160a45745e118d6b/selenium-executionloop.js/clean/code/javascript/selenium-executionloop.js |
}; | }; | function executeCommandAndReturnFailureMessage(baseHandler, originalArguments) { var baseResult = baseHandler.execute.apply(baseHandler, originalArguments); if (baseResult.passed) { return null; } return baseResult.failureMessage; }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/3c51d88047f049ca77e3dc3c54620418c670daa9/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js |
}; | }; | function executeCommandAndReturnFailureMessage(baseHandler, originalArguments) { var baseResult = baseHandler.execute.apply(baseHandler, originalArguments); if (baseResult.passed) { return null; } return baseResult.failureMessage; }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ec019b445c1098c4c79632d8160a45745e118d6b/selenium-executionloop.js/clean/code/javascript/selenium-executionloop.js |
throw new Error("Unknown command: '" + command.command + "'"); | throw new SeleniumError("Unknown command: '" + command.command + "'"); | this.executeCurrentCommand = function() { var command = this.currentCommand; LOG.info("Executing: |" + command.command + " | " + command.target + " | " + command.value + " |"); var handler = this.commandFactory.getCommandHandler(command.command); if (handler == null) { throw new Error("Unknown command: '" + command.command + "'"); } command.target = selenium.preprocessParameter(command.target); command.value = selenium.preprocessParameter(command.value); var result = handler.execute(selenium, command); this.commandComplete(result); if (result.processState == SELENIUM_PROCESS_WAIT) { this.waitForCondition = function() { return selenium.browserbot.isNewPageLoaded(); }; } }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/df3a5df3ebab25183e7f21b69bb10fc0e4d1dc08/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js |
LOG.debug("Command complete"); | this.executeCurrentCommand = function() { var command = this.currentCommand; LOG.info("Executing: |" + command.command + " | " + command.target + " | " + command.value + " |"); var handler = this.commandFactory.getCommandHandler(command.command); if (handler == null) { throw new SeleniumError("Unknown command: '" + command.command + "'"); } command.target = selenium.preprocessParameter(command.target); command.value = selenium.preprocessParameter(command.value); var result = handler.execute(selenium, command); this.commandComplete(result); if (result.processState == SELENIUM_PROCESS_WAIT) { this.waitForCondition = function() { return selenium.browserbot.isNewPageLoaded(); }; } }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ee8f57a55845d6b1bd383c79ecd25cc8e6bc6cc0/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js |
|
LOG.debug("Checking condition: isNewPageLoaded?"); | this.executeCurrentCommand = function() { var command = this.currentCommand; LOG.info("Executing: |" + command.command + " | " + command.target + " | " + command.value + " |"); var handler = this.commandFactory.getCommandHandler(command.command); if (handler == null) { throw new SeleniumError("Unknown command: '" + command.command + "'"); } command.target = selenium.preprocessParameter(command.target); command.value = selenium.preprocessParameter(command.value); var result = handler.execute(selenium, command); this.commandComplete(result); if (result.processState == SELENIUM_PROCESS_WAIT) { this.waitForCondition = function() { return selenium.browserbot.isNewPageLoaded(); }; } }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ee8f57a55845d6b1bd383c79ecd25cc8e6bc6cc0/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js |
|
else { try { var processNext = handler.executor.call(selenium, command.target, command.value); if (handler.type == "assert") { this.assertionPassed(); } else { this.actionOK(); } | this.executeNextCommand = function() { var command = this.nextCommand(); if (!command) return SELENIUM_PROCESS_COMPLETE; handler = this.commandFactory.getCommandHandler(command.command); // Make the current row blue this.beginCommand(command); if(handler == null) { this.commandError("Unknown command", ERROR); return SELENIUM_PROCESS_COMPLETE; } else { try { var processNext = handler.executor.call(selenium, command.target, command.value); if (handler.type == "assert") { this.assertionPassed(); } else { this.actionOK(); } return processNext; } catch (e) { if (e.isJsUnitException && handler.type == "assert") { this.assertionFailed(e.jsUnitMessage); } else { this.commandError(e.message); } } } } | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4ef9dce64cb8bc638dd0887dfc6ace54d10ce2e4/selenium-executionloop.js/buggy/javascript/selenium-executionloop.js |
|
return processNext; } catch (e) { if (e.isJsUnitException && handler.type == "assert") { this.assertionFailed(e.jsUnitMessage); } else { this.commandError(e.message); } | try { var processNext = handler.executor.call(selenium, command.target, command.value); if (processNext == undefined && handler.wait) { processNext = SELENIUM_PROCESS_WAIT; } if (handler.type == "assert") { this.assertionPassed(); } else { this.actionOK(); } return processNext; } catch (e) { if (e.isJsUnitException && handler.type == "assert") { this.assertionFailed(e.jsUnitMessage); } else { this.commandError(e.message); | this.executeNextCommand = function() { var command = this.nextCommand(); if (!command) return SELENIUM_PROCESS_COMPLETE; handler = this.commandFactory.getCommandHandler(command.command); // Make the current row blue this.beginCommand(command); if(handler == null) { this.commandError("Unknown command", ERROR); return SELENIUM_PROCESS_COMPLETE; } else { try { var processNext = handler.executor.call(selenium, command.target, command.value); if (handler.type == "assert") { this.assertionPassed(); } else { this.actionOK(); } return processNext; } catch (e) { if (e.isJsUnitException && handler.type == "assert") { this.assertionFailed(e.jsUnitMessage); } else { this.commandError(e.message); } } } } | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4ef9dce64cb8bc638dd0887dfc6ace54d10ce2e4/selenium-executionloop.js/buggy/javascript/selenium-executionloop.js |
else { try { var processNext = handler.executor.call(selenium, command.target, command.value); if (handler.type == "assert") { this.assertionPassed(); } else { this.actionOK(); } | this.executeNextCommand = function() { var command = this.nextCommand(); if (!command) return SELENIUM_PROCESS_COMPLETE; handler = this.commandFactory.getCommandHandler(command.command); // Make the current row blue this.beginCommand(command); if(handler == null) { this.commandError("Unknown command", ERROR); return SELENIUM_PROCESS_COMPLETE; } else { try { var processNext = handler.executor.call(selenium, command.target, command.value); if (handler.type == "assert") { this.assertionPassed(); } else { this.actionOK(); } return processNext; } catch (e) { if (e.isJsUnitException && handler.type == "assert") { this.assertionFailed(e.jsUnitMessage); } else { this.commandError(e.message); } } } } | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/d29c3300057cc06e6959278a7a9672474b9dc998/selenium-executionloop.js/clean/javascript/selenium-executionloop.js |
|
return processNext; } catch (e) { if (e.isJsUnitException && handler.type == "assert") { this.assertionFailed(e.jsUnitMessage); } else { this.commandError(e.message); } | try { var processNext = handler.executor.call(selenium, command.target, command.value); if (processNext == undefined && handler.wait) { processNext = SELENIUM_PROCESS_WAIT; } if (handler.type == "assert") { this.assertionPassed(); } else { this.actionOK(); } return processNext; } catch (e) { if (e.isJsUnitException && handler.type == "assert") { this.assertionFailed(e.jsUnitMessage); } else { this.commandError(e.message); | this.executeNextCommand = function() { var command = this.nextCommand(); if (!command) return SELENIUM_PROCESS_COMPLETE; handler = this.commandFactory.getCommandHandler(command.command); // Make the current row blue this.beginCommand(command); if(handler == null) { this.commandError("Unknown command", ERROR); return SELENIUM_PROCESS_COMPLETE; } else { try { var processNext = handler.executor.call(selenium, command.target, command.value); if (handler.type == "assert") { this.assertionPassed(); } else { this.actionOK(); } return processNext; } catch (e) { if (e.isJsUnitException && handler.type == "assert") { this.assertionFailed(e.jsUnitMessage); } else { this.commandError(e.message); } } } } | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/d29c3300057cc06e6959278a7a9672474b9dc998/selenium-executionloop.js/clean/javascript/selenium-executionloop.js |
if (view.getViewURI()) { | if (view != null && view.getViewURI()) { | function executeUsecase() { var usecaseName; var usecase; // the Usecase object var proxy; // a UsecaseProxy to make the usecase state persistent across continuations var view; // the UsecaseView object that belongs to our usecase. var state; // the state of the usecase ("continue"|"success"|"cancel"); var targetUrl; // URL to redirect to after completion. var generic = new Object; // a generic helper object for custom flow code to preserve state information. try { usecaseName = cocoon.parameters["usecaseName"]; usecase = getUsecase(usecaseName); passRequestParameters(usecase); usecase.checkPreconditions(); usecase.lockInvolvedObjects(); // create proxy object to save usecase state proxy = new Packages.org.apache.lenya.cms.usecase.UsecaseProxy(usecase); view = usecase.getView(); log("debug", "Successfully prepared usecase.", usecaseName); } catch (exception) { log("error", "Could not prepare usecase: " + exception, usecaseName); throw exception; } finally { releaseUsecase(usecase); } loadCustomFlow(view); if (view.getViewURI()) { // If the usecase has a view uri, this means we want to display something // to the user before proceeding. This also means the usecase can consist // of several steps; repeated until the user chooses to submit or cancel. do { // show the view: try { loopFlow(view, proxy, generic); //usecase must be released here! } catch (exception) { // if something went wrong, try and rollback the usecase: log("error", "Exception during loopFlow(): " + exception, usecaseName); try { usecase = getUsecase(usecaseName); proxy.setup(usecase); usecase.cancel(); throw exception; } finally { releaseUsecase(usecase); } } log("debug", "Advancing in usecase.", usecaseName); // restore the usecase state and handle the user input: usecase = getUsecase(usecaseName); proxy.setup(usecase); passRequestParameters(usecase); state = submitFlow(usecase, generic); // create a new proxy with the updated usecase state proxy = new Packages.org.apache.lenya.cms.usecase.UsecaseProxy(usecase); releaseUsecase(usecase); } while (state == "continue"); // If the usecase does not have a view uri, we can directly jump to // executeFlow(). } else { usecase = getUsecase(usecaseName); proxy.setup(usecase); passRequestParameters(usecase); state = executeFlow(usecase); releaseUsecase(usecase); } //getTargetURL takes a boolean that is true on success: targetUrl = usecase.getTargetURL(state == "success"); log("debug", "Completed, redirecting to url = [context:/" + targetUrl + "]", usecaseName); // jump to the appropriate URL: redirect(targetUrl);} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/5950da15528f14729d0b785fe484f5d74d7b7804/usecases.js/buggy/src/webapp/lenya/usecases/usecases.js |
} else if (typeof smartprefixes[nick] == 'object' && smartprefixes[nick].constructor == Function) { | } else if (typeof smartprefixes[nick] == 'function') { | function expand_smartprefix(context, current_url){ var match = context.url.match(/^([^:\s]+)(:|\s)\s*(.*)\s*$/) if (match && match[1] && match[3]) { var nick = match[1] var val = match[3] if (smartprefixes[nick]) { if (typeof smartprefixes[nick] == 'string') { context.url = smartprefixes[nick].replace(/%s/, escape(val)) return true } else if (typeof smartprefixes[nick] == 'object' && smartprefixes[nick].constructor == Function) { context.url = smartprefixes[nick](val) return true } else { ELinks.write('smartprefix "' + nick + '" has unsupported type "' + typeof smartprefixes[nick] + '".') return false } } } // Unmatched. return false} | 2130 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2130/28f615138cff8a9866cde45d48729c1c7cfadcf8/hooks.js/clean/contrib/see/hooks.js |
} else if (typeof smartprefixes[nick] == 'object' && smartprefixes[nick].constructor == Function) { | } else if (typeof smartprefixes[nick] == 'function') { | function expand_smartprefix(context, current_url){ var match = context.url.match(/^([^:\s]+)(:|\s)\s*(.*)\s*$/) if (match && match[1] && match[3]) { var nick = match[1] var val = match[3] if (smartprefixes[nick]) { if (typeof smartprefixes[nick] == 'string') { context.url = smartprefixes[nick].replace(/%s/, escape(val)) return true } else if (typeof smartprefixes[nick] == 'object' && smartprefixes[nick].constructor == Function) { context.url = smartprefixes[nick](val) return true } else { ELinks.write('smartprefix "' + nick + '" has unsupported type "' + typeof smartprefixes[nick] + '".') return false } } } // Unmatched. return false} | 2461 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2461/28f615138cff8a9866cde45d48729c1c7cfadcf8/hooks.js/buggy/contrib/see/hooks.js |
function ExpireCookie (name) { var exp = new Date(); exp.setTime (exp.getTime() - 1); var cval = GetCookie (name); | function ExpireCookie (name) { var exp = new Date(); exp.setTime (exp.getTime() - 1); var cval = GetCookie (name); | function ExpireCookie (name) { var exp = new Date(); exp.setTime (exp.getTime() - 1); var cval = GetCookie (name); name = CookieBranding(name) document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();} | 5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js |
extend: function(obj){ this.initialize(Object.extend(this.obj, obj)); | extend: function(obj) { for (var property in obj){ if (this.obj[property] === undefined) this.length++; this.obj[property] = obj[property]; } | extend: function(obj){ this.initialize(Object.extend(this.obj, obj)); return this; }, | 6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/2f00bcee8e2a9577e18cd8c5c5c7c594651a3811/Hash.js/clean/Addons/Hash.js |
if (_nativeExtensions) return element; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods, cache = Element.extend.cache; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/62ee692bfa7a7e657c10e2f9c32775e961069e91/prototype.js/clean/lib/prototype.js |
|
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/clean/railties/html/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/clean/railties/html/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 2320 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2320/19200c26046dc00f15305e03b7c1d28b4c38c952/prototype.js/clean/web/scripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 2320 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2320/19200c26046dc00f15305e03b7c1d28b4c38c952/prototype.js/clean/web/scripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/clean/railties/html/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/clean/railties/html/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/a66fc3df02a2351eaca597a7b536ab0e0e9e84e5/prototype.js/clean/lib/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/a66fc3df02a2351eaca597a7b536ab0e0e9e84e5/prototype.js/clean/lib/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js |
extend: function(obj){ this.initialize(Object.extend(this.obj, obj)); | extend: function(obj) { for (var property in obj){ if (this.obj[property] === undefined) this.length++; this.obj[property] = obj[property]; } | extend: function(obj){ this.initialize(Object.extend(this.obj, obj)); return this; }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/2f00bcee8e2a9577e18cd8c5c5c7c594651a3811/Hash.js/buggy/Addons/Hash.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js |
Object.prototype.extend = function(object) { return Object.extend.apply(this, [this, object]); | Object.extend = function(destination, source) { for (property in source) { destination[property] = source[property]; } return destination; | Object.prototype.extend = function(object) { return Object.extend.apply(this, [this, object]);} | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/buggy/public/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/clean/railties/html/javascripts/prototype.js |
element[property] = value.bind(null, element); | element[property] = cache.findOrStore(value); | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/clean/railties/html/javascripts/prototype.js |
if (_nativeExtensions) return element; | if (_nativeExtensions || element.nodeType == 3) return element; | Element.extend = function(element) { if (!element) return; if (_nativeExtensions) return element; if (!element._extended && element.tagName && element != window) { var methods = Object.clone(Element.Methods), cache = Element.extend.cache; if (element.tagName == 'FORM') Object.extend(methods, Form.Methods); if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) Object.extend(methods, Form.Element.Methods); for (var property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = cache.findOrStore(value); } } element._extended = true; return element;} | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js |
var methods = Element.Methods; | var methods = Element.Methods, cache = Element.extend.cache; | Element.extend = function(element) { if (!element) return; if (!element._extended && element.tagName && element != window) { var methods = Element.Methods; for (property in methods) { var value = methods[property]; if (typeof value == 'function') element[property] = value.bind(null, element); } } element._extended = true; return element;} | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.