rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 13
136k
| meta
stringlengths 132
347
|
---|---|---|---|
OpenLayers.Tile.prototype.initialize.apply(this, arguments); | OpenLayers.Tile.prototype.initialize.apply(this, newArguments); | initialize: function(layer, position, bounds, urls, size) { var newArguments = [layer, position, bounds, null, size]; OpenLayers.Tile.prototype.initialize.apply(this, arguments); this.urls = urls; this.features = new Array(); }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/a046bb2b3198111d4f10d490b054d5cece535ac1/WFS.js/clean/lib/OpenLayers/Tile/WFS.js |
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); | initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array; | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
loadingClassName: 'inplaceeditor-loading', | initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } }, | 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 |
|
OpenLayers.Layer.prototype.initialize.apply(this, [name]); | var newArguments = arguments; if (arguments.length > 0) { newArguments = [name]; } OpenLayers.Layer.prototype.initialize.apply(this, newArguments); | initialize: function(name, url, params) { OpenLayers.Layer.prototype.initialize.apply(this, [name]); this.url = url; this.params = params; }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c59e66f1671af9ba4b8ddad52f80e52f5dfe6ac8/Grid.js/clean/lib/OpenLayers/Layer/Grid.js |
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); | new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } ); | initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/clean/railties/html/javascripts/prototype.js |
this.setSliderValue(parseInt(this.options.sliderValue) || 0); | initialize: function(handle, track, options) { this.handle = $(handle); this.track = $(track); this.options = options || {}; this.axis = this.options.axis || 'horizontal'; this.increment = this.options.increment || 1; this.step = parseInt(this.options.step) || 1; this.value = 0; var defaultMaximum = Math.round(this.track.offsetWidth / this.increment); if(this.isVertical()) defaultMaximum = Math.round(this.track.offsetHeight / this.increment); this.maximum = this.options.maximum || defaultMaximum; this.minimum = this.options.minimum || 0; // Will be used to align the handle onto the track, if necessary this.alignX = parseInt (this.options.alignX) || 0; this.alignY = parseInt (this.options.alignY) || 0; // Zero out the slider position this.setCurrentLeft(Position.cumulativeOffset(this.track)[0] - Position.cumulativeOffset(this.handle)[0] + this.alignX); this.setCurrentTop(this.trackTop() - Position.cumulativeOffset(this.handle)[1] + this.alignY); this.offsetX = 0; this.offsetY = 0; this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); this.originalZ = parseInt(this.handle.style.zIndex || "0"); // Prepopulate Slider value this.setSliderValue(parseInt(this.options.sliderValue) || 0); this.active = false; this.dragging = false; this.disabled = false; // FIXME: use css this.handleImage = $(this.options.handleImage) || false; this.handleDisabled = this.options.handleDisabled || false; this.handleEnabled = false; if(this.handleImage) this.handleEnabled = this.handleImage.src || false; if(this.options.disabled) this.setDisabled(); // Value Array this.values = this.options.values || false; // Add method to validate and sort?? Element.makePositioned(this.handle); // fix IE this.eventMouseDown = this.startDrag.bindAsEventListener(this); this.eventMouseUp = this.endDrag.bindAsEventListener(this); this.eventMouseMove = this.update.bindAsEventListener(this); this.eventKeypress = this.keyPress.bindAsEventListener(this); Event.observe(this.handle, "mousedown", this.eventMouseDown); Event.observe(document, "mouseup", this.eventMouseUp); Event.observe(document, "mousemove", this.eventMouseMove); Event.observe(document, "keypress", this.eventKeypress); }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/cbfdecdaa602d7c2b7ff4f3e8c1ced36d4b5ffde/slider.js/clean/src/slider.js |
|
if(this.values) { this.minimum = this.values.min(); this.maximum = this.values.max(); } this.setSliderValue(parseInt(this.options.sliderValue) || this.minimum); | initialize: function(handle, track, options) { this.handle = $(handle); this.track = $(track); this.options = options || {}; this.axis = this.options.axis || 'horizontal'; this.increment = this.options.increment || 1; this.step = parseInt(this.options.step) || 1; this.value = 0; var defaultMaximum = Math.round(this.track.offsetWidth / this.increment); if(this.isVertical()) defaultMaximum = Math.round(this.track.offsetHeight / this.increment); this.maximum = this.options.maximum || defaultMaximum; this.minimum = this.options.minimum || 0; // Will be used to align the handle onto the track, if necessary this.alignX = parseInt (this.options.alignX) || 0; this.alignY = parseInt (this.options.alignY) || 0; // Zero out the slider position this.setCurrentLeft(Position.cumulativeOffset(this.track)[0] - Position.cumulativeOffset(this.handle)[0] + this.alignX); this.setCurrentTop(this.trackTop() - Position.cumulativeOffset(this.handle)[1] + this.alignY); this.offsetX = 0; this.offsetY = 0; this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); this.originalZ = parseInt(this.handle.style.zIndex || "0"); // Prepopulate Slider value this.setSliderValue(parseInt(this.options.sliderValue) || 0); this.active = false; this.dragging = false; this.disabled = false; // FIXME: use css this.handleImage = $(this.options.handleImage) || false; this.handleDisabled = this.options.handleDisabled || false; this.handleEnabled = false; if(this.handleImage) this.handleEnabled = this.handleImage.src || false; if(this.options.disabled) this.setDisabled(); // Value Array this.values = this.options.values || false; // Add method to validate and sort?? Element.makePositioned(this.handle); // fix IE this.eventMouseDown = this.startDrag.bindAsEventListener(this); this.eventMouseUp = this.endDrag.bindAsEventListener(this); this.eventMouseMove = this.update.bindAsEventListener(this); this.eventKeypress = this.keyPress.bindAsEventListener(this); Event.observe(this.handle, "mousedown", this.eventMouseDown); Event.observe(document, "mouseup", this.eventMouseUp); Event.observe(document, "mousemove", this.eventMouseMove); Event.observe(document, "keypress", this.eventKeypress); }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/cbfdecdaa602d7c2b7ff4f3e8c1ced36d4b5ffde/slider.js/clean/src/slider.js |
|
this.id = (id ? id : 'f'+Math.Random()); | this.id = (id ? id : 'f'+Math.random()); | initialize: function(layer, lonlat, data, id) { this.layer = layer; this.lonlat = lonlat; this.data = data; this.id = (id ? id : 'f'+Math.Random()); }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/9256cdc2074bbbb49958351bf8baf885bf151a4b/Feature.js/buggy/lib/OpenLayers/Feature.js |
this.parent(options); | this.parent(this.options); | initialize: function(el, options){ this.element = $(el).setStyle('margin', 0); this.wrapper = new Element('div').injectAfter(this.element).setStyle('overflow', 'hidden').adopt(this.element); this.setOptions({'mode': 'vertical'}, options); this.now = []; this.parent(options); }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/fcc80ca504adb31cd63f24e4b73ce9e400a788bc/Fx.Slide.js/clean/Effects/Fx.Slide.js |
Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 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.handleLength = this.isVertical() ? this.handles[0].offsetHeight : this.handles[0].offsetWidth; | initialize: function(handle, track, options) { var slider = this; if(handle instanceof Array) { this.handles = handle.collect( function(e) { return $(e) }); } else { this.handles = [$(handle)]; } this.track = $(track); this.options = options || {}; this.axis = this.options.axis || 'horizontal'; this.increment = this.options.increment || 1; this.step = parseInt(this.options.step || '1'); this.range = this.options.range || $R(0,1); this.value = 0; // assure backwards compat this.values = this.handles.map( function() { return 0 }); this.spans = this.options.spans ? this.options.spans.map(function(s){ return $(s) }) : false; this.options.startSpan = $(this.options.startSpan || null); this.options.endSpan = $(this.options.endSpan || null); this.restricted = this.options.restricted || false; this.maximum = this.options.maximum || this.range.end; this.minimum = this.options.minimum || this.range.start; // Will be used to align the handle onto the track, if necessary this.alignX = parseInt(this.options.alignX || '0'); this.alignY = parseInt(this.options.alignY || '0'); this.trackLength = this.maximumOffset() - this.minimumOffset(); this.active = false; this.dragging = false; this.disabled = false; if(this.options.disabled) this.setDisabled(); // Allowed values array this.allowedValues = this.options.values ? this.options.values.sortBy(Prototype.K) : false; if(this.allowedValues) { this.minimum = this.allowedValues.min(); this.maximum = this.allowedValues.max(); } this.eventMouseDown = this.startDrag.bindAsEventListener(this); this.eventMouseUp = this.endDrag.bindAsEventListener(this); this.eventMouseMove = this.update.bindAsEventListener(this); // Initialize handles in reverse (make sure first handle is active) this.handles.each( function(h,i) { i = slider.handles.length-1-i; slider.setValue(parseFloat( (slider.options.sliderValue instanceof Array ? slider.options.sliderValue[i] : slider.options.sliderValue) || slider.range.start), i); Element.makePositioned(h); // fix IE Event.observe(h, "mousedown", slider.eventMouseDown); }); Event.observe(this.track, "mousedown", this.eventMouseDown); Event.observe(document, "mouseup", this.eventMouseUp); Event.observe(document, "mousemove", this.eventMouseMove); this.initialized = true; }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/5fa81acc3e4e722f3224e6b94fd578c055cba661/slider.js/buggy/src/slider.js |
|
for (var i = 0; i < this.eventTypes.length; i++) { this.listeners[ this.eventTypes[i] ] = []; | if (eventTypes) { for (var i = 0; i < this.eventTypes.length; i++) { this.listeners[ this.eventTypes[i] ] = []; } | initialize: function (object, div, eventTypes) { this.listeners = {}; this.object = object; this.div = div; this.eventTypes = eventTypes; for (var i = 0; i < this.eventTypes.length; i++) { // create a listener list for every custom application event this.listeners[ this.eventTypes[i] ] = []; } for (var i = 0; i < this.BROWSER_EVENTS.length; i++) { var eventType = this.BROWSER_EVENTS[i]; // every browser event has a corresponding application event // (whether it's listened for or not). this.listeners[ eventType ] = []; Event.observe(div, eventType, this.handleBrowserEvent.bindAsEventListener(this)); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/e843291bce0e5c48a32a5289ab2a4aca29a6b9d1/Events.js/clean/lib/OpenLayers/Events.js |
type = type || 'rgb'; | type = type || (color.push) ? 'rgb' : 'hex'; | initialize: function(color, type){ if (color.isColor) return color; type = type || 'rgb'; var rgb, hsb; switch(type){ case 'rgb': rgb = color; hsb = rgb.rgbToHsb(); break; case 'hsb': rgb = color.hsbToRgb(); hsb = color; break; default: rgb = color.hexToRgb(true); hsb = rgb.rgbToHsb(); break; } rgb.hsb = hsb; return Object.extend(rgb, Color.prototype); }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/a22dce4bef6b4ef18ff83107a76bdac505312ab0/Color.js/clean/Addons/Color.js |
default: | case 'hex': | initialize: function(color, type){ if (color.isColor) return color; type = type || 'rgb'; var rgb, hsb; switch(type){ case 'rgb': rgb = color; hsb = rgb.rgbToHsb(); break; case 'hsb': rgb = color.hsbToRgb(); hsb = color; break; default: rgb = color.hexToRgb(true); hsb = rgb.rgbToHsb(); break; } rgb.hsb = hsb; return Object.extend(rgb, Color.prototype); }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/a22dce4bef6b4ef18ff83107a76bdac505312ab0/Color.js/clean/Addons/Color.js |
this.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); | if ((options == null) ||(options.isBaseLayer == null)) { this.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); } | initialize: function(name, url, params, options) { var newArguments = new Array(); if (arguments.length > 0) { //uppercase params params = OpenLayers.Util.upperCaseObject(params); newArguments.push(name, url, params, options); } OpenLayers.Layer.HTTPRequest.prototype.initialize.apply(this, newArguments); if (arguments.length > 0) { OpenLayers.Util.applyDefaults( this.params, OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS) ); } // if the layer is transparent, it will be an overlay this.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/e90698244391363cb32d4bb76d9c0005a421bb2b/Untiled.js/buggy/lib/OpenLayers/Layer/WMS/Untiled.js |
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); | new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } ); | initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/buggy/railties/html/javascripts/prototype.js |
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); | new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } ); | initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
handleLineBreaks: true, | initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/8d9918aa2f5586330129b9cf14a2835c9d4976c1/controls.js/clean/src/controls.js |
|
initialize: function(element, callback) { this.element = $(element); this.callback = callback; | initialize: function() { this.element = $(arguments[0]); this.callback = arguments[1]; this.trigger = arguments[2]; | initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js |
this.registerCallback(this.element); | this.registerCallback(this.element, this.trigger); | initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js |
loadingClassName: 'inplaceeditor-loading', | initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } }, | 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 |
|
OpenLayers.Layer.prototype.initialize.apply(this, arguments); | OpenLayers.Layer.EventPane.prototype.initialize.apply(this, arguments); | initialize: function(name, options) { OpenLayers.Layer.prototype.initialize.apply(this, arguments); if (this.maxExtent == null) { this.maxExtent = new OpenLayers.Bounds(-180, -90, 180, 90); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/8f33a633aa6d5eb5b7fd38f5342b2d65e1bafc3f/Google.js/clean/lib/OpenLayers/Layer/Google.js |
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
|
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); | new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } ); | initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
this.rightClick = (((this.event.which) && (this.event.which == 3)) || ((this.event.button) && (this.event.button == 2))); | this.rightClick = (((this.event.which) && (this.event.which == 3)) || ((this.event.button) && (this.event.button == 2)) || (navigator.platform.test('Mac') && this.control)); | initialize: function(event){ this.event = event || window.event; this.type = this.event.type; this.target = this.event.target || this.event.srcElement; if (this.target.nodeType == 3) this.target = this.target.parentNode; // Safari this.shift = this.event.shiftKey; this.control = this.event.ctrlKey; this.alt = this.event.altKey; this.meta = this.event.metaKey; if (['DOMMouseScroll', 'mousewheel'].test(this.type)){ var wheel = 0; if (this.event.wheelDelta) wheel = this.event.wheelDelta/120; else if (this.event.detail) wheel = -this.event.detail/3; this.wheel = (window.opera) ? -wheel : wheel; } else if (this.type.test('key')){ this.code = this.event.which || this.event.keyCode; var specials = { 'enter': 13, 'up': 38, 'down': 40, 'left': 37, 'right': 39, 'esc': 27, 'space': 32, 'backspace': 8, 'delete': 46 }; for (var name in specials){ if (specials[name] == this.code) var special = name; } this.key = special || String.fromCharCode(this.code).toLowerCase(); } else if (this.type.test('mouse') || this.type == 'click'){ this.page = { 'x': this.event.pageX || this.event.clientX + document.documentElement.scrollLeft, 'y': this.event.pageY || this.event.clientY + document.documentElement.scrollTop }; this.client = { 'x': this.event.pageX ? this.event.pageX - window.pageXOffset : this.event.clientX, 'y': this.event.pageY ? this.event.pageY - window.pageYOffset : this.event.clientY }; this.rightClick = (((this.event.which) && (this.event.which == 3)) || ((this.event.button) && (this.event.button == 2))); switch (this.type){ case 'mouseover': this.relatedTarget = this.event.relatedTarget || this.event.fromElement; break; case 'mouseout': this.relatedTarget = this.event.relatedTarget || this.event.toElement; break; } } }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/f8e20cd11320fa43b4a01379300b6f0feb62ac38/Event.js/clean/Native/Event.js |
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
|
initialize: function(name, url, params) { | initialize: function(name, url, params, options) { | initialize: function(name, url, params) { var newArguments = new Array(); if (arguments.length > 0) { //uppercase params params = OpenLayers.Util.upperCaseObject(params); newArguments.push(name, url, params); } OpenLayers.Layer.HTTPRequest.prototype.initialize.apply(this, newArguments); if (arguments.length > 0) { OpenLayers.Util.applyDefaults( this.params, OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS) ); } // if the layer is transparent, it will be an overlay this.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/d486e1964b8d1055fe9e94e4aef1b06838aac085/Untiled.js/clean/lib/OpenLayers/Layer/WMS/Untiled.js |
newArguments.push(name, url, params); | newArguments.push(name, url, params, options); | initialize: function(name, url, params) { var newArguments = new Array(); if (arguments.length > 0) { //uppercase params params = OpenLayers.Util.upperCaseObject(params); newArguments.push(name, url, params); } OpenLayers.Layer.HTTPRequest.prototype.initialize.apply(this, newArguments); if (arguments.length > 0) { OpenLayers.Util.applyDefaults( this.params, OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS) ); } // if the layer is transparent, it will be an overlay this.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/d486e1964b8d1055fe9e94e4aef1b06838aac085/Untiled.js/clean/lib/OpenLayers/Layer/WMS/Untiled.js |
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
|
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); | initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array; | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
loadingClassName: 'inplaceeditor-loading', | initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/railties/html/javascripts/controls.js |
|
addBreakpointSupport(); | addBreakpointSupport(this.document); | initialize : function(testDocument, isJavaScript, commandFactory) { this.commandFactory = commandFactory; this.waitForConditionTimeout = 30 * 1000; // 30 seconds this.isJavaScript = isJavaScript; se = selenium; global.se = selenium; this.document = testDocument; this.document.bgColor = ""; this.currentRow = null; this.currentRowIndex = 0; this.commandRows = new Array(); this.headerRow = null; // used for selenium tests in javascript this.currentItem = null; this.commandAgenda = new Array(); if (this.document.originalBody == undefined) { this.document.originalBody = this.document.body.innerHTML; } else { this.document.body.innerHTML = this.document.originalBody; addBreakpointSupport(); } var tables = this.document.getElementsByTagName("table"); for (var i = 0; i < tables.length; i++) { var candidateRows = tables[i].rows; for (var j = 0; j < candidateRows.length; j++) { if (!this.headerRow) { this.headerRow = candidateRows[j]; } if (isCommandRow(candidateRows[j])) { this._addCommandRow(candidateRows[j]); } } } if (isJavaScript) { var script = this.document.getElementById('sejs') // the script source var fname = 'Selenium JavaScript'; parse_result = parse(script.innerHTML, fname, 0); var x2 = new ExecutionContext(GLOBAL_CODE); ExecutionContext.current = x2; execute(parse_result, x2) } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0310a5cc1f4cefa5a905d20a0377865784ae9511/selenium-testrunner.js/clean/code/javascript/core/scripts/selenium-testrunner.js |
Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 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 |
|
OpenLayers.Layer.prototype.initialize.apply(this, [name, options]); if((options == null) || (options.isBaseLayer == null)) { this.isBaseLayer = true; } | initialize: function(name, url, extent, size, options) { this.url = url; this.extent = extent; this.size = size; this.aspectRatio = (this.extent.getHeight() / this.size.h) / (this.extent.getWidth() / this.size.w); OpenLayers.Layer.prototype.initialize.apply(this, [name, options]); // unless explicitly set in options, the layer will be a base layer if((options == null) || (options.isBaseLayer == null)) { this.isBaseLayer = true; } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/3d58bc669814790e7f7cd02571ace1be6bae8d16/Image.js/buggy/lib/OpenLayers/Layer/Image.js |
|
this.parent(options); | this.parent(this.options); | initialize: function(el, options){ this.element = $(el).setStyle('margin', 0); this.wrapper = new Element('div').injectAfter(this.element).setStyle('overflow', 'hidden').adopt(this.element); this.setOptions({'mode': 'vertical'}, options); this.now = []; this.parent(options); }, | 6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/fcc80ca504adb31cd63f24e4b73ce9e400a788bc/Fx.Slide.js/buggy/Effects/Fx.Slide.js |
Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 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 |
|
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); | new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } ); | initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/clean/railties/html/javascripts/prototype.js |
Position.prepare(); var offsets = Position.cumulativeOffset(this.element); var max = window.innerHeight ? window.height - window.innerHeight : document.body.scrollHeight - (document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight); this.scrollStart = Position.deltaY; this.delta = (offsets[1] > max ? max : offsets[1]) - this.scrollStart; | initialize: function(element) { this.element = $(element); Position.prepare(); var offsets = Position.cumulativeOffset(this.element); var max = window.innerHeight ? window.height - window.innerHeight : document.body.scrollHeight - (document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight); this.scrollStart = Position.deltaY; this.delta = (offsets[1] > max ? max : offsets[1]) - this.scrollStart; this.start(arguments[1] || {}); }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/effects.js/buggy/public/javascripts/effects.js |
|
Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 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 |
|
this.lonlat = lonlat; this.icon = (icon) ? icon : OpenLayers.Marker.defaultIcon(); this.events = new OpenLayers.Events(this, this.icon.imageDiv, null); | if (arguments.length > 0) { this.lonlat = lonlat; this.icon = (icon) ? icon : OpenLayers.Marker.defaultIcon(); this.events = new OpenLayers.Events(this, this.icon.imageDiv, null); } | initialize: function(lonlat, icon) { this.lonlat = lonlat; this.icon = (icon) ? icon : OpenLayers.Marker.defaultIcon(); this.events = new OpenLayers.Events(this, this.icon.imageDiv, null); }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/Marker.js/buggy/lib/OpenLayers/Marker.js |
this.featureClass = featureClass; | if (featureClass != null) this.featureClass = featureClass; | initialize: function(name, url, params, featureClass) { this.featureClass = featureClass; var newArguments = new Array(); if (arguments.length > 0) { //uppercase params params = OpenLayers.Util.upperCaseObject(params); newArguments.push(name, url, params); } OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments); OpenLayers.Layer.Markers.prototype.initialize.apply(this, newArguments); if (arguments.length > 0) { OpenLayers.Util.applyDefaults( this.params, OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS) ); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c92cd6d88a59f79879c73965c26269e13afa25e3/WFS.js/buggy/lib/OpenLayers/Layer/WFS.js |
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); | initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array; | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/clean/railties/html/javascripts/controls.js |
this.isBaseLayer = (this.params.TRANSPARENT != "true"); | initialize: function(name, url, params, options) { var newArguments = new Array(); if (arguments.length > 0) { //uppercase params params = OpenLayers.Util.upperCaseObject(params); newArguments.push(name, url, params, options); } OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments); if (arguments.length > 0) { OpenLayers.Util.applyDefaults( this.params, OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS) ); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/dd07041019395d008aebdae1408690945636d6f8/WMS.js/clean/lib/OpenLayers/Layer/WMS.js |
|
initialize: function(element, callback) { this.element = $(element); this.callback = callback; | initialize: function() { this.element = $(arguments[0]); this.callback = arguments[1]; this.trigger = arguments[2]; | initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/clean/railties/html/javascripts/prototype.js |
this.registerCallback(this.element); | this.registerCallback(this.element, this.trigger); | initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/clean/railties/html/javascripts/prototype.js |
Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 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 |
|
initialize: function() { | initialize: function(direction) { | initialize: function() { OpenLayers.Control.prototype.initialize.apply(this, arguments); this.mode = null; }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/buggy/lib/OpenLayers/Control/MouseToolbar.js |
this.mode = null; | if (direction) { this.direction = direction; } | initialize: function() { OpenLayers.Control.prototype.initialize.apply(this, arguments); this.mode = null; }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/buggy/lib/OpenLayers/Control/MouseToolbar.js |
this.mouse = {'start': {}, 'now': {}, 'pos': {}}; | this.mouse = {'now': {}, 'pos': {}}; | initialize: function(el, options){ this.setOptions(this.getOptions(), options); this.element = $(el); this.handle = $(this.options.handle) || this.element; this.mouse = {'start': {}, 'now': {}, 'pos': {}}; this.value = {'start': {}, 'now': {}}; this.bound = {'start': this.start.bindWithEvent(this)}; this.handle.addEvent('mousedown', this.bound.start); if (this.options.initialize) this.options.initialize.call(this); }, | 6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/b57774298a216831aaf9ee0a5b41fa9aa6fc447e/Drag.Base.js/buggy/Drag/Drag.Base.js |
Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 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.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); | if ((options == null) ||(options.isBaseLayer == null)) { this.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); } | initialize: function(name, url, params, options) { var newArguments = new Array(); if (arguments.length > 0) { //uppercase params params = OpenLayers.Util.upperCaseObject(params); newArguments.push(name, url, params, options); } OpenLayers.Layer.HTTPRequest.prototype.initialize.apply(this, newArguments); if (arguments.length > 0) { OpenLayers.Util.applyDefaults( this.params, OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS) ); } // if the layer is transparent, it will be an overlay this.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/e90698244391363cb32d4bb76d9c0005a421bb2b/Untiled.js/clean/lib/OpenLayers/Layer/WMS/Untiled.js |
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); | initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array; | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/clean/railties/html/javascripts/controls.js |
loadingClassName: 'inplaceeditor-loading', | initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } }, | 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 |
|
OpenLayers.Layer.prototype.initialize.apply(this, [name]); | var newArguments = arguments; if (arguments.length > 0) { newArguments = [name]; } OpenLayers.Layer.prototype.initialize.apply(this, newArguments); | initialize: function(name, url, params) { OpenLayers.Layer.prototype.initialize.apply(this, [name]); this.url = url; this.params = params; }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c59e66f1671af9ba4b8ddad52f80e52f5dfe6ac8/Grid.js/buggy/lib/OpenLayers/Layer/Grid.js |
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); | initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array; | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
loadingClassName: 'inplaceeditor-loading', | initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } }, | 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 |
|
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); | new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } ); | initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/clean/railties/html/javascripts/prototype.js |
loadingClassName: 'inplaceeditor-loading', | initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
|
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); | initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array; | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); | new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } ); | initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/clean/railties/html/javascripts/prototype.js |
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); | new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } ); | initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
loadingClassName: 'inplaceeditor-loading', | initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
|
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); | initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array; | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/buggy/railties/html/javascripts/controls.js |
initialize: function(element, callback) { this.element = $(element); this.callback = callback; | initialize: function() { this.element = $(arguments[0]); this.callback = arguments[1]; this.trigger = arguments[2]; | initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js |
this.registerCallback(this.element); | this.registerCallback(this.element, this.trigger); | initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js |
loadingClassName: 'inplaceeditor-loading', | initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { // there's already a form with that name, don't specify an id this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
|
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); | new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } ); | initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
|
OpenLayers.Layer.prototype.initialize.apply(this, [name, options]); if((options == null) || (options.isBaseLayer == null)) { this.isBaseLayer = true; } | initialize: function(name, url, extent, size, options) { this.url = url; this.extent = extent; this.size = size; this.aspectRatio = (this.extent.getHeight() / this.size.h) / (this.extent.getWidth() / this.size.w); OpenLayers.Layer.prototype.initialize.apply(this, [name, options]); // unless explicitly set in options, the layer will be a base layer if((options == null) || (options.isBaseLayer == null)) { this.isBaseLayer = true; } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/3d58bc669814790e7f7cd02571ace1be6bae8d16/Image.js/clean/lib/OpenLayers/Layer/Image.js |
|
this.id = (id ? id : 'f'+Math.Random()); | this.id = (id ? id : 'f'+Math.random()); | initialize: function(layer, lonlat, data, id) { this.layer = layer; this.lonlat = lonlat; this.data = data; this.id = (id ? id : 'f'+Math.Random()); }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/9256cdc2074bbbb49958351bf8baf885bf151a4b/Feature.js/clean/lib/OpenLayers/Feature.js |
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
|
initialize: function(name, url, params) { | initialize: function(name, url, params, options) { | initialize: function(name, url, params) { var newArguments = new Array(); if (arguments.length > 0) { //uppercase params params = OpenLayers.Util.upperCaseObject(params); newArguments.push(name, url, params); } OpenLayers.Layer.HTTPRequest.prototype.initialize.apply(this, newArguments); if (arguments.length > 0) { OpenLayers.Util.applyDefaults( this.params, OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS) ); } // if the layer is transparent, it will be an overlay this.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/d486e1964b8d1055fe9e94e4aef1b06838aac085/Untiled.js/clean/lib/OpenLayers/Layer/WMS/Untiled.js |
newArguments.push(name, url, params); | newArguments.push(name, url, params, options); | initialize: function(name, url, params) { var newArguments = new Array(); if (arguments.length > 0) { //uppercase params params = OpenLayers.Util.upperCaseObject(params); newArguments.push(name, url, params); } OpenLayers.Layer.HTTPRequest.prototype.initialize.apply(this, newArguments); if (arguments.length > 0) { OpenLayers.Util.applyDefaults( this.params, OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS) ); } // if the layer is transparent, it will be an overlay this.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/d486e1964b8d1055fe9e94e4aef1b06838aac085/Untiled.js/clean/lib/OpenLayers/Layer/WMS/Untiled.js |
markers = new Array(); | this.markers = new Array(); | initialize: function(name) { OpenLayers.Layer.prototype.initialize.apply(this, arguments); markers = new Array(); }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/a360238d813c48d5d19e13f37fb40e645dc987d0/Marker.js/buggy/lib/OpenLayers/Layer/Marker.js |
if (options['tileSize']) { this.tileSize = options['tileSize'].copyOf(); } else { this.tileSize = new OpenLayers.Size(256, 256); } | initialize: function(name, url, params, options) { var newArguments = new Array(); if (arguments.length > 0) { //uppercase params params = OpenLayers.Util.upperCaseObject(params); newArguments.push(name, url, params, options); } OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments); OpenLayers.Layer.Markers.prototype.initialize.apply(this, newArguments); if (arguments.length > 0) { OpenLayers.Util.applyDefaults( this.params, OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS) ); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/e7b45c4731f24a0a962215ab51edd44195d75fe3/WFS.js/clean/lib/OpenLayers/Layer/WFS.js |
|
Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 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 |
|
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); | initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array; | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/clean/railties/html/javascripts/controls.js |
this.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); | if ((options == null) || (options.isBaseLayer == null)) { this.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); } | initialize: function(name, url, params, options) { var newArguments = new Array(); if (arguments.length > 0) { //uppercase params params = OpenLayers.Util.upperCaseObject(params); newArguments.push(name, url, params, options); } OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments); if (arguments.length > 0) { OpenLayers.Util.applyDefaults( this.params, OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS) ); } // if the layer is transparent, it will be an overlay this.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/e90698244391363cb32d4bb76d9c0005a421bb2b/WMS.js/buggy/lib/OpenLayers/Layer/WMS.js |
this.image = OpenLayers.Util.createImage(null, | this.image = OpenLayers.Util.createAlphaImageDiv(null, | initialize: function(lonlat, icon, data) { this.icon = icon; this.lonlat = lonlat; this.data = data; this.image = OpenLayers.Util.createImage(null, null, this.icon.size, this.icon.url, "absolute" ); this.events = new OpenLayers.Events(this, this.image, null); //load marker events from data if (this.data != null && this.data.loadEvents != null) { this.data.loadEvents(this); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/9b12c728d4eb173b3a0dcda1094f251ec8afeaf0/Marker.js/buggy/lib/OpenLayers/Marker.js |
initialize: function(element, callback) { this.element = $(element); this.callback = callback; | initialize: function() { this.element = $(arguments[0]); this.callback = arguments[1]; this.trigger = arguments[2]; | initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js |
this.registerCallback(this.element); | this.registerCallback(this.element, this.trigger); | initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/buggy/railties/html/javascripts/prototype.js |
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); | new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } ); | initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/clean/railties/html/javascripts/prototype.js |
OpenLayers.Event.observe(window, "DOMMouseScroll", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(window, "mousewheel", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(document, "mousewheel", this.onWheelEvent.bindAsEventListener(this)); | initialize: function() { OpenLayers.Control.prototype.initialize.apply(this, arguments); //register mousewheel events specifically on the window and document OpenLayers.Event.observe(window, "DOMMouseScroll", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(window, "mousewheel", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(document, "mousewheel", this.onWheelEvent.bindAsEventListener(this)); }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/9c6817f5d6e4b39058416183c6aaa041a68dcace/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js |
|
Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 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 |
|
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); | new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } ); | initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/buggy/railties/html/javascripts/prototype.js |
var specials = { 'enter': 13, 'up': 38, 'down': 40, 'left': 37, 'right': 39, 'esc': 27, 'space': 32, 'backspace': 8, 'delete': 46 }; for (var name in specials){ if (specials[name] == this.code) var special = name; | for (var name in Event.keys){ if (Event.keys[name] == this.code) var special = name; | initialize: function(event){ this.event = event || window.event; this.type = this.event.type; this.target = this.event.target || this.event.srcElement; if (this.target.nodeType == 3) this.target = this.target.parentNode; // Safari this.shift = this.event.shiftKey; this.control = this.event.ctrlKey; this.alt = this.event.altKey; this.meta = this.event.metaKey; if (['DOMMouseScroll', 'mousewheel'].test(this.type)){ this.wheel = this.event.wheelDelta ? (this.event.wheelDelta / (window.opera ? -120 : 120)) : -(this.event.detail || 0) / 3; } else if (this.type.test('key')){ this.code = this.event.which || this.event.keyCode; var specials = { 'enter': 13, 'up': 38, 'down': 40, 'left': 37, 'right': 39, 'esc': 27, 'space': 32, 'backspace': 8, 'delete': 46 }; for (var name in specials){ if (specials[name] == this.code) var special = name; } this.key = special || String.fromCharCode(this.code).toLowerCase(); } else if (this.type.test('mouse') || this.type == 'click'){ this.page = { 'x': this.event.pageX || this.event.clientX + document.documentElement.scrollLeft, 'y': this.event.pageY || this.event.clientY + document.documentElement.scrollTop }; this.client = { 'x': this.event.pageX ? this.event.pageX - window.pageXOffset : this.event.clientX, 'y': this.event.pageY ? this.event.pageY - window.pageYOffset : this.event.clientY }; this.rightClick = (this.event.which == 3) || (this.event.button == 2); switch (this.type){ case 'mouseover': this.relatedTarget = this.event.relatedTarget || this.event.fromElement; break; case 'mouseout': this.relatedTarget = this.event.relatedTarget || this.event.toElement; } } }, | 6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/fcc80ca504adb31cd63f24e4b73ce9e400a788bc/Event.js/buggy/Native/Event.js |
initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); | initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array; | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; this.options.onShow = this.options.onShow || function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; } new Effect.Appear(update,{duration:0.3}); }; this.options.onHide = this.options.onHide || function(element, update){ new Effect.Fade(update,{duration:0.3}) }; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Element.hide(this.update); Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
this.name = name; if (this.div == null) { this.div = OpenLayers.Util.createDiv(); this.div.style.width = "100%"; this.div.style.height = "100%"; | if (arguments.length > 0) { this.name = name; if (this.div == null) { this.div = OpenLayers.Util.createDiv(); this.div.style.width = "100%"; this.div.style.height = "100%"; } | initialize: function(name) { this.name = name; if (this.div == null) { this.div = OpenLayers.Util.createDiv(); this.div.style.width = "100%"; this.div.style.height = "100%"; } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c59e66f1671af9ba4b8ddad52f80e52f5dfe6ac8/Layer.js/clean/lib/OpenLayers/Layer.js |
var specials = { 'enter': 13, 'up': 38, 'down': 40, 'left': 37, 'right': 39, 'esc': 27, 'space': 32, 'backspace': 8, 'delete': 46 }; for (var name in specials){ if (specials[name] == this.code) var special = name; | for (var name in Event.keys){ if (Event.keys[name] == this.code) var special = name; | initialize: function(event){ this.event = event || window.event; this.type = this.event.type; this.target = this.event.target || this.event.srcElement; if (this.target.nodeType == 3) this.target = this.target.parentNode; // Safari this.shift = this.event.shiftKey; this.control = this.event.ctrlKey; this.alt = this.event.altKey; this.meta = this.event.metaKey; if (['DOMMouseScroll', 'mousewheel'].test(this.type)){ this.wheel = this.event.wheelDelta ? (this.event.wheelDelta / (window.opera ? -120 : 120)) : -(this.event.detail || 0) / 3; } else if (this.type.test('key')){ this.code = this.event.which || this.event.keyCode; var specials = { 'enter': 13, 'up': 38, 'down': 40, 'left': 37, 'right': 39, 'esc': 27, 'space': 32, 'backspace': 8, 'delete': 46 }; for (var name in specials){ if (specials[name] == this.code) var special = name; } this.key = special || String.fromCharCode(this.code).toLowerCase(); } else if (this.type.test('mouse') || this.type == 'click'){ this.page = { 'x': this.event.pageX || this.event.clientX + document.documentElement.scrollLeft, 'y': this.event.pageY || this.event.clientY + document.documentElement.scrollTop }; this.client = { 'x': this.event.pageX ? this.event.pageX - window.pageXOffset : this.event.clientX, 'y': this.event.pageY ? this.event.pageY - window.pageYOffset : this.event.clientY }; this.rightClick = (this.event.which == 3) || (this.event.button == 2); switch (this.type){ case 'mouseover': this.relatedTarget = this.event.relatedTarget || this.event.fromElement; break; case 'mouseout': this.relatedTarget = this.event.relatedTarget || this.event.toElement; } } }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/fcc80ca504adb31cd63f24e4b73ce9e400a788bc/Event.js/clean/Native/Event.js |
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
|
initialize: function(element, callback) { this.element = $(element); this.callback = callback; | initialize: function() { this.element = $(arguments[0]); this.callback = arguments[1]; this.trigger = arguments[2]; | initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/clean/railties/html/javascripts/prototype.js |
this.registerCallback(this.element); | this.registerCallback(this.element, this.trigger); | initialize: function(element, callback) { this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/e3bfd08cbcbffddf53de4f0f6030a794402cf532/prototype.js/clean/railties/html/javascripts/prototype.js |
this.obj = {}; for (var property in obj) { this.obj[property] = obj[property]; this.length++; } | this.extend(obj); | initialize: function(obj) { this.obj = {}; for (var property in obj) { this.obj[property] = obj[property]; this.length++; } }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/2f00bcee8e2a9577e18cd8c5c5c7c594651a3811/Hash.js/buggy/Addons/Hash.js |
initialize: function(options){ this.setOptions(this.getOptions(), options); this.transport = window.XMLHttpRequest ? new XMLHttpRequest() : (window.ie ? new ActiveXObject('Microsoft.XMLHTTP') : false); if (this.transport && this.options.initialize) this.options.initialize.call(this); | initialize: function(url, options){ this.addEvent('onSuccess', this.onComplete); this.setOptions(this.moreOptions(), options); if (!['post', 'get'].test(this.options.method)){ this._method = '_method='+this.options.method; this.options.method = 'post'; } this.parent(this.options); this.url = url; | initialize: function(options){ this.setOptions(this.getOptions(), options); this.transport = window.XMLHttpRequest ? new XMLHttpRequest() : (window.ie ? new ActiveXObject('Microsoft.XMLHTTP') : false); if (this.transport && this.options.initialize) this.options.initialize.call(this); }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/ee45bcbdda9f41e1d047aeccacc4bf8768c2c67b/Ajax.js/buggy/Remote/Ajax.js |
this.handleLength = this.isVertical() ? this.handles[0].offsetHeight : this.handles[0].offsetWidth; | this.handleLength = this.isVertical() ? (this.handles[0].offsetHeight != 0 ? this.handles[0].offsetHeight : this.handles[0].style.height.replace(/px$/,"")) : (this.handles[0].offsetWidth != 0 ? this.handles[0].offsetWidth : this.handles[0].style.width.replace(/px$/,"")); | initialize: function(handle, track, options) { var slider = this; if(handle instanceof Array) { this.handles = handle.collect( function(e) { return $(e) }); } else { this.handles = [$(handle)]; } this.track = $(track); this.options = options || {}; this.axis = this.options.axis || 'horizontal'; this.increment = this.options.increment || 1; this.step = parseInt(this.options.step || '1'); this.range = this.options.range || $R(0,1); this.value = 0; // assure backwards compat this.values = this.handles.map( function() { return 0 }); this.spans = this.options.spans ? this.options.spans.map(function(s){ return $(s) }) : false; this.options.startSpan = $(this.options.startSpan || null); this.options.endSpan = $(this.options.endSpan || null); this.restricted = this.options.restricted || false; this.maximum = this.options.maximum || this.range.end; this.minimum = this.options.minimum || this.range.start; // Will be used to align the handle onto the track, if necessary this.alignX = parseInt(this.options.alignX || '0'); this.alignY = parseInt(this.options.alignY || '0'); this.trackLength = this.maximumOffset() - this.minimumOffset(); this.handleLength = this.isVertical() ? this.handles[0].offsetHeight : this.handles[0].offsetWidth; this.active = false; this.dragging = false; this.disabled = false; if(this.options.disabled) this.setDisabled(); // Allowed values array this.allowedValues = this.options.values ? this.options.values.sortBy(Prototype.K) : false; if(this.allowedValues) { this.minimum = this.allowedValues.min(); this.maximum = this.allowedValues.max(); } this.eventMouseDown = this.startDrag.bindAsEventListener(this); this.eventMouseUp = this.endDrag.bindAsEventListener(this); this.eventMouseMove = this.update.bindAsEventListener(this); // Initialize handles in reverse (make sure first handle is active) this.handles.each( function(h,i) { i = slider.handles.length-1-i; slider.setValue(parseFloat( (slider.options.sliderValue instanceof Array ? slider.options.sliderValue[i] : slider.options.sliderValue) || slider.range.start), i); Element.makePositioned(h); // fix IE Event.observe(h, "mousedown", slider.eventMouseDown); }); Event.observe(this.track, "mousedown", this.eventMouseDown); Event.observe(document, "mouseup", this.eventMouseUp); Event.observe(document, "mousemove", this.eventMouseMove); this.initialized = true; }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/50fa4017bc8204abb70f0a2e72e3df33340e3077/slider.js/clean/src/slider.js |
initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array; | initialize: function(element, url, options) { this.url = url; this.element = $(element); this.options = Object.extend({ okText: "ok", cancelText: "cancel", savingText: "Saving...", clickToEditText: "Click to edit", okText: "ok", rows: 1, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); }, onFailure: function(transport) { alert("Error communicating with the server: " + transport.responseText.stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading...', savingClassName: 'inplaceeditor-saving', loadingClassName: 'inplaceeditor-loading', formClassName: 'inplaceeditor-form', highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, highlightendcolor: "#FFFFFF", externalControl: null, ajaxOptions: {} }, options || {}); if(!this.options.formId && this.element.id) { this.options.formId = this.element.id + "-inplaceeditor"; if ($(this.options.formId)) { this.options.formId = null; } } if (this.options.externalControl) { this.options.externalControl = $(this.options.externalControl); } this.originalBackground = Element.getStyle(this.element, 'background-color'); if (!this.originalBackground) { this.originalBackground = "transparent"; } this.element.title = this.options.clickToEditText; this.onclickListener = this.enterEditMode.bindAsEventListener(this); this.mouseoverListener = this.enterHover.bindAsEventListener(this); this.mouseoutListener = this.leaveHover.bindAsEventListener(this); Event.observe(this.element, 'click', this.onclickListener); Event.observe(this.element, 'mouseover', this.mouseoverListener); Event.observe(this.element, 'mouseout', this.mouseoutListener); if (this.options.externalControl) { Event.observe(this.options.externalControl, 'click', this.onclickListener); Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); } | initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array; }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/controls.js/clean/public/javascripts/controls.js |
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); | initialize: function(element, update, url, options) { this.element = $(element); this.update = $(update); this.has_focus = false; this.changed = false; this.active = false; this.index = 0; this.entry_count = 0; this.url = url; this.setOptions(options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.frequency = this.options.frequency || 0.4; this.options.min_chars = this.options.min_chars || 1; this.options.method = 'post'; if(this.options.indicator) this.indicator = $(this.options.indicator); this.observer = null; Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(document, "click", this.onBlur.bindAsEventListener(this)); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
|
new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); | new Effect.Scale(this.element, 1, { complete: this.hide.bind(this) } ); | initialize: function(element) { this.element = $(element); new Effect.Scale(element, 1, { complete: this.hide.bind(this) } ); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/c73a414a9abdb9943f18f6a60ed9f805e97e2ea1/prototype.js/buggy/railties/html/javascripts/prototype.js |
this.rightClick = (((this.event.which) && (this.event.which == 3)) || ((this.event.button) && (this.event.button == 2))); | this.rightClick = (((this.event.which) && (this.event.which == 3)) || ((this.event.button) && (this.event.button == 2)) || (navigator.platform.test('Mac') && this.control)); | initialize: function(event){ this.event = event || window.event; this.type = this.event.type; this.target = this.event.target || this.event.srcElement; if (this.target.nodeType == 3) this.target = this.target.parentNode; // Safari this.shift = this.event.shiftKey; this.control = this.event.ctrlKey; this.alt = this.event.altKey; this.meta = this.event.metaKey; if (['DOMMouseScroll', 'mousewheel'].test(this.type)){ var wheel = 0; if (this.event.wheelDelta) wheel = this.event.wheelDelta/120; else if (this.event.detail) wheel = -this.event.detail/3; this.wheel = (window.opera) ? -wheel : wheel; } else if (this.type.test('key')){ this.code = this.event.which || this.event.keyCode; var specials = { 'enter': 13, 'up': 38, 'down': 40, 'left': 37, 'right': 39, 'esc': 27, 'space': 32, 'backspace': 8, 'delete': 46 }; for (var name in specials){ if (specials[name] == this.code) var special = name; } this.key = special || String.fromCharCode(this.code).toLowerCase(); } else if (this.type.test('mouse') || this.type == 'click'){ this.page = { 'x': this.event.pageX || this.event.clientX + document.documentElement.scrollLeft, 'y': this.event.pageY || this.event.clientY + document.documentElement.scrollTop }; this.client = { 'x': this.event.pageX ? this.event.pageX - window.pageXOffset : this.event.clientX, 'y': this.event.pageY ? this.event.pageY - window.pageYOffset : this.event.clientY }; this.rightClick = (((this.event.which) && (this.event.which == 3)) || ((this.event.button) && (this.event.button == 2))); switch (this.type){ case 'mouseover': this.relatedTarget = this.event.relatedTarget || this.event.fromElement; break; case 'mouseout': this.relatedTarget = this.event.relatedTarget || this.event.toElement; break; } } }, | 6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/f8e20cd11320fa43b4a01379300b6f0feb62ac38/Event.js/clean/Native/Event.js |
type = type || 'rgb'; | type = type || (color.push) ? 'rgb' : 'hex'; | initialize: function(color, type){ if (color.isColor) return color; type = type || 'rgb'; var rgb, hsb; switch(type){ case 'rgb': rgb = color; hsb = rgb.rgbToHsb(); break; case 'hsb': rgb = color.hsbToRgb(); hsb = color; break; default: rgb = color.hexToRgb(true); hsb = rgb.rgbToHsb(); break; } rgb.hsb = hsb; return Object.extend(rgb, Color.prototype); }, | 6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/a22dce4bef6b4ef18ff83107a76bdac505312ab0/Color.js/buggy/Addons/Color.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.