rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 13
136k
| meta
stringlengths 132
347
|
---|---|---|---|
element.disabled = 'true'; | element.disabled = false; | enable: function(element) { element = $(element); element.blur(); element.disabled = 'true'; return element; } | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
element.disabled = 'true'; | element.disabled = false; | enable: function(element) { element = $(element); element.blur(); element.disabled = 'true'; return element; } | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element.disabled = 'true'; | element.disabled = false; | enable: function(element) { element = $(element); element.blur(); element.disabled = 'true'; return element; } | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element.disabled = 'true'; | element.disabled = false; | enable: function(element) { element = $(element); element.blur(); element.disabled = 'true'; return element; } | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element.disabled = 'true'; | element.disabled = false; | enable: function(element) { element = $(element); element.blur(); element.disabled = 'true'; return element; } | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
element.disabled = 'true'; | element.disabled = false; | enable: function(element) { element = $(element); element.blur(); element.disabled = 'true'; return element; } | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js |
element.disabled = 'true'; | element.disabled = false; | enable: function(element) { element = $(element); element.blur(); element.disabled = 'true'; return element; } | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element.disabled = 'true'; | element.disabled = false; | enable: function(element) { element = $(element); element.blur(); element.disabled = 'true'; return element; } | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
element.disabled = 'true'; | element.disabled = false; | enable: function(element) { element = $(element); element.blur(); element.disabled = 'true'; return element; } | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element.disabled = 'true'; | element.disabled = false; | enable: function(element) { element = $(element); element.blur(); element.disabled = 'true'; return element; } | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js |
element.disabled = 'true'; | element.disabled = false; | enable: function(element) { element = $(element); element.blur(); element.disabled = 'true'; return element; } | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
element.disabled = 'true'; | element.disabled = false; | enable: function(element) { element = $(element); element.blur(); element.disabled = 'true'; return element; } | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
text = text.replace(/&(nbsp|amp|quot|apos|lt|gt|\d+|x\d+);/g, '&$1;'); | text = text.replace(/&(nbsp|amp|quot|apos|lt|gt|\d+|x\d+)(;|\W)/g, '&$1$2'); | function encodeText(text) { var escapeXml = options.escapeXmlEntities; if (escapeXml == 'always') { // & -> & // & -> &amp; // " -> &quot; // -> text = text.replace(/&(\w+);/g, '%%tmp_entity%%$1%%'); text = text.replace(/%%tmp_entity%%(amp|apos|quot|lt|gt)%%/g, '&$1;'); text = text.replace(/&/g, '&'); text = text.replace(/%%tmp_entity%%(\w+)%%/g, '&$1;'); text = text.replace(/\'/g, '''); text = text.replace(/\"/g, '"'); } else if (escapeXml == 'html') { // & -> & // ' -> ' // \xA0 -> // & -> &amp; // " -> &quot; // -> &nbsp; text = text.replace(/&(nbsp|amp|quot|apos|lt|gt|\d+|x\d+);/g, '&$1;'); text = text.replace(/\xA0/g, ' '); } if (escapeXml == 'always' || escapeXml == 'partial') { text = text.replace(/</g, '<'); text = text.replace(/>/g, '>'); } if ('true' == options.escapeDollar) { text = text.replace(/([^\$])\$\{/g, '$1\\${'); // replace ${...} to \${...} text = text.replace(/^\$\{/g, '\\${'); // replace ${...} to \${...} text = text.replace(/\$\$\{/g, '${'); // replace $${...} to ${...} } return text;} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/d4407c1824cabe3f36e6919f482c9a080e2aae1d/html.js/buggy/src/content/formats/html.js |
text = text.replace(/\n/g, "<br />"); | function encodeText(text) { var escapeXml = options.escapeXmlEntities; if (escapeXml == 'always') { // & -> & // & -> &amp; // " -> &quot; // -> text = text.replace(/&(\w+);/g, '%%tmp_entity%%$1%%'); text = text.replace(/%%tmp_entity%%(amp|apos|quot|lt|gt)%%/g, '&$1;'); text = text.replace(/&/g, '&'); text = text.replace(/%%tmp_entity%%(\w+)%%/g, '&$1;'); text = text.replace(/\'/g, '''); text = text.replace(/\"/g, '"'); } else if (escapeXml == 'html') { // & -> & // ' -> ' // \xA0 -> // & -> &amp; // " -> &quot; // -> &nbsp; text = text.replace(/&(nbsp|amp|quot|apos|lt|gt|\d+|x\d+)(;|\W)/g, '&$1$2'); text = text.replace(/\xA0/g, ' '); text = text.replace(/ {2,}/g, function(str) { var result = ''; for (var i = 0; i < str.length; i++) { result += ' '; } return result; }); // convert multiple spaces to nbsp } if (escapeXml == 'always' || escapeXml == 'partial') { text = text.replace(/</g, '<'); text = text.replace(/>/g, '>'); } if ('true' == options.escapeDollar) { text = text.replace(/([^\$])\$\{/g, '$1\\${'); // replace ${...} to \${...} text = text.replace(/^\$\{/g, '\\${'); // replace ${...} to \${...} text = text.replace(/\$\$\{/g, '${'); // replace $${...} to ${...} } return text;} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/f9e10fae39b92cc24106a3c51c969e4984378223/html.js/clean/src/content/formats/html.js |
|
text = text.replace(/ {2,}/g, function(str) { var result = ''; for (var i = 0; i < str.length; i++) { result += ' '; } return result; }); | function encodeText(text) { var escapeXml = options.escapeXmlEntities; if (escapeXml == 'always') { // & -> & // & -> &amp; // " -> &quot; // -> text = text.replace(/&(\w+);/g, '%%tmp_entity%%$1%%'); text = text.replace(/%%tmp_entity%%(amp|apos|quot|lt|gt)%%/g, '&$1;'); text = text.replace(/&/g, '&'); text = text.replace(/%%tmp_entity%%(\w+)%%/g, '&$1;'); text = text.replace(/\'/g, '''); text = text.replace(/\"/g, '"'); } else if (escapeXml == 'html') { // & -> & // ' -> ' // \xA0 -> // & -> &amp; // " -> &quot; // -> &nbsp; text = text.replace(/&(nbsp|amp|quot|apos|lt|gt|\d+|x\d+)(;|\W)/g, '&$1$2'); text = text.replace(/\xA0/g, ' '); } if (escapeXml == 'always' || escapeXml == 'partial') { text = text.replace(/</g, '<'); text = text.replace(/>/g, '>'); } if ('true' == options.escapeDollar) { text = text.replace(/([^\$])\$\{/g, '$1\\${'); // replace ${...} to \${...} text = text.replace(/^\$\{/g, '\\${'); // replace ${...} to \${...} text = text.replace(/\$\$\{/g, '${'); // replace $${...} to ${...} } return text;} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4bfa7692cc2103f89695fba65b7284a7b4aeb230/html.js/clean/src/content/formats/html.js |
|
document.removeEvent('mousemove', this.move.bindWithEvent(this)); document.removeEvent('mouseup', this.end.bind(this, el)); | document.removeEvent('mousemove', this.bound.move); document.removeEvent('mouseup', this.bound.end); | end: function(el){ document.removeEvent('mousemove', this.move.bindWithEvent(this)); document.removeEvent('mouseup', this.end.bind(this, el)); this.fireEvent('onComplete', el); } | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/8ac103886cf6d33ed267fc2e146d71159138c0d8/Sortables.js/clean/Plugins/Sortables.js |
document.removeEvent('mousemove', this.move.bindWithEvent(this)); document.removeEvent('mouseup', this.end.bind(this, el)); | document.removeEvent('mousemove', this.bound.move); document.removeEvent('mouseup', this.bound.end); | end: function(el){ document.removeEvent('mousemove', this.move.bindWithEvent(this)); document.removeEvent('mouseup', this.end.bind(this, el)); this.fireEvent('onComplete', el); } | 6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/8ac103886cf6d33ed267fc2e146d71159138c0d8/Sortables.js/clean/Plugins/Sortables.js |
Drag.obj.root.onDragEnd( parseInt(Drag.obj.root.style[Drag.obj.hmode ? "left" : "right"]), parseInt(Drag.obj.root.style[Drag.obj.vmode ? "top" : "bottom"])); | Drag.obj.root.onDragEnd( parseInt(Drag.obj.root.style[Drag.obj.hmode ? "left" : "right"]), parseInt(Drag.obj.root.style[Drag.obj.vmode ? "top" : "bottom"])); | end : function() { document.onmousemove = null; document.onmouseup = null; Drag.obj.root.onDragEnd( parseInt(Drag.obj.root.style[Drag.obj.hmode ? "left" : "right"]), parseInt(Drag.obj.root.style[Drag.obj.vmode ? "top" : "bottom"])); Drag.obj = null; }, | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/f407cff01a2b1afdae1bacfe7c1673bba412f8e8/webconf.js/clean/weblets/webconf/webconf.js |
var sz = compute_height() + "px"; | var id = (win.inFrame) ? iframe : around; var tmp = document.getElementById(id); var sz = compute_height() + "px"; tmp.style.display= "block"; tmp.style.height = sz; | function end_resize(w, h) { var sz = compute_height() + "px"; el.style.height = sz; if (win.inFrame) { var ifrm = document.getElementById(iframe); ifrm.style.display= "block"; ifrm.style.height = sz; el.style.opacity= 1; } } | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/79884d39bb3ebe81f6eb6fd4fc692d536ca815da/hop-window.js/clean/share/hop-window.js |
if (win.inFrame) { var ifrm = document.getElementById(iframe); ifrm.style.display= "block"; ifrm.style.height = sz; el.style.opacity= 1; } | el.style.opacity= 1; | function end_resize(w, h) { var sz = compute_height() + "px"; el.style.height = sz; if (win.inFrame) { var ifrm = document.getElementById(iframe); ifrm.style.display= "block"; ifrm.style.height = sz; el.style.opacity= 1; } } | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/79884d39bb3ebe81f6eb6fd4fc692d536ca815da/hop-window.js/clean/share/hop-window.js |
Draggables.notify('onEnd'); | Draggables.notify('onEnd', this); | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
if(this.options.revert && this.options.reverteffect) { | var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
Draggables.notify('onEnd'); | Draggables.notify('onEnd', this); | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
if(this.options.revert && this.options.reverteffect) { | var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
Draggables.notify('onEnd'); | Draggables.notify('onEnd', this); | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
if(this.options.revert && this.options.reverteffect) { | var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
Draggables.notify('onEnd'); | Draggables.notify('onEnd', this); | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
if(this.options.revert && this.options.reverteffect) { | var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
Draggables.notify('onEnd'); | Draggables.notify('onEnd', this); | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
if(this.options.revert && this.options.reverteffect) { | var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
Draggables.notify('onEnd'); | Draggables.notify('onEnd', this); | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
if(this.options.revert && this.options.reverteffect) { | var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
Draggables.notify('onEnd'); | Draggables.notify('onEnd', this); | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
if(this.options.revert && this.options.reverteffect) { | var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
Draggables.notify('onEnd'); | Draggables.notify('onEnd', this); | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
if(this.options.revert && this.options.reverteffect) { | var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
Draggables.notify('onEnd'); | Draggables.notify('onEnd', this); | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
if(this.options.revert && this.options.reverteffect) { | var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
Draggables.notify('onEnd'); | Draggables.notify('onEnd', this); | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
if(this.options.revert && this.options.reverteffect) { | var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
Draggables.notify('onEnd'); | Draggables.notify('onEnd', this); | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
if(this.options.revert && this.options.reverteffect) { | var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
Draggables.notify('onEnd'); | Draggables.notify('onEnd', this); | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
if(this.options.revert && this.options.reverteffect) { | var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { | endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); Event.stop(event); } this.active = false; this.dragging = false; }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/cadcd9e7144394ecc9df01961191d20e5e219a37/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
afterFinish: function(){ Draggable._dragging[element] = false } | afterFinish: function(){ Draggable._dragging[element] = false } | endeffect: function(element) { var toOpacity = typeof element._opacity == 'number' ? element._opacity : 1.0; new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity, queue: {scope:'_draggable', position:'end'}, afterFinish: function(){ Draggable._dragging[element] = false } }); }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/b49b7d11801b2beff43cde091e9810cb9fe928d8/dragdrop.js/buggy/src/dragdrop.js |
new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
endeffect: function(element) { new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { var toOpacity = typeof element._opacity == 'number' ? element._opacity : 1.0 new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity}); | endeffect: function(element) { new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/35af5ed0d4845cd1a189da5a69f5ae0468c4f946/dragdrop.js/clean/src/dragdrop.js |
new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity, queue: {scope:'_draggable', position:'end'}, afterFinish: function(){ Draggable._dragging[element] = false } }); | endeffect: function(element) { var toOpacity = typeof element._opacity == 'number' ? element._opacity : 1.0; new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity}); }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/c31fdc38f767373d22b3dd5a5072aa4962ca5b65/dragdrop.js/clean/src/dragdrop.js |
new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
var toOpacity = typeof element._opacity == 'number' ? element._opacity : 1.0 | var toOpacity = typeof element._opacity == 'number' ? element._opacity : 1.0; | endeffect: function(element) { var toOpacity = typeof element._opacity == 'number' ? element._opacity : 1.0 new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity}); }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/2acfab97ba8b45e3591acad18ce7dfdc513694dd/dragdrop.js/buggy/src/dragdrop.js |
new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
endeffect: function(element) { new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { var toOpacity = typeof element._opacity == 'number' ? element._opacity : 1.0 new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity}); | endeffect: function(element) { new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 2320 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2320/19200c26046dc00f15305e03b7c1d28b4c38c952/dragdrop.js/clean/web/scripts/dragdrop.js |
new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0}); | endeffect: function(element) { new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
var nodes = document.getElementsByClassName(accentClass); for (var i = 0; i < nodes.length; i++) { debug.print(label + " node for accent-color = " + nodes[i].nodeName); nodes[i].style.backgroundColor = this.accentColor; | var frames = new Array(document, parent.frames[1].document ); var nodes; debug.print(label + "frames " + frames.length); for (var i = 0; i < frames.length; i++) { debug.print(label + "frame " + i + " = " + frames[i]); nodes = frames[i].getElementsByClassName(accentClass); for (var j = 0; j < nodes.length; j++) { debug.print(label + "node for accent-color = " + nodes[j].nodeName); nodes[j].style.backgroundColor = this.accentColor; } | this.enforce = function() { var label = "PolicyClass.enforce: "; debug.print(label + "titleNode = " + this.titleNode) debug.print(label + "title = " + this.title) if (null != this.titleNode && null != this.title && "" != this.title) { // enforce title Element.update(this.titleNode, ''); this.titleNode.appendChild(document.createTextNode(this.title)); } if (null != this.accentColor && "" != this.accentColor) { // enforce accentColor, on accent class only var nodes = document.getElementsByClassName(accentClass); for (var i = 0; i < nodes.length; i++) { debug.print(label + " node for accent-color = " + nodes[i].nodeName); nodes[i].style.backgroundColor = this.accentColor; } } } | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d247a1b6dacb7417d1b16dd5d23f8786e47c143b/query.js/buggy/query.js |
parent.frames[1].document ); | parent.frames[1].document); | this.enforce = function() { var label = "PolicyClass.enforce: "; debug.print(label + "titleNode = " + this.titleNode) debug.print(label + "title = " + this.title) if (null != this.titleNode && null != this.title && "" != this.title) { // enforce title Element.update(this.titleNode, ''); this.titleNode.appendChild(document.createTextNode(this.title)); } if (null != this.accentColor && "" != this.accentColor) { // enforce accentColor, on accent class only var frames = new Array(document, parent.frames[1].document ); var nodes; debug.print(label + "frames " + frames.length); for (var i = 0; i < frames.length; i++) { debug.print(label + "frame " + i + " = " + frames[i]); nodes = frames[i].getElementsByClassName(accentClass); for (var j = 0; j < nodes.length; j++) { debug.print(label + "node for accent-color = " + nodes[j].nodeName); nodes[j].style.backgroundColor = this.accentColor; } } } } | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/9c5f02369bb30e42ba4bb68262eabcbd532d7b22/query.js/clean/query.js |
alert(data_str+", "+data_str.length); | function enforceLength(data_str, max_len){ alert(data_str+", "+data_str.length); if(data_str.length>max_len) { data_str = data_str.substring(0, max_len); } return data_str;} | 6523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6523/657db1fcf80e70cfd05b34ca25fd4d27a7056684/functions.js/buggy/trunk/opendocman/functions.js |
|
!new GM_PrefManager().getValue("warnedWindowsEditor")) | !prefMan.getValue("warnedWindowsEditor")) | function ensureWindowsAssoc() { if (navigator.userAgent.match(/\bwindows\b/i) && !new GM_PrefManager().getValue("warnedWindowsEditor")) { alert("Hello! Looks like you're on Windows and that this is the your " + "first time editing a user script.\n\nTake this opportunity " + "to verify that you have associated either the .user.js or " + "the .js extension with a text editor on your computer. " + "Otherwise, you may get funny errors.\n\nWhen you're done, " + "come back here and press OK."); prefMan.setValue("warnedWindowsEditor", true); }} | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/bb15ba07d80451d03ef5be42d32c71c9f78959f0/utils.js/clean/src/content/utils.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/railties/html/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/ce69ee676a665c2710e7b2f1edf9376c3a2ca806/controls.js/clean/src/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
if (arguments.length > 1) { Event.stop(arguments[0]); } | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/8d9918aa2f5586330129b9cf14a2835c9d4976c1/controls.js/clean/src/controls.js |
|
Field.scrollFreeActivate(this.editField); | if (!this.options.loadTextURL) Field.scrollFreeActivate(this.editField); | enterEditMode: function(evt) { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.createForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.scrollFreeActivate(this.editField); // stop the event to avoid a page refresh in Safari if (evt) { Event.stop(evt); } return false; }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/4abf8e97f33ebd9225283c2bf12995e743c30ca3/controls.js/clean/src/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/railties/html/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
enterEditMode: function() { | enterEditMode: function(evt) { | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.createForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/63243935156e2e33086b06cf2692ca1dffa9c28f/controls.js/buggy/src/controls.js |
Field.focus(this.editField); | Field.scrollFreeActivate(this.editField); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.createForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/63243935156e2e33086b06cf2692ca1dffa9c28f/controls.js/buggy/src/controls.js |
if (arguments.length > 1) { Event.stop(arguments[0]); | if (evt) { Event.stop(evt); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.createForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/63243935156e2e33086b06cf2692ca1dffa9c28f/controls.js/buggy/src/controls.js |
return false; | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.createForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/63243935156e2e33086b06cf2692ca1dffa9c28f/controls.js/buggy/src/controls.js |
|
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/railties/html/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
this.form = this.getForm(); | this.createForm(); | enterEditMode: function() { if (this.saving) return; if (this.editing) return; this.editing = true; this.onEnterEditMode(); if (this.options.externalControl) { Element.hide(this.options.externalControl); } Element.hide(this.element); this.form = this.getForm(); this.element.parentNode.insertBefore(this.form, this.element); Field.focus(this.editField); // stop the event to avoid a page refresh in Safari if (arguments.length > 1) { Event.stop(arguments[0]); } }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
return e.innerHTML; | return e.firstChild.nodeValue; | entityDecode : function(s) { var e = document.createElement("div"); e.innerHTML = s; return e.innerHTML; }, | 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 errors = this['errors']; var extra1 = this['extra']; | var errors = this.errors; var extra1 = this.extra; | function eob_as_array (extra2) { var errors = this['errors']; var extra1 = this['extra']; if (! extra2) extra2 = new Array(); var title = eob_get_val('as_array_title', extra2, extra1, 'Please correct the following items:'); /// if there are heading items then we may end up needing a prefix var has_headings; if (title) has_headings = 1; else { for (var i = 0; i < errors.length; i ++) { if (typeof(errors[i]) != 'string') continue; has_headings = 1; break; } } var prefix = eob_get_val('as_array_prefix', extra2, extra1, has_headings ? ' ' : ''); /// get the array ready var arr = new Array(); if (title && title.length) arr[arr.length] = title; /// add the errors var found = new Array(); for (var i = 0; i < errors.length; i ++) { if (typeof(errors[i]) == 'string') { arr[arr.length] = errors[i]; found = new Array(); } else { var text = this.get_error_text(errors[i]); if (found[text]) continue; found[text] = 1; arr[arr.length] = prefix + text; } } return arr;} | 5443 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5443/36b6d6336f71148a2949342b6bf1af36a21992c1/validate.js/buggy/lib/CGI/Ex/validate.js |
function eob_as_array (extra2) { var errors = this.errors; var extra1 = this.extra; if (! extra2) extra2 = new Array(); var title = eob_get_val('as_array_title', extra2, extra1, 'Please correct the following items:'); /// if there are heading items then we may end up needing a prefix var has_headings; if (title) has_headings = 1; else { for (var i = 0; i < errors.length; i ++) { if (typeof(errors[i]) != 'string') continue; has_headings = 1; break; } } var prefix = eob_get_val('as_array_prefix', extra2, extra1, has_headings ? ' ' : ''); /// get the array ready var arr = new Array(); if (title && title.length) arr[arr.length] = title; /// add the errors var found = new Array(); for (var i = 0; i < errors.length; i ++) { if (typeof(errors[i]) == 'string') { arr[arr.length] = errors[i]; found = new Array(); } else { var text = this.get_error_text(errors[i]); if (found[text]) continue; found[text] = 1; arr[arr.length] = prefix + text; } } return arr;} | 5443 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5443/5a8cf4dc4af49bd5e7bbfeb162f198028d1fb87f/validate.js/clean/lib/CGI/Ex/validate.js |
||
for (var key in ret) ret[key] = header + ret[key].join(joiner) + footer; | for (var key in ret) { if (key == 'extend') continue; ret[key] = header + ret[key].join(joiner) + footer; } | function eob_as_hash (extra2) { var errors = this.errors; var extra1 = this.extra; if (! extra2) extra2 = new Array(); var suffix = eob_get_val('as_hash_suffix', extra2, extra1, '_error'); var joiner = eob_get_val('as_hash_join', extra2, extra1, '<br />'); /// now add to the hash var found = new Array(); var ret = new Array(); for (var i = 0; i < errors.length; i ++) { if (typeof(errors[i]) == 'string') continue; if (! errors[i].length) continue; var field = errors[i][0]; var type = errors[i][1]; var field_val = errors[i][2]; var ifs_match = errors[i][3]; if (! field) return alert("Missing field name"); if (field_val['delegate_error']) { field = field_val['delegate_error']; field = field.replace(new RegExp('\\$(\\d+)','g'), function (all, N) { if (typeof(ifs_match) != 'object' || typeof(ifs_match[N]) == 'undefined') return '' return ifs_match[N]; }); } var text = this.get_error_text(errors[i]); if (! found[field]) found[field] = new Array(); if (found[field][text]) continue; found[field][text] = 1; field += suffix; if (! ret[field]) ret[field] = new Array(); ret[field].push(text); } /// allow for elements returned as if (joiner) { var header = eob_get_val('as_hash_header', extra2, extra1, ''); var footer = eob_get_val('as_hash_footer', extra2, extra1, ''); for (var key in ret) ret[key] = header + ret[key].join(joiner) + footer; } return ret;} | 5443 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5443/1a05f61f3c7ba63bdabb76519c90f0a9e8e91f69/validate.js/buggy/lib/CGI/Ex/validate.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.