rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 13
136k
| meta
stringlengths 132
347
|
---|---|---|---|
removeObserver: function(observer) { | removeObserver: function(element) { | removeObserver: function(observer) { for(var i = 0; i < this.observers.length; i++) if(this.observers[i] = observer) this.observers.splice(i,1); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
if(this.observers[i] = observer) | if(this.observers[i].element && (this.observers[i].element == element)) | removeObserver: function(observer) { for(var i = 0; i < this.observers.length; i++) if(this.observers[i] = observer) this.observers.splice(i,1); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
str = str.replace(/<\/?span\s*([^>]*)>/gi, ""); | str = str.replace(/<span class="wikilink">\s*([\s\S]+?)<\/span>/g,'$1'); str = str.replace(/<span class="wikiexternallink">\s*([\s\S]+?)<\/span>/g,'$1'); | WikiEditor.prototype.removeSpecialHtmlTags = function(str) { str = str.replace(/<div class="paragraph">([\s\S]+?)<\/div>/g,'$1'); str = str.replace(/<p class="paragraph">\s*([\s\S]+?)<\/p>/g,'$1'); str = str.replace(/<\/?span\s*([^>]*)>/gi, ""); str = str.replace(/<\/?p[^>]*>/gi, ""); str = str.replace(/<br \/>/g, '\r\n') return str;} | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/99c4378ba78bef1f5ed4ec3e57a795da561a9024/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js |
str = str.replace(/<br \/>/g, '\r\n') | str = str.replace(/<br \/>/g, '\r\n'); | WikiEditor.prototype.removeSpecialHtmlTags = function(str) { str = str.replace(/<div class="paragraph">([\s\S]+?)<\/div>/g,'$1'); str = str.replace(/<p class="paragraph">\s*([\s\S]+?)<\/p>/g,'$1'); str = str.replace(/<span class="wikilink">\s*([\s\S]+?)<\/span>/g,'$1'); str = str.replace(/<span class="wikiexternallink">\s*([\s\S]+?)<\/span>/g,'$1'); str = str.replace(/<\/?p[^>]*>/gi, ""); str = str.replace(/<br \/>/g, '\r\n') return str;} | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/8e55ce7a56564f0073af38feee1652f106a5ef78/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js |
if(this.hasStyleClass(className)) | if (this.hasStyleClass(className)) | Element.prototype.removeStyleClass = function(className) { if(this.hasStyleClass(className)) this.className = this.className.replace(className, "");} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/75f7b1c539a192b149c18bc6570c80690c5510b0/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js |
function removeStyleClass(element, className) { if (hasStyleClass(element, className)) element.className = element.className.replace(className, ""); | Element.prototype.removeStyleClass = function(className) { if(this.hasStyleClass(className)) this.className = this.className.replace(className, ""); | function removeStyleClass(element, className){ if (hasStyleClass(element, className)) element.className = element.className.replace(className, "");} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/c6fb57961d884bd88831658bfe27448abb9cbe1c/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js |
Element.prototype.removeStyleClass = function(className) { | Element.prototype.removeStyleClass = function(className) { | Element.prototype.removeStyleClass = function(className) { if (this.hasStyleClass(className)) this.className = this.className.replace(className, "");} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js |
if ( isNaN(response) ) { alert(response); } | if ( isNaN(response) ) { ajaxDel.myResponseElement.innerHTML = response; return false; } | function removeThisItem(id) { var response = ajaxDel.response; if ( isNaN(response) ) { alert(response); } response = parseInt(response, 10); if ( -1 == response ) { ajaxDel.myResponseElement.innerHTML = "You don't have permission to do that."; } else if ( 0 == response ) { ajaxDel.myResponseElement.interHTML = "Something odd happened. Try refreshing the page? Either that or what you tried to delete never existed in the first place."; } else if ( 1 == response ) { theItem = document.getElementById(id); Fat.fade_element(id,null,700,'#FF3333'); setTimeout('theItem.parentNode.removeChild(theItem)', 705); var pos = getListPos(id); listItems.splice(pos,1); recolorList(pos); ajaxDel.myResponseElement.parentNode.removeChild(ajaxDel.myResponseElement); }} | 4679 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4679/be838f033246d511c7222c1acf8af17ed817366f/list-manipulation.js/buggy/web/wordpress/wp-admin/list-manipulation.js |
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/actionpack/lib/action_view/helpers/javascripts/effects.js |
|
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/clean/railties/html/javascripts/effects.js |
|
Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); | Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/railties/html/javascripts/effects.js |
|
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/railties/html/javascripts/effects.js |
|
Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); | Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/clean/railties/html/javascripts/effects.js |
|
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/clean/railties/html/javascripts/effects.js |
|
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/actionpack/lib/action_view/helpers/javascripts/effects.js |
|
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/actionpack/lib/action_view/helpers/javascripts/effects.js |
|
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/clean/actionpack/lib/action_view/helpers/javascripts/effects.js |
|
Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); | Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/railties/html/javascripts/effects.js |
|
Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); | Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/railties/html/javascripts/effects.js |
|
Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); | Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
pos += this.options.from; if(this.options.beforeUpdate) this.options.beforeUpdate(this); | pos += this.options.from; this.position = pos; this.event('beforeUpdate'); | render: function(pos) { if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; if(this.options.beforeUpdate) this.options.beforeUpdate(this); if(this.update) this.update(pos); if(this.options.afterUpdate) this.options.afterUpdate(this); }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/effects.js/buggy/public/javascripts/effects.js |
if(this.options.afterUpdate) this.options.afterUpdate(this); | this.event('afterUpdate'); | render: function(pos) { if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; if(this.options.beforeUpdate) this.options.beforeUpdate(this); if(this.update) this.update(pos); if(this.options.afterUpdate) this.options.afterUpdate(this); }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/effects.js/buggy/public/javascripts/effects.js |
Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); | Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); | Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
} else this.hide(); | } else { this.active = false; this.hide(); } | render: function() { if(this.entryCount > 0) { for (var i = 0; i < this.entryCount; i++) this.index==i ? Element.addClassName(this.getEntry(i),"selected") : Element.removeClassName(this.getEntry(i),"selected"); if(this.hasFocus) { this.show(); this.active = true; } } else this.hide(); }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/02a67c642d5c259059ac29f5901621395e8794d3/controls.js/clean/src/controls.js |
Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); | Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/clean/railties/html/javascripts/effects.js |
|
Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); | Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/clean/railties/html/javascripts/effects.js |
|
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/clean/railties/html/javascripts/effects.js |
|
Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); | Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/clean/railties/html/javascripts/effects.js |
|
if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) | if(this.entryCount > 0) { for (var i = 0; i < this.entryCount; i++) | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/controls.js/clean/public/javascripts/controls.js |
Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); | Element.addClassName(this.getEntry(i),"selected") : Element.removeClassName(this.getEntry(i),"selected"); | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/controls.js/clean/public/javascripts/controls.js |
if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); | if(this.hasFocus) { | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/controls.js/clean/public/javascripts/controls.js |
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/actionpack/lib/action_view/helpers/javascripts/effects.js |
|
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/actionpack/lib/action_view/helpers/javascripts/effects.js |
|
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/railties/html/javascripts/effects.js |
|
Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); | Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/actionpack/lib/action_view/helpers/javascripts/effects.js |
|
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/actionpack/lib/action_view/helpers/javascripts/effects.js |
|
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/actionpack/lib/action_view/helpers/javascripts/effects.js |
|
if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.position = pos; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); | if(this.state == 'running') { if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.position = pos; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); } | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.position = pos; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/497651aee5fda274d3814a3a2627d16782389136/effects.js/clean/src/effects.js |
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/clean/actionpack/lib/action_view/helpers/javascripts/effects.js |
|
Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); | Element.addClassName(this.get_entry(i),"selected") : Element.removeClassName(this.get_entry(i),"selected"); | render: function() { if(this.entry_count > 0) { for (var i = 0; i < this.entry_count; i++) this.index==i ? Element.Class.add(this.get_entry(i),"selected") : Element.Class.remove(this.get_entry(i),"selected"); if(this.has_focus) { if(this.get_current_entry().scrollIntoView) this.get_current_entry().scrollIntoView(false); this.show(); this.active = true; } } else this.hide(); }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/cadcd9e7144394ecc9df01961191d20e5e219a37/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/buggy/actionpack/lib/action_view/helpers/javascripts/effects.js |
|
this.position = pos; | render: function(pos) { if(this.state == 'idle') { this.state = 'running'; this.event('beforeSetup'); if(this.setup) this.setup(); this.event('afterSetup'); } if(this.options.transition) pos = this.options.transition(pos); pos *= (this.options.to-this.options.from); pos += this.options.from; this.event('beforeUpdate'); if(this.update) this.update(pos); this.event('afterUpdate'); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/clean/actionpack/lib/action_view/helpers/javascripts/effects.js |
|
for (i=nodeObj.nChildren-1; i>=0; i--) | for (i=nodeObj.nChildren-1; i>=0; i--) | function renderAllTree(nodeObj, parent) { var i=0; nodeObj.renderOb(parent) if (supportsDeferral) for (i=nodeObj.nChildren-1; i>=0; i--) renderAllTree(nodeObj.children[i], nodeObj.navObj) else for (i=0 ; i < nodeObj.nChildren; i++) renderAllTree(nodeObj.children[i], null)} | 5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js |
for (i=0 ; i < nodeObj.nChildren; i++) | for (i=0 ; i < nodeObj.nChildren; i++) | function renderAllTree(nodeObj, parent) { var i=0; nodeObj.renderOb(parent) if (supportsDeferral) for (i=nodeObj.nChildren-1; i>=0; i--) renderAllTree(nodeObj.children[i], nodeObj.navObj) else for (i=0 ; i < nodeObj.nChildren; i++) renderAllTree(nodeObj.children[i], null)} | 5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js |
function renderWhitespaceInTextContent(element) { if (element.nodeType == Node.TEXT_NODE) { element.data = element.data.replace(/\n|\r/g, " "); return; } // Don't modify PRE elements if (element.tagName == "PRE") { return; } // Handle inline element that force newlines if (tagIs(element, ["BR", "HR"])) { // Replace with a newline text element element.parentNode.replaceChild(document.createTextNode("\n"), element) } for (var i = 0; i < element.childNodes.length; i++) { var child = element.childNodes.item(i) renderWhitespaceInTextContent(child); } // Handle block elements that introduce newlines// -- From HTML spec://<!ENTITY % block// "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |// BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS"> if (tagIs(element, ["P", "DIV"])) { element.appendChild(document.createTextNode("\n"), element) }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/2e116bdabb8431234b230eaf1a46e3ca7c75fb67/htmlutils.js/buggy/code/javascript/core/scripts/htmlutils.js |
||
function renderWhitespaceInTextContent(element) { // Remove non-visible newlines in text nodes if (element.nodeType == Node.TEXT_NODE) { element.data = element.data.replace(/\n|\r|\t/g, " "); return; } if (element.nodeType == Node.COMMENT_NODE) { element.data = ""; return; } // Don't modify PRE elements if (element.tagName == "PRE") { return; } // Handle inline element that force newlines if (tagIs(element, ["BR", "HR"])) { // Replace this element with a newline text element element.parentNode.replaceChild(element.ownerDocument.createTextNode("\n"), element) } for (var i = 0; i < element.childNodes.length; i++) { var child = element.childNodes.item(i) renderWhitespaceInTextContent(child); } // Handle block elements that introduce newlines// -- From HTML spec://<!ENTITY % block// "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |// BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS"> if (tagIs(element, ["P", "DIV"])) { element.appendChild(element.ownerDocument.createTextNode("\n"), element) }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/409c1704b4cf230ddff8734c8f4835b0c22da435/htmlutils.js/clean/code/javascript/core/scripts/htmlutils.js |
||
element.parentNode.replaceChild(document.createTextNode("\n"), element) | element.parentNode.replaceChild(element.ownerDocument.createTextNode("\n"), element) | function renderWhitespaceInTextContent(element) { // Remove non-visible newlines in text nodes if (element.nodeType == Node.TEXT_NODE) { element.data = element.data.replace(/\n|\r|\t/g, " "); return; } // Don't modify PRE elements if (element.tagName == "PRE") { return; } // Handle inline element that force newlines if (tagIs(element, ["BR", "HR"])) { // Replace this element with a newline text element element.parentNode.replaceChild(document.createTextNode("\n"), element) } for (var i = 0; i < element.childNodes.length; i++) { var child = element.childNodes.item(i) renderWhitespaceInTextContent(child); } // Handle block elements that introduce newlines// -- From HTML spec://<!ENTITY % block// "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |// BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS"> if (tagIs(element, ["P", "DIV"])) { element.appendChild(document.createTextNode("\n"), element) }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/5a8720d27b78f43bc0804dedef6bc7cdabbcce34/htmlutils.js/clean/code/javascript/core/scripts/htmlutils.js |
element.appendChild(document.createTextNode("\n"), element) | element.appendChild(element.ownerDocument.createTextNode("\n"), element) | function renderWhitespaceInTextContent(element) { // Remove non-visible newlines in text nodes if (element.nodeType == Node.TEXT_NODE) { element.data = element.data.replace(/\n|\r|\t/g, " "); return; } // Don't modify PRE elements if (element.tagName == "PRE") { return; } // Handle inline element that force newlines if (tagIs(element, ["BR", "HR"])) { // Replace this element with a newline text element element.parentNode.replaceChild(document.createTextNode("\n"), element) } for (var i = 0; i < element.childNodes.length; i++) { var child = element.childNodes.item(i) renderWhitespaceInTextContent(child); } // Handle block elements that introduce newlines// -- From HTML spec://<!ENTITY % block// "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |// BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS"> if (tagIs(element, ["P", "DIV"])) { element.appendChild(document.createTextNode("\n"), element) }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/5a8720d27b78f43bc0804dedef6bc7cdabbcce34/htmlutils.js/clean/code/javascript/core/scripts/htmlutils.js |
function renderWhitespaceInTextContent(element) { // Remove non-visible newlines in text nodes if (element.nodeType == Node.TEXT_NODE) { element.data = element.data.replace(/\n|\r|\t/g, " "); return; } // Don't modify PRE elements if (element.tagName == "PRE") { return; } // Handle inline element that force newlines if (tagIs(element, ["BR", "HR"])) { // Replace this element with a newline text element element.parentNode.replaceChild(document.createTextNode("\n"), element) } for (var i = 0; i < element.childNodes.length; i++) { var child = element.childNodes.item(i) renderWhitespaceInTextContent(child); } // Handle block elements that introduce newlines// -- From HTML spec://<!ENTITY % block// "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |// BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS"> if (tagIs(element, ["P", "DIV"])) { element.appendChild(document.createTextNode("\n"), element) }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/5a8720d27b78f43bc0804dedef6bc7cdabbcce34/htmlutils.js/clean/code/javascript/core/scripts/htmlutils.js |
||
if (tinyMCE.isMSIE && !tinyMCE.isOpera) | var s, b, ex; if (tinyMCE.isRealIE) | repaint : function() { if (tinyMCE.isMSIE && !tinyMCE.isOpera) return; try { var s = this.selection; var b = s.getBookmark(true); this.getBody().style.display = 'none'; this.getDoc().execCommand('selectall', false, null); this.getSel().collapseToStart(); this.getBody().style.display = 'block'; s.moveToBookmark(b); } catch (ex) { // Ignore } }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
var s = this.selection; var b = s.getBookmark(true); | s = this.selection; b = s.getBookmark(true); | repaint : function() { if (tinyMCE.isMSIE && !tinyMCE.isOpera) return; try { var s = this.selection; var b = s.getBookmark(true); this.getBody().style.display = 'none'; this.getDoc().execCommand('selectall', false, null); this.getSel().collapseToStart(); this.getBody().style.display = 'block'; s.moveToBookmark(b); } catch (ex) { // Ignore } }, | 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 |
replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/clean/railties/html/javascripts/prototype.js |
replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js |
replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js |
replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/clean/railties/html/javascripts/prototype.js |
replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js |
replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/clean/railties/html/javascripts/prototype.js |
replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js |
replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js |
replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/clean/railties/html/javascripts/prototype.js |
replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js |
replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js |
replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); | replace: function(element, html) { element = $(element); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/clean/railties/html/javascripts/prototype.js |
tinyMCE.importPluginLanguagePack('searchreplace','en,tr,sv,zh_cn,fa,fr_ca,fr,de,pl,pt_br,cs,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,cy,es,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_SearchReplacePlugin={getInfo:function(){return{longname:'Search/Replace',author:'Moxiecode Systems',authorurl:'http: | tinyMCE.importPluginLanguagePack('searchreplace');var TinyMCE_SearchReplacePlugin={getInfo:function(){return{longname:'Search/Replace',author:'Moxiecode Systems AB',authorurl:'http: | tinyMCE.importPluginLanguagePack('searchreplace','en,tr,sv,zh_cn,fa,fr_ca,fr,de,pl,pt_br,cs,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,cy,es,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_SearchReplacePlugin={getInfo:function(){return{longname:'Search/Replace',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_searchreplace.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};},initInstance:function(inst){inst.addShortcut('ctrl','f','lang_searchreplace_search_desc','mceSearch',true);},getControlHTML:function(cn){switch(cn){case"search":return tinyMCE.getButtonHTML(cn,'lang_searchreplace_search_desc','{$pluginurl}/images/search.gif','mceSearch',true);case"replace":return tinyMCE.getButtonHTML(cn,'lang_searchreplace_replace_desc','{$pluginurl}/images/replace.gif','mceSearchReplace',true);}return"";},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();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");switch(command){case"mceResetSearch":tinyMCE.lastSearchRng=null;return true;case"mceSearch":if(user_interface){var template=new Array();if(value['replacestring']!=null){template['file']='../../plugins/searchreplace/replace.htm';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';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;if(body.innerHTML==""){alert(tinyMCE.getLang('lang_searchreplace_notfound'));return true;}if(value['replacemode']=="current"){replaceSel(value['string'],value['replacestring'],value['backwards']);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;}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;}return false;}};tinyMCE.addPlugin("searchreplace",TinyMCE_SearchReplacePlugin); | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin.js/buggy/mambots/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin.js |
instance.execCommand('mceInsertContent', false, str); | inst.execCommand('mceInsertContent', false, str); | function replaceSel(search_str, str, back) { instance.execCommand('mceInsertContent', false, str); } | 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 |
pattern = /\$\{(\w+)\}\.(.+)/; var variableIndex = str; var variableFunction=''; if(pattern.test(str)) { pieces = str.split('.'); variableIndex = pieces[0]; variableFunction = pieces[1]; | var stringResult = str; var match; while (match = stringResult.match(/\$\{(\w+)\}/)) { var variable = match[0]; var name = match[1]; var replacement = storedVars[name]; stringResult = stringResult.replace(variable, replacement); | function replaceVariables(str) { //handle the case of ${userid}.toUpper pattern = /\$\{(\w+)\}\.(.+)/; var variableIndex = str; var variableFunction=''; if(pattern.test(str)) { pieces = str.split('.'); variableIndex = pieces[0]; variableFunction = pieces[1]; } regex = /\$\{(\w+)\}/g; var variableValue = variableIndex.replace(regex, function(match, word) { return storedVars[word]; }); if( variableFunction == '') return variableValue; else { return eval("variableValue."+ eval("variableFunction") + "()" ); }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/9ca80d595050f0f7dc4cfc89733ae82e15cd4d72/selenium-fitrunner.js/buggy/code/javascript/selenium-fitrunner.js |
regex = /\$\{(\w+)\}/g; var variableValue = variableIndex.replace(regex, function(match, word) { return storedVars[word]; }); if( variableFunction == '') return variableValue; else { return eval("variableValue."+ eval("variableFunction") + "()" ); } | return stringResult; | function replaceVariables(str) { //handle the case of ${userid}.toUpper pattern = /\$\{(\w+)\}\.(.+)/; var variableIndex = str; var variableFunction=''; if(pattern.test(str)) { pieces = str.split('.'); variableIndex = pieces[0]; variableFunction = pieces[1]; } regex = /\$\{(\w+)\}/g; var variableValue = variableIndex.replace(regex, function(match, word) { return storedVars[word]; }); if( variableFunction == '') return variableValue; else { return eval("variableValue."+ eval("variableFunction") + "()" ); }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/9ca80d595050f0f7dc4cfc89733ae82e15cd4d72/selenium-fitrunner.js/buggy/code/javascript/selenium-fitrunner.js |
pattern = /\$\{(\w+)\}\.(.+)/; var variableIndex = str; var variableFunction=''; if(pattern.test(str)) { pieces = str.split('.'); variableIndex = pieces[0]; variableFunction = pieces[1]; | var stringResult = str; var match; while (match = stringResult.match(/\$\{(\w+)\}/)) { var variable = match[0]; var name = match[1]; var replacement = storedVars[name]; stringResult = stringResult.replace(variable, replacement); | function replaceVariables(str) { //handle the case of ${userid}.toUpper pattern = /\$\{(\w+)\}\.(.+)/; var variableIndex = str; var variableFunction=''; if(pattern.test(str)) { pieces = str.split('.'); variableIndex = pieces[0]; variableFunction = pieces[1]; } regex = /\$\{(\w+)\}/g; var variableValue = variableIndex.replace(regex, function(match, word) { return storedVars[word]; }); if( variableFunction == '') return variableValue; else { return eval("variableValue."+ eval("variableFunction") + "()" ); }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0e5e46a5e25dd4737acd757294020fdcd30abe85/selenium-fitrunner.js/buggy/code/javascript/selenium-fitrunner.js |
regex = /\$\{(\w+)\}/g; var variableValue = variableIndex.replace(regex, function(match, word) { return storedVars[word]; }); if( variableFunction == '') return variableValue; else { return eval("variableValue."+ eval("variableFunction") + "()" ); } | return stringResult; | function replaceVariables(str) { //handle the case of ${userid}.toUpper pattern = /\$\{(\w+)\}\.(.+)/; var variableIndex = str; var variableFunction=''; if(pattern.test(str)) { pieces = str.split('.'); variableIndex = pieces[0]; variableFunction = pieces[1]; } regex = /\$\{(\w+)\}/g; var variableValue = variableIndex.replace(regex, function(match, word) { return storedVars[word]; }); if( variableFunction == '') return variableValue; else { return eval("variableValue."+ eval("variableFunction") + "()" ); }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0e5e46a5e25dd4737acd757294020fdcd30abe85/selenium-fitrunner.js/buggy/code/javascript/selenium-fitrunner.js |
if (!add_marker) { | function report_post(f) { if (state!='reporting') return; /* Not in reporting mode, shouldn't be able to submit */ pass = true// if (!add_marker) {// pass = false// var str = '<b style="color: #ff0000">Please select somewhere</b>'// document.getElementById('show_where').innerHTML = str// document.getElementById('show_where2').innerHTML = str// } else { lng = add_marker.point.x lat = add_marker.point.y// } name = encodeURIComponent(f.name.value) email = encodeURIComponent(f.email.value) report_id = document.getElementById('report_id').value zoom = map.getZoomLevel() if (!name) { pass = false; field_error(f.name, 'nameerror', 'Please give your name') } else field_unerror(f.name, 'nameerror') if (!email) { pass = false; field_error(f.email, 'emailerror', 'Please give your email address') } else field_unerror(f.email, 'emailerror') if (!pass) return; var d = document.getElementById('report_submit') d.value = 'Submitting...'; d.disabled = true var r = GXmlHttp.create(); var url = "/cgi-bin/submit-correction.cgi" var post_data = "name="+name+";email="+email+";id="+report_id+";lng="+lng+";lat="+lat+";zoom="+zoom r.open("POST", url, true); r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded") r.onreadystatechange = function(){ if (r.readyState == 4) { x = r.responseXML var d = document.getElementById('report_submit') d.value = 'Submit'; d.disabled = false errors = x.getElementsByTagName('error') if (errors.length) { form = document.getElementById('f2') for (e=0; e<errors.length; e++) { field = errors[e].getAttribute('field') error = GXml.value(errors[e]) var errspan = '' if (field=='email') errspan = 'emailerror2' field_error(form[field], errspan, error) } return; } state = 'reportsuccess' document.getElementById('incorrect_entry').style.display='none' document.getElementById('report_success').style.display='block' map.removeOverlay(add_marker) add_marker = 0 } } r.send(post_data);} | 4679 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4679/e8e473e28658da9d9dcefa4b4ef3e61db39f326f/pop.js/clean/docs/js/pop.js |
|
lng = '' lat = '' } else { | function report_post(f) { if (state!='reporting') return; /* Not in reporting mode, shouldn't be able to submit */ pass = true// if (!add_marker) {// pass = false// var str = '<b style="color: #ff0000">Please select somewhere</b>'// document.getElementById('show_where').innerHTML = str// document.getElementById('show_where2').innerHTML = str// } else { lng = add_marker.point.x lat = add_marker.point.y// } name = encodeURIComponent(f.name.value) email = encodeURIComponent(f.email.value) report_id = document.getElementById('report_id').value zoom = map.getZoomLevel() if (!name) { pass = false; field_error(f.name, 'nameerror', 'Please give your name') } else field_unerror(f.name, 'nameerror') if (!email) { pass = false; field_error(f.email, 'emailerror', 'Please give your email address') } else field_unerror(f.email, 'emailerror') if (!pass) return; var d = document.getElementById('report_submit') d.value = 'Submitting...'; d.disabled = true var r = GXmlHttp.create(); var url = "/cgi-bin/submit-correction.cgi" var post_data = "name="+name+";email="+email+";id="+report_id+";lng="+lng+";lat="+lat+";zoom="+zoom r.open("POST", url, true); r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded") r.onreadystatechange = function(){ if (r.readyState == 4) { x = r.responseXML var d = document.getElementById('report_submit') d.value = 'Submit'; d.disabled = false errors = x.getElementsByTagName('error') if (errors.length) { form = document.getElementById('f2') for (e=0; e<errors.length; e++) { field = errors[e].getAttribute('field') error = GXml.value(errors[e]) var errspan = '' if (field=='email') errspan = 'emailerror2' field_error(form[field], errspan, error) } return; } state = 'reportsuccess' document.getElementById('incorrect_entry').style.display='none' document.getElementById('report_success').style.display='block' map.removeOverlay(add_marker) add_marker = 0 } } r.send(post_data);} | 4679 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4679/e8e473e28658da9d9dcefa4b4ef3e61db39f326f/pop.js/clean/docs/js/pop.js |
|
} | function report_post(f) { if (state!='reporting') return; /* Not in reporting mode, shouldn't be able to submit */ pass = true// if (!add_marker) {// pass = false// var str = '<b style="color: #ff0000">Please select somewhere</b>'// document.getElementById('show_where').innerHTML = str// document.getElementById('show_where2').innerHTML = str// } else { lng = add_marker.point.x lat = add_marker.point.y// } name = encodeURIComponent(f.name.value) email = encodeURIComponent(f.email.value) report_id = document.getElementById('report_id').value zoom = map.getZoomLevel() if (!name) { pass = false; field_error(f.name, 'nameerror', 'Please give your name') } else field_unerror(f.name, 'nameerror') if (!email) { pass = false; field_error(f.email, 'emailerror', 'Please give your email address') } else field_unerror(f.email, 'emailerror') if (!pass) return; var d = document.getElementById('report_submit') d.value = 'Submitting...'; d.disabled = true var r = GXmlHttp.create(); var url = "/cgi-bin/submit-correction.cgi" var post_data = "name="+name+";email="+email+";id="+report_id+";lng="+lng+";lat="+lat+";zoom="+zoom r.open("POST", url, true); r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded") r.onreadystatechange = function(){ if (r.readyState == 4) { x = r.responseXML var d = document.getElementById('report_submit') d.value = 'Submit'; d.disabled = false errors = x.getElementsByTagName('error') if (errors.length) { form = document.getElementById('f2') for (e=0; e<errors.length; e++) { field = errors[e].getAttribute('field') error = GXml.value(errors[e]) var errspan = '' if (field=='email') errspan = 'emailerror2' field_error(form[field], errspan, error) } return; } state = 'reportsuccess' document.getElementById('incorrect_entry').style.display='none' document.getElementById('report_success').style.display='block' map.removeOverlay(add_marker) add_marker = 0 } } r.send(post_data);} | 4679 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4679/e8e473e28658da9d9dcefa4b4ef3e61db39f326f/pop.js/clean/docs/js/pop.js |
|
debug.print("reportError: " + req); debug.print("reportError: " + resp); | debug.print("reportError: req = " + req); debug.print("reportError: resp = " + resp); debug.setEnabled(old); | function reportError(req, resp) { debug.setEnabled(true); debug.print("reportError: " + req); debug.print("reportError: " + resp);} | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/95f89c0957a3426915b61066d1c0793d3f8f49db/session.js/clean/session.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/railties/html/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/railties/html/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/railties/html/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/railties/html/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/railties/html/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, | this.url = url; if (this.options.method == 'get') this.url += '?' + parameters; Ajax.Responders.dispatch('onCreate', this, this.transport); this.transport.open(this.options.method, this.url, | request: function(url) { var parameters = this.options.parameters || ''; if (parameters.length > 0) parameters += '&_='; try { if (this.options.method == 'get') url += '?' + parameters; this.transport.open(this.options.method, url, this.options.asynchronous); if (this.options.asynchronous) { this.transport.onreadystatechange = this.onStateChange.bind(this); setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); } this.setRequestHeaders(); var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); } catch (e) { } }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.