rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
subScriptLoader.loadSubScript('chrome: subScriptLoader.loadSubScript('chrome: subScriptLoader.loadSubScript('chrome:
this.init = function() { if (this.runner != null) { // already initialized return; } this.log.debug("init"); this.paused = false; this.runner = new Object(); recorder.testCaseListeners.push(function(testCase) { self.runner.testCase = testCase; }); this.runner.testCase = recorder.testCase; const subScri...
init : function(o, oRoot, minX, maxX, minY, maxY,
init : function(o, h, oRoot, minX, maxX, minY, maxY,
init : function(o, oRoot, minX, maxX, minY, maxY, bSwapHorzRef, bSwapVertRef, fXMapper, fYMapper) { o.onmousedown = HopDrag.start; o.hmode = bSwapHorzRef ? false : true ; o.vmode = bSwapVertRef ? false : true ; o.root = oRoot && oRoot != null ? oRoot : o ; if (o.hmode && isNaN(parseInt(o.root.style.l...
o.onmousedown = HopDrag.start;
o.hop_handle = h; h.hop_window = o; h.onmousedown = HopDrag.start;
init : function(o, oRoot, minX, maxX, minY, maxY, bSwapHorzRef, bSwapVertRef, fXMapper, fYMapper) { o.onmousedown = HopDrag.start; o.hmode = bSwapHorzRef ? false : true ; o.vmode = bSwapVertRef ? false : true ; o.root = oRoot && oRoot != null ? oRoot : o ; if (o.hmode && isNaN(parseInt(o.root.style.l...
self.paused = true;
this.init = function() { if (this.runner != null) { // already initialized return; } this.paused = false; this.runner = new Object(); recorder.testCaseListeners.push(function(testCase) { self.runner.testCase = testCase; }); this.runner.testCase = recorder.testCase; const subScriptLoader = Components.cla...
if (!navigator.userAgent.match(/ rv:1\.8\.0/)) {
if (isFirefox2()) {
this.init = function() { if (this.runner != null) { // already initialized return; } this.log.debug("init"); this.paused = false; this.runner = new Object(); this.runner.editor = this.editor; this.editor.testCaseListeners.push(function(testCase) { self.runner.testCase = testCase; }); this.runner.testCase...
this.runner.eval = function(str, arg) { return eval(str); }
this.runner.eval = doEval;
this.init = function() { if (this.runner != null) { // already initialized return; } this.log.debug("init"); this.paused = false; this.runner = new Object(); this.runner.editor = this.editor; this.editor.testCaseListeners.push(function(testCase) { self.runner.testCase = testCase; }); this.runner.testCase...
for (var i=0; i<fieldsets.length; i++) { var fs = fieldsets[i];
for (var i = 0, fs; fs = fieldsets[i]; i++) {
init: function() { var fieldsets = document.getElementsByTagName('fieldset'); var collapsed_seen = false; for (var i=0; i<fieldsets.length; i++) { var fs = fieldsets[i]; // Collapse this fieldset if it has the correct class, and if it // doesn't have any errors. (Collapsing shouldn't apply in the case // of...
var verbose_name = fs.getElementsByTagName('h2')[0].innerHTML; var div = document.createElement('div'); div.id = 'fieldsetcollapser' + i; div.className = 'form-row collapse-toggle';
init: function() { var fieldsets = document.getElementsByTagName('fieldset'); var collapsed_seen = false; for (var i=0; i<fieldsets.length; i++) { var fs = fieldsets[i]; // Collapse this fieldset if it has the correct class, and if it // doesn't have any errors. (Collapsing shouldn't apply in the case // of...
collapse_link.setAttribute('href', 'javascript:CollapsedFieldsets.display(' + i + ');'); collapse_link.appendChild(document.createTextNode('Show ' + verbose_name)); div.appendChild(collapse_link); fs.appendChild(div);
collapse_link.className = 'collapse-toggle'; collapse_link.id = 'fieldsetcollapser' + i; collapse_link.onclick = new Function('CollapsedFieldsets.show('+i+'); return false;'); collapse_link.href = '#'; collapse_link.innerHTML = 'Show'; var h2 = fs.getElementsByTagName('h2')[0]; h2.appendChild(document.createTextNode(' ...
init: function() { var fieldsets = document.getElementsByTagName('fieldset'); var collapsed_seen = false; for (var i=0; i<fieldsets.length; i++) { var fs = fieldsets[i]; // Collapse this fieldset if it has the correct class, and if it // doesn't have any errors. (Collapsing shouldn't apply in the case // of...
this.runner.eval = function(str) { return eval(str); }
this.init = function() { if (this.runner != null) { // already initialized return; } this.log.debug("init"); this.paused = false; this.runner = new Object(); this.runner.editor = this.editor; this.editor.testCaseListeners.push(function(testCase) { self.runner.testCase = testCase; }); this.runner.testCase...
if (previous) previous.syncModel(true);
function init() { if (!this.recorderInitialized) { log.info("initializing"); this.recorderInitialized = true; this.setOptions(optionsManager.load()); //this.options.load(); this.eventManager = new EventManager(this); this.treeView = new TreeView(this, document, document.getElementById("commands")); this.sourceVi...
resize(150,50); setFont(new Font("TimesRoman",Font.BOLD,36)); s = getParameter("text");
this.resize(150,50); this.setFont(new Font("TimesRoman",Font.BOLD,36)); s = this.getParameter("text");
function init() { resize(150,50); setFont(new Font("TimesRoman",Font.BOLD,36)); s = getParameter("text"); if (s == null) { s = "Rhino"; } separated = s.split('');}
} else if (href.search(/file:(\/\/\/\/\/)(.*?)/gi) > -1) { mcTabs.displayTab('file_tab','file_panel'); document.forms[0].filepath.value = href.replace(/file:(\/\/\/\/\/)/gi, ""); } else if (href.search(/file:(\/\/)(.*?)/gi) > -1) { mcTabs.displayTab('file_tab','file_panel'); alert(href.replace(/file:(\/\/)/gi, "")); do...
function init() { var text = tinyMCE.getWindowArg('text').toString(); var href = tinyMCE.getWindowArg('href').toString(); document.forms[0].wiki_text.value = text; document.forms[0].web_text.value = text; document.forms[0].attach_text.value = text; document.forms[0].email_text.value = text; if ((hr...
var cols = 2, rows = 2, border = 0, cellpadding = "", cellspacing = "";
var cols = 2, rows = 2, border = tinyMCE.getParam('table_default_border', '0'), cellpadding = tinyMCE.getParam('table_default_cellpadding', ''), cellspacing = tinyMCE.getParam('table_default_cellspacing', '');
function init() { tinyMCEPopup.resizeToInnerSize(); document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroun...
alert(href.replace(/file:(\/\/)/gi, ""));
function init() { var text = tinyMCE.getWindowArg('text').toString(); var href = tinyMCE.getWindowArg('href').toString(); document.forms[0].wiki_text.value = text; document.forms[0].web_text.value = text; document.forms[0].file_text.value = text; document.forms[0].attach_text.value = text; document...
document.forms[0].attach.value = href.replace(/wikiattachment:-:/gi, "").replace(/%20/gi, " ");
document.forms[0].attach_file.value = href.replace(/wikiattachment:-:/gi, "").replace(/%20/gi, " ");
function init() { var text = tinyMCE.getWindowArg('text').toString(); var href = tinyMCE.getWindowArg('href').toString(); document.forms[0].wiki_text.value = text; document.forms[0].web_text.value = text; document.forms[0].file_text.value = text; document.forms[0].attach_text.value = text; document...
document.forms[0].filepath.value = href.replace(/file:(\/\/\/\/\/)/gi, "");
function init() { var text = tinyMCE.getWindowArg('text').toString(); var href = tinyMCE.getWindowArg('href').toString(); document.forms[0].wiki_text.value = text; document.forms[0].web_text.value = text; document.forms[0].file_text.value = text; document.forms[0].attach_text.value = text; document...
document.forms[0].filepath.value = href.replace(/file:(\/\/)/gi, "");
function init() { var text = tinyMCE.getWindowArg('text').toString(); var href = tinyMCE.getWindowArg('href').toString(); document.forms[0].wiki_text.value = text; document.forms[0].web_text.value = text; document.forms[0].file_text.value = text; document.forms[0].attach_text.value = text; document...
document.forms[0].attach.value = href.replace(/wikiattachment:-:/gi, "");
document.forms[0].attach.value = href.replace(/wikiattachment:-:/gi, "").replace(/%20/gi, " ");
function init() { var text = tinyMCE.getWindowArg('text').toString(); var href = tinyMCE.getWindowArg('href').toString(); document.forms[0].wiki_text.value = text; document.forms[0].web_text.value = text; document.forms[0].attach_text.value = text; document.forms[0].email_text.value = text; if ((hr...
tinyMCEPopup.resizeToInnerSize();
function init() { var formObj = document.forms[0]; formObj.width.value = tinyMCE.getWindowArg('width'); formObj.size.value = tinyMCE.getWindowArg('size'); formObj.insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('mceDo'),'Insert',true); if (tinyMCE.getWindowArg('noshade')) { formObj.noshade.checked = t...
var ce = document.getElementById('container');
var ce = document.getElementById('container'), h;
function init() { var ce = document.getElementById('container'); ce.style.cssText = tinyMCEPopup.getWindowArg('style_text'); tinyMCEPopup.resizeToInnerSize(); document.getElementById('text_color_pickcontainer').innerHTML = getColorPickerHTML('text_color_pick','text_color'); document.getElementById('background_color_pic...
h = getBrowserHTML('background_image_browser','background_image','image','advimage'); document.getElementById("background_image_browser").innerHTML = h;
function init() { var ce = document.getElementById('container'); ce.style.cssText = tinyMCEPopup.getWindowArg('style_text'); tinyMCEPopup.resizeToInnerSize(); document.getElementById('text_color_pickcontainer').innerHTML = getColorPickerHTML('text_color_pick','text_color'); document.getElementById('background_color_pic...
document.forms[0].href.value = tinyMCE.getWindowArg('src');;
var href = tinyMCE.getWindowArg('src') document.forms[0].href.value = href.replace(/%20/gi, " ");
function init() { editor_id = tinyMCE.getWindowArg('editor_id'); document.forms[0].href.value = tinyMCE.getWindowArg('src');; document.forms[0].width.value = tinyMCE.getWindowArg('width'); document.forms[0].height.value = tinyMCE.getWindowArg('height'); for (var i=0; i<document.forms[0].align.options.length...
this.addExternalProcessor((/{\s*attach\s*:\s*(.*?)(\|(.*?))?}/i), 'convertAttachmentExternal');
this.addExternalProcessorBefore("convertTableExternal", (/{\s*attach\s*:\s*(.*?)(\|(.*?))?}/i), 'convertAttachmentExternal');
WikiEditor.prototype.initAttachmentsPlugin = function() { if(!this.isPluginLoaded('core')) { alert("Attachment Plugin: You must load the core syntax plugin before!"); return; } this.addExternalProcessorBefore("convertTableExternal", (/{\s*image\s*:\s*(.*?)(\|(.*?))?(\|(.*?))?(\|(.*?))?}/i), 'convertImageExternal'); ...
this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal');
this.addInternalProcessor((/<p[^>]*>&nbsp;<\/p>/gi), ""); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal');
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^...
"?||||||" +
"||||||" +
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addInternalProcessor((/<p[^>]*>&nbsp;<\...
"?||||?||" +
"||||||" +
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addInternalProcessor((/<p[^>]*>&nbsp;<\...
this.addExternalProcessor((/\{style:\s*(.*?)\}([\s\S]+?)\{style\}/i), 'convertStyleExternal'); this.addInternalProcessor((/<(font|span|div)\s*(.*?)>([\s\S]+?)<\/(font|span|div)>/i), 'convertStyleInternal');
this.addExternalProcessorBefore('convertTableExternal', (/\{style:\s*(.*?)\}([\s\S]+?)\{style\}/i), 'convertStyleExternal'); this.addInternalProcessorBefore('convertTableInternal', (/<(font|span|div)\s*(.*?)>([\s\S]+?)<\/(font|span|div)>/i), 'convertStyleInternal');
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addInternalProcessor((/<p[^>]*>&nbsp;<\...
this.addInternalProcessor((/&nbsp;(?!\|)/gi), "");
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^...
"?||||||" +
"||||||" +
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^...
"?||||?||" +
"||||||" +
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addExternalProcessor((/^\s*((\*+)|#)\s+([^...
this.addExternalProcessor((/\{style:\s*(.*?)\}([\s\S]+?)\{style\}/i), 'convertStyleExternal'); this.addInternalProcessor((/<(font|span|div)\s*(.*?)>([\s\S]+?)<\/(font|span|div)>/i), 'convertStyleInternal');
WikiEditor.prototype.initCorePlugin = function() { // External/Internal conversion setup this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal'); this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal'); this.addInternalProcessor((/<p[^>]*>&nbsp;<\...
if(Draggable._revertCache[this.element]) { Draggable._revertCache[this.element].cancel(); Draggable._revertCache[this.element] = null; }
initDrag: function(event) { if(typeof Draggable._dragging[this.element] != 'undefined' && Draggable._dragging[this.element]) return; if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); if(src.tagName && ( src.tagName=='IN...
if(this.element._revert) { this.element._revert.cancel(); this.element._revert = null;
if(Draggable._revertCache[this.element]) { Draggable._revertCache[this.element].cancel(); Draggable._revertCache[this.element] = null;
initDrag: function(event) { if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); if(src.tagName && ( src.tagName=='INPUT' || src.tagName=='SELECT' || src.tagName=='OPTION' || src.tagName=='BUTTON' || sr...
if(typeof Draggable._dragging[this.element] != undefined && Draggable._dragging[this.element]) return;
initDrag: function(event) { if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); if(src.tagName && ( src.tagName=='INPUT' || src.tagName=='SELECT' || src.tagName=='OPTION' || src.tagName=='BUTTON' || sr...
if(this.element._revert) { this.element._revert.cancel(); this.element._revert = null; }
initDrag: function(event) { if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); if(src.tagName && ( src.tagName=='INPUT' || src.tagName=='SELECT' || src.tagName=='BUTTON' || src.tagName=='TEXTAREA')) return; ...
if(typeof Draggable._dragging[this.element] != undefined &&
if(typeof Draggable._dragging[this.element] != 'undefined' &&
initDrag: function(event) { if(typeof Draggable._dragging[this.element] != undefined && Draggable._dragging[this.element]) return; if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); if(src.tagName && ( src.tagName=='INPU...
src.tagName=='OPTION' ||
initDrag: function(event) { if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); if(src.tagName && ( src.tagName=='INPUT' || src.tagName=='SELECT' || src.tagName=='BUTTON' || src.tagName=='TEXTAREA')) return; ...
if (!base) { base = "gm_script"; }
this.initFilename = function(script) { var index = {}; var base = script.name.replace(/[^A-Z0-9_]/gi, "").toLowerCase(); // 24 is a totally arbitrary max length if (base.length > 24) { base = base.substring(0, 24); } for (var i = 0; i < this.scripts.length; i++) { index[this.scripts[i]...
testLoop.waitingForNext = function() { document.getElementById('continueTest').disabled = false; };
function initialiseTestLoop() { testLoop = new TestLoop(commandFactory); testLoop.getCommandInterval = function() { return runInterval; }; testLoop.firstCommand = nextCommand; testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; t...
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); } },
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...
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...
if (this.maxResolution == null || this.resolution == "auto") {
if (this.maxResolution == null || this.maxResolution == "auto") {
initialize: function (div, options) { Object.extend(this, options); this.div = div = $(div); // the viewPortDiv is the outermost div we modify var id = div.id + "_OpenLayers_ViewPort"; this.viewPortDiv = OpenLayers.Util.createDiv(id, null, null, null, ...
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%"; } },
this.controlDiv = OpenLayers.Util.createDiv( div.id + "_OpenLayers_Control" ); this.controlDiv.style.width="100%"; this.controlDiv.style.height="100%"; this.controlDiv.style.zIndex = this.Z_INDEX_BASE["Control"]; this.viewPortDiv.appendChild(this.controlDiv);
initialize: function (div, options) { Object.extend(this, options); this.div = div = $(div); // the viewPortDiv is the outermost div we modify this.viewPortDiv = OpenLayers.Util.createDiv( div.id + "_OpenLayers_ViewPort" ); this.viewPortDiv.style.wid...
initialize: function(element, frequency, callback) { this.frequency = frequency; this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); this.registerCallback();
initialize: function(element) { this.element = $(element); this.start = 153; this.finish = 255; this.current = this.start; this.fade();
initialize: function(element, frequency, callback) { this.frequency = frequency; this.element = $(element); this.callback = callback; this.lastValue = this.getValue(); this.registerCallback(); },
markers = new Array();
this.markers = new Array();
initialize: function(name) { OpenLayers.Layer.prototype.initialize.apply(this, arguments); markers = new Array(); },
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++; } },
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); },
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); },
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...
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...
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, elem...
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....
Object.extend(this.params, this.DEFAULT_PARAMS);
OpenLayers.Util.applyDefaults( this.params, this.DEFAULT_PARAMS );
initialize: function(name, url, params) { OpenLayers.Layer.Grid.prototype.initialize.apply(this, arguments); Object.extend(this.params, this.DEFAULT_PARAMS); },
this.handle.addEvent('mousedown', this.start.bindWithEvent(this));
this.bound = {'start': this.start.bindWithEvent(this)}; this.handle.addEvent('mousedown', this.bound.start);
initialize: function(el, options){ this.setOptions(this.getOptions(), options); this.element = $(el); this.handle = $(this.options.handle) || this.element; this.mouse = {'start': {}, 'now': {}, 'pos': {}}; this.value = {'start': {}, 'now': {}}; this.handle.addEvent('mousedown', this.start.bindWithEvent(this)); ...
initialize: function (object, element, eventTypes) {
initialize: function (object, element, eventTypes, fallThrough) {
initialize: function (object, element, eventTypes) { this.object = object; this.element = element; this.eventTypes = eventTypes; this.listeners = new Object(); // if eventTypes is specified, create a listeners list for each // custom application event. if (t...
this.fallThrough = fallThrough;
initialize: function (object, element, eventTypes) { this.object = object; this.element = element; this.eventTypes = eventTypes; this.listeners = new Object(); // if eventTypes is specified, create a listeners list for each // custom application event. if (t...
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) } ); },
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...
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(); },
this.expectedFailure = null; this.expectedFailureType = null;
initialize: function(htmlTestCase, metrics, seleniumCommandFactory) { this.commandFactory = new HtmlRunnerCommandFactory(seleniumCommandFactory, this); this.metrics = metrics; this.htmlTestCase = htmlTestCase; se = selenium; global.se = selenium; this.currentRow = null; ...
this.bound = {'start': []};
initialize: function(list, options){ this.setOptions(this.getOptions(), options); this.list = $(list); this.elements = this.list.getChildren(); this.handles = $$(this.options.handles) || this.elements; this.elements.each(function(el, i){ this.handles[i].addEvent('mousedown', this.start.bindWithEvent(this, el)...
this.bound.start[i] = this.start.bindWithEvent(this, el);
initialize: function(list, options){ this.setOptions(this.getOptions(), options); this.list = $(list); this.elements = this.list.getChildren(); this.handles = $$(this.options.handles) || this.elements; this.elements.each(function(el, i){ this.handles[i].addEvent('mousedown', this.start.bindWithEvent(this, el)...
this.events = new OpenLayers.Events(this, this.icon.image, null);
this.events = new OpenLayers.Events(this, this.icon.imageDiv, null);
initialize: function(lonlat, icon) { this.lonlat = lonlat; this.icon = (icon) ? icon : OpenLayers.Marker.defaultIcon(); this.events = new OpenLayers.Events(this, this.icon.image, null); },
initialize: function() {
initialize: function(direction) {
initialize: function() { OpenLayers.Control.prototype.initialize.apply(this, arguments); this.mode = null; },
this.mode = null;
if (direction) { this.direction = direction; }
initialize: function() { OpenLayers.Control.prototype.initialize.apply(this, arguments); this.mode = null; },
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; },
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; ...
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; ...
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()); },
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); },
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.option...
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 ...
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()...
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()...
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.HTTPReque...
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, elem...
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 = t...
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.initi...
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.initi...
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; ...
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.app...
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; th...
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 ? docum...
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); },
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.prot...
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...
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.prot...
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.prot...
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, ...
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 = t...
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); },
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.option...
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, {startco...
initialize: function(element, update, array, options) { this.base_initialize(element, update, options); this.options.array = array; },
var newArguments = new Array(); if (arguments.length > 0) { newArguments.push(name, options); }
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.prot...
initialize: function(url, size, offset) {
initialize: function(url, size, offset, calculateOffset) { this.url = url;
initialize: function(url, size, offset) { this.size = size; this.url = url; this.offset = (offset) ? offset : new OpenLayers.Pixel(0,0); this.image = OpenLayers.Util.createAlphaImageDiv(null, null, ...
this.url = url; this.offset = (offset) ? offset : new OpenLayers.Pixel(0,0);
this.offset = (offset) ? offset : new OpenLayers.Pixel(0,0); this.calculateOffset = calculateOffset;
initialize: function(url, size, offset) { this.size = size; this.url = url; this.offset = (offset) ? offset : new OpenLayers.Pixel(0,0); this.image = OpenLayers.Util.createAlphaImageDiv(null, null, ...
this.image = OpenLayers.Util.createAlphaImageDiv(null, null, this.size, this.url, "absolute" );
this.imageDiv = OpenLayers.Util.createAlphaImageDiv();
initialize: function(url, size, offset) { this.size = size; this.url = url; this.offset = (offset) ? offset : new OpenLayers.Pixel(0,0); this.image = OpenLayers.Util.createAlphaImageDiv(null, null, ...
if (color.blend && color.mix) return color;
if (color.mix && color.invert) return color;
initialize: function(color){ if (color.blend && color.mix) return color; var rgb = (color.push) ? color : color.hexToRgb(true); return Object.extend(rgb, Color.prototype); },
this.activeColor = OpenLayers.Control.LayerSwitcher.ACTIVE_COLOR; this.nonActiveColor = OpenLayers.Control.LayerSwitcher.NONACTIVE_COLOR; this.backdrops = [];
initialize: function(options) { this.activeColor = OpenLayers.Control.LayerSwitcher.ACTIVE_COLOR; this.nonActiveColor = OpenLayers.Control.LayerSwitcher.NONACTIVE_COLOR; this.backdrops = []; OpenLayers.Control.prototype.initialize.apply(this, arguments); },