rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
return [name + Sortable._constructIndex(item) + "=" +
return [name + Sortable._constructIndex(item) + "[id]=" +
return Sortable.tree(element, arguments[1]).children.map( function (item) { return [name + Sortable._constructIndex(item) + "=" + encodeURIComponent(item.id)].concat(item.children.map(arguments.callee)); }).flatten().join('&');
function() { tableOperation("TO-row-prop"); },
function() { tableOperation("TO-col-delete"); },
function() { tableOperation("TO-row-prop"); },
return this.collect(function(value, index) { return {value: value, criteria: iterator(value, index)}; }).sort(function(left, right) {
this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (result == undefined || value < result) result = value; });
return this.collect(function(value, index) { return {value: value, criteria: iterator(value, index)}; }).sort(function(left, right) {
return $(this.findElements(element, options) || []).map( function(item) { return item.id.match(options.format) ? item.id.match(options.format)[1] : ''; });
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
return $(this.findElements(element, options) || []).map( function(item) { return item.id.match(options.format) ? item.id.match(options.format)[1] : ''; });
this.tracks.map(function(track){ var elements = [$(track.ids) || $$(track.ids)].flatten(); return elements.map(function(e){ return new track.effect(e, Object.extend({ sync:true }, track.options)) }); }).flatten(),
this.transforms.each(function(transform){ value = transform.unit=='color' ? $R(0,2).inject('#',function(m,v,i){ return m+(Math.round(transform.originalValue[i]+ (transform.targetValue[i] - transform.originalValue[i])*position)).toColorPart() }) : transform.originalValue + Math.round( ((transform.targetValue - transform.originalValue) * position) * 1000)/1000 + transform.unit; style[transform.style] = value; });
this.tracks.map(function(track){ var elements = [$(track.ids) || $$(track.ids)].flatten(); return elements.map(function(e){ return new track.effect(e, Object.extend({ sync:true }, track.options)) }); }).flatten(),
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
return Sortable.sequence(element, arguments[1]).map( function(item) { return name + "[]=" + encodeURIComponent(item); }).join('&');
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
return this.map(function(value, index) { iterator(value = collections.pluck(index)); return value; });
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
function() { tableOperation("TO-row-insert-above"); },
function() { editor.execCommand("justifyleft"); }, null,
function() { tableOperation("TO-row-insert-above"); },
return (encodeURIComponent(options.name) + "[]=" + encodeURIComponent(item.id.match(options.format) ? item.id.match(options.format)[1] : '')); }).join("&");
return item.id.match(options.format) ? item.id.match(options.format)[1] : ''; });
return $(this.findElements(element, options) || []).map( function(item) { return (encodeURIComponent(options.name) + "[]=" + encodeURIComponent(item.id.match(options.format) ? item.id.match(options.format)[1] : '')); }).join("&");
}).sort(function(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value');
this.each(function(value, index) { ((iterator || Prototype.K)(value, index) ? trues : falses).push(value); });
}).sort(function(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value');
this.findElements(element, options).each( function(n) { if (n.id.match(options.format)) nodeMap[n.id.match(options.format)[1]] = [n, n.parentNode]; n.parentNode.removeChild(n);
return $(this.findElements(element, options) || []).map( function(item) { return item.id.match(options.format) ? item.id.match(options.format)[1] : '';
this.findElements(element, options).each( function(n) { if (n.id.match(options.format)) nodeMap[n.id.match(options.format)[1]] = [n, n.parentNode]; n.parentNode.removeChild(n); });
return elements.map(function(e){ return new track.effect(e, Object.extend({ sync:true }, track.options)) });
$R(0,2).inject('#',function(m,v,i){ return m+(Math.round(transform.originalValue[i]+ (transform.targetValue[i] - transform.originalValue[i])*position)).toColorPart() }) :
return elements.map(function(e){ return new track.effect(e, Object.extend({ sync:true }, track.options)) });
return $(this.findElements(element, options) || []).map( function(item) { return item.id.match(options.format) ? item.id.match(options.format)[1] : ''; });
$A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==tagName && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(recursive) { var grandchildren = Element.findChildren(e, only, recursive, tagName); if(grandchildren) elements.push(grandchildren); } });
return $(this.findElements(element, options) || []).map( function(item) { return item.id.match(options.format) ? item.id.match(options.format)[1] : ''; });
function() {return new ActiveXObject('Microsoft.XMLHTTP')},
return this.select(function(value) { return value != undefined || value != null; });
function() {return new ActiveXObject('Microsoft.XMLHTTP')},
function() { tableOperation("TO-row-insert-under"); },
function() { editor.execCommand("justifycenter"); }, null,
function() { tableOperation("TO-row-insert-under"); },
return encodeURIComponent(element.id) + "[]=" + encodeURIComponent(item);
return name + "[]=" + encodeURIComponent(item);
return Sortable.sequence(element, arguments[1]).map( function(item) { return encodeURIComponent(element.id) + "[]=" + encodeURIComponent(item); }).join('&');
return this.map(function(value, index) { iterator(value = collections.pluck(index)); return value;
this.each(function(value, index) { results.push(value[property]);
return this.map(function(value, index) { iterator(value = collections.pluck(index)); return value; });
new_sequence.each(function(ident) { var n = nodeMap[ident]; if (n) { n[1].appendChild(n[0]); delete nodeMap[ident]; }
this.findElements(element, options).each( function(n) { if (n.id.match(options.format)) nodeMap[n.id.match(options.format)[1]] = [n, n.parentNode]; n.parentNode.removeChild(n);
new_sequence.each(function(ident) { var n = nodeMap[ident]; if (n) { n[1].appendChild(n[0]); delete nodeMap[ident]; } });
Element.CSS_PROPERTIES.each(function(property){ if(style[property]) styleRules[property] = style[property]; });
tracks.each(function(track){ var data = $H(track).values().first(); this.tracks.push($H({ ids: $H(track).keys().first(), effect: Effect.Morph, options: { style: data } })); }.bind(this));
Element.CSS_PROPERTIES.each(function(property){ if(style[property]) styleRules[property] = style[property]; });
this.findElements(element, options).each( function(n) { if (n.id.match(options.format)) nodeMap[n.id.match(options.format)[1]] = [n, n.parentNode]; n.parentNode.removeChild(n); });
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
this.findElements(element, options).each( function(n) { if (n.id.match(options.format)) nodeMap[n.id.match(options.format)[1]] = [n, n.parentNode]; n.parentNode.removeChild(n); });
function() {return new XMLHttpRequest()}
return this.inject([], function(array, value) { return array.concat(value.constructor == Array ? value.flatten() : [value]); });
function() {return new XMLHttpRequest()}
function() { tableOperation("TO-row-delete"); },
function() { editor.execCommand("justifyright"); }, null,
function() { tableOperation("TO-row-delete"); },
return this.select(function(value) { return value != undefined || value != null;
this.each(function(value, index) { if (!iterator(value, index)) results.push(value);
return this.select(function(value) { return value != undefined || value != null; });
return Sortable.sequence(element, arguments[1]).map( function(item) { return name + "[]=" + encodeURIComponent(item); }).join('&');
new_sequence.each(function(ident) { var n = nodeMap[ident]; if (n) { n[1].appendChild(n[0]); delete nodeMap[ident]; } });
return Sortable.sequence(element, arguments[1]).map( function(item) { return name + "[]=" + encodeURIComponent(item); }).join('&');
styleRules.each(function(pair){ var property = pair[0], value = pair[1], unit = null; if(value.parseColor('#zzzzzz') != '#zzzzzz') { value = value.parseColor(); unit = 'color'; } else if(Element.CSS_LENGTH.test(value)) var components = value.match(/^([\+\-]?[0-9\.]+)(.*)$/), value = parseFloat(components[1]), unit = (components.length == 3) ? components[2] : null; result[property.underscore().dasherize()] = $H({ value:value, unit:unit }); }.bind(this));
this.tracks.map(function(track){ var elements = [$(track.ids) || $$(track.ids)].flatten(); return elements.map(function(e){ return new track.effect(e, Object.extend({ sync:true }, track.options)) }); }).flatten(),
styleRules.each(function(pair){ var property = pair[0], value = pair[1], unit = null; if(value.parseColor('#zzzzzz') != '#zzzzzz') { value = value.parseColor(); unit = 'color'; } else if(Element.CSS_LENGTH.test(value)) var components = value.match(/^([\+\-]?[0-9\.]+)(.*)$/), value = parseFloat(components[1]), unit = (components.length == 3) ? components[2] : null; result[property.underscore().dasherize()] = $H({ value:value, unit:unit }); }.bind(this));
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
return this.select(function(value) { return !values.include(value); });
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
function() { tableOperation("TO-table-prop"); },
function() { editor.execCommand("justifyfull"); }, null,
function() { tableOperation("TO-table-prop"); },
return this.inject([], function(array, value) { return array.concat(value.constructor == Array ? value.flatten() : [value]); });
return this.collect(function(value, index) { return {value: value, criteria: iterator(value, index)}; }).sort(function(left, right) {
return this.inject([], function(array, value) { return array.concat(value.constructor == Array ? value.flatten() : [value]); });
function(f) { Element.Methods[f] = Element[f]; }
return elements.map(function(e){ return new track.effect(e, Object.extend({ sync:true }, track.options)) });
function(f) { Element.Methods[f] = Element[f]; }
this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this);
return $H(hash).inject($H(this), function(mergedHash, pair) { mergedHash[pair.key] = pair.value; return mergedHash; });
this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this);
return this.map(function(value, index) { return iterator(collections.pluck(index)); });
}).sort(function(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value');
return this.map(function(value, index) { return iterator(collections.pluck(index)); });
this.options.onComplete = (function(transport, object) {
this.options.onComplete = (function() {
this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this);
onComplete(transport, object);
onComplete(this.transport);
this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this);
function() { tableOperation("TO-col-insert-before"); },
function() { editor.config.btnList['createlink'][3](editor); },
function() { tableOperation("TO-col-insert-before"); },
this.options.onComplete = (function() {
this.options.onComplete = (function(transport, object) {
this.options.onComplete = (function() { this.updateContent(); onComplete(this.transport); }).bind(this);
onComplete(this.transport);
onComplete(transport, object);
this.options.onComplete = (function() { this.updateContent(); onComplete(this.transport); }).bind(this);
return this.select(function(value) { return !values.include(value); });
}).sort(function(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value');
return this.select(function(value) { return !values.include(value); });
setTimeout((function() { for (var i = 0; i < scripts.length; i++) eval(scripts[i].match(match)[1]); }).bind(this), 10);
return this.map(function(pair) { return pair.map(encodeURIComponent).join('='); }).join('&');
setTimeout((function() { for (var i = 0; i < scripts.length; i++) eval(scripts[i].match(match)[1]); }).bind(this), 10);
return this.select(function(value) { return value != undefined || value != null;
return this.map(function(value, index) { return iterator(collections.pluck(index));
return this.select(function(value) { return value != undefined || value != null; });
setTimeout((function() { for (var i = 0; i < scripts.length; i++) eval(scripts[i].match(match)[1]); }).bind(this), 10);
setTimeout((function() {this.onComplete( this.transport)}).bind(this), 10);
setTimeout((function() { for (var i = 0; i < scripts.length; i++) eval(scripts[i].match(match)[1]); }).bind(this), 10);
function() { tableOperation("TO-col-insert-after"); },
function() { if (confirm(HTMLArea._lc("Please confirm that you want to remove this element:", "ContextMenu") + " " + currentTarget.tagName)) { var el = currentTarget; var p = el.parentNode; p.removeChild(el); if (HTMLArea.is_gecko) { if (p.tagName.toLowerCase() == "td" && !p.hasChildNodes()) p.appendChild(editor._doc.createElement("br")); editor.forceRedraw(); editor.focusEditor(); editor.updateToolbar(); if (table) { var save_collapse = table.style.borderCollapse; table.style.borderCollapse = "collapse"; table.style.borderCollapse = "separate"; table.style.borderCollapse = save_collapse; } } } },
function() { tableOperation("TO-col-insert-after"); },
setTimeout((function() {this.onComplete( this.transport)}).bind(this), 10);
setTimeout((function() { for (var i = 0; i < scripts.length; i++) eval(scripts[i].match(match)[1]); }).bind(this), 10);
setTimeout((function() {this.onComplete( this.transport)}).bind(this), 10);
return $H(hash).inject($H(this), function(mergedHash, pair) { mergedHash[pair.key] = pair.value; return mergedHash;
return this.map(function(value, index) { return iterator(collections.pluck(index));
return $H(hash).inject($H(this), function(mergedHash, pair) { mergedHash[pair.key] = pair.value; return mergedHash; });
return this.inject([], function(array, value) { return array.concat(value.constructor == Array ? value.flatten() : [value]);
return this.select(function(value) { return value != undefined || value != null;
return this.inject([], function(array, value) { return array.concat(value.constructor == Array ? value.flatten() : [value]); });
function() { tableOperation("TO-col-delete"); },
function() { insertPara(false); },
function() { tableOperation("TO-col-delete"); },
return this.map(function(pair) { return pair.map(encodeURIComponent).join('='); }).join('&');
return this.select(function(value) { return value != undefined || value != null; });
return this.map(function(pair) { return pair.map(encodeURIComponent).join('='); }).join('&');
return this.select(function(value) { return !values.include(value);
return this.inject([], function(array, value) { return array.concat(value && value.constructor == Array ? value.flatten() : [value]);
return this.select(function(value) { return !values.include(value); });
function() { editor.execCommand("justifyleft"); }, null,
function() { insertPara(true); },
function() { editor.execCommand("justifyleft"); }, null,
return '#<Hash:{' + this.map(function(pair) { return pair.map(Object.inspect).join(': '); }).join(', ') + '}>';
return this.inject([], function(array, value) { return array.concat(value && value.constructor == Array ? value.flatten() : [value]); });
return '#<Hash:{' + this.map(function(pair) { return pair.map(Object.inspect).join(': '); }).join(', ') + '}>';
return drop._containers.detect(function(c) { return parentNode == c });
return drop._containers.detect(function(c) { return containmentNode == c });
return drop._containers.detect(function(c) { return parentNode == c });
return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? Element.hasClassName(c, className) : false; })].flatten();
var results = $A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return (c.className && c.className.match(classNameRegExp)); });
return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? Element.hasClassName(c, className) : false; })].flatten();
return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? c.className.match(classNameRegExp) : false; })].flatten();
var results = $A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return (c.className && c.className.match(classNameRegExp)); });
return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? c.className.match(classNameRegExp) : false; })].flatten();
if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(new RegExp('\\smce_src=\"[^\"]*\"', 'gi'), ""); n.nodeValue = n.nodeValue.replace(new RegExp('\\smce_href=\"[^\"]*\"', 'gi'), ""); }
if (n.nodeType == 3 || n.nodeType == 8) n.nodeValue = n.nodeValue.replace(new RegExp('\\s(mce_src|mce_href)=\"[^\"]*\"', 'gi'), "");
tinyMCE.selectNodes(n, function(n) { if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(new RegExp('\\smce_src=\"[^\"]*\"', 'gi'), ""); n.nodeValue = n.nodeValue.replace(new RegExp('\\smce_href=\"[^\"]*\"', 'gi'), ""); } return false; });
element.addEventListener(eventType, function(evt) { savedEvent = evt; }, false);
this.locationStrategies['implicit'] = function(locator, inDocument, inWindow) { if (locator.startsWith(' return this.locateElementByXPath(locator, inDocument, inWindow); } if (locator.startsWith('document.')) { return this.locateElementByDomTraversal(locator, inDocument, inWindow); } return this.locateElementByIdentifier(locator, inDocument, inWindow); };
element.addEventListener(eventType, function(evt) { savedEvent = evt; }, false);
return function () { return new Date().getTime() > (now + 20); }
element.addEventListener(eventType, function(evt) { savedEvent = evt; }, false);
return function () { return new Date().getTime() > (now + 20); }
result.disabled = true;
var element = this.getRecorder(window).clickedElement; if (element) { result.target = exactMatchPattern(getText(element)); } else { result.disabled = true; }
CommandBuilders.add('accessor', function(window) { var result = { accessor: "textPresent", booleanAccessor: true }; var selection = String(window.getSelection()); if (selection) { result.target = selection; } else { result.disabled = true; } return result; });
preventDefault = evt.getPreventDefault();
savedEvent = evt;
element.addEventListener(eventType, function(evt) { preventDefault = evt.getPreventDefault(); }, false);
this.locationStrategies['implicit'] = function(locator, inDocument, inWindow) { if (locator.startsWith(' return this.locateElementByXPath(locator, inDocument, inWindow); } if (locator.startsWith('document.')) { return this.locateElementByDomTraversal(locator, inDocument, inWindow); } return this.locateElementByIdentifier(locator, inDocument, inWindow); };
element.addEventListener(eventType, function(evt) { savedEvent = evt; }, false);
this.locationStrategies['implicit'] = function(locator, inDocument, inWindow) { if (locator.startsWith('//')) { return this.locateElementByXPath(locator, inDocument, inWindow); } if (locator.startsWith('document.')) { return this.locateElementByDomTraversal(locator, inDocument, inWindow); } return this.locateElementByIdentifier(locator, inDocument, inWindow); };
if (!element.parentNode) { return; } elementSetStyle(element, {"background-color" : element.originalColor});
try { if (!element.parentNode) { return; } elementSetStyle(element, {"backgroundColor" : element.originalColor}); } catch (e) {}
window.setTimeout(function() { //if element is orphan, probably page of it has already gone, so ignore if (!element.parentNode) { return; } elementSetStyle(element, {"background-color" : element.originalColor}); }, 200);
items.each(function(item){ if ($(item)) elements.push(item); });
return function(){ var args = arguments; var items = []; var elements = true; $each(this, function(el){ var returns = el[property].apply(el, args); if ($type(returns) != 'element') elements = false; items.push(returns); }); if (elements) items = $$(items); return items; };
items.each(function(item){ if ($(item)) elements.push(item); });
this.test = test || function() {};
$$("tr.passed .nameCell").each( function(td){ td.title = "Run all tests" Event.observe(td, 'click', function(){ window.location.search = "";}); });
this.test = test || function() {};
if (!path.match(/^file:/)) {
if (!path.match(/^(file|chrome):/)) {
commaSeparatedPaths.split(/,/).forEach(function(path) { path = path.replace(/^\s*/, ''); path = path.replace(/\s*$/, ''); if (!path.match(/^file:/)) { path = FileUtils.fileURI(FileUtils.getFile(path)); } urls.push(path); });
this.suiteRows.each(function(row) { row.reset(); });
this.trElement.onclick = fnBindAsEventListener(function() { this.onClick(); }, this);
this.suiteRows.each(function(row) { row.reset(); });
return function() { if (!isResultReady) { var tmp = proc(); if (!isResultReady) { isResultReady = true; result = tmp; } } return result;
return function(sym) { counter++; if (!sym) sym = ""; return "s" + counter + "~" + sym + "^sC-GeNsYm ";
return function() { if (!isResultReady) { var tmp = proc(); if (!isResultReady) { isResultReady = true; result = tmp; } } return result; };
.slideUp('medium', function () { $(fieldset).addClass('collapsed'); fieldset.animating = false; } )
$('fieldset.collapsible > legend').each(function() { var fieldset = $(this.parentNode); if ($('input.error, textarea.error, select.error', fieldset).size() > 0) { fieldset.removeClass('collapsed'); } var text = this.innerHTML; $(this).empty().append($('<a href="#">'+ text +'</a>').click(function() { var fieldset = $(this).parents('fieldset:first')[0]; if (!fieldset.animating) { fieldset.animating = true; Drupal.toggleFieldset(fieldset); } return false; })).after($('<div class="fieldset-wrapper"></div>').append(fieldset.children(':not(legend)'))); });
.slideUp('medium', function () { $(fieldset).addClass('collapsed'); fieldset.animating = false; } )
this.trElement.onclick = fnBindAsEventListener(function() { this.onClick(); }, this);
this.highlightOption.onclick = fnBindAsEventListener((function() { this.setHighlightOption(); }), this);
this.trElement.onclick = fnBindAsEventListener(function() { this.onClick(); }, this);
__method.call(object, event || window.event);
return __method.call(object, event || window.event);
return function(event) { __method.call(object, event || window.event); }
function() { if (self.selectedDefinition) { self.doShow(); } },
setTimeout(function() { self.appendWaitForPageToLoad(doc); }, 0);
function() { if (self.selectedDefinition) { self.doShow(); } },
function(str, p1, offset, s) { result = eval(p1); return result != null ? result : ''; });
text = text.replace(/ {2,}/g, function(str) { var result = ''; for (var i = 0; i < str.length; i++) { result += '&nbsp;'; } return result; });
function(str, p1, offset, s) { result = eval(p1); return result != null ? result : ''; });
function(klass) { return (klass == removeClasses[index]) } ).join(' ');
$A(element.childNodes).each( function(child) { if(child.nodeType==3) { child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == " " ? String.fromCharCode(160) : character), child); }); Element.remove(child); } });
function(klass) { return (klass == removeClasses[index]) } ).join(' ');
return c.className ? Element.hasClassName(c, className) : false;
return c.className ? c.className.match(classNameRegExp) : false;
return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? Element.hasClassName(c, className) : false; })].flatten();
return $H(hash).inject($H(this), function(mergedHash, pair) { mergedHash[pair.key] = pair.value; return mergedHash;
return this.select(function(value) { return !values.include(value);
return $H(hash).inject($H(this), function(mergedHash, pair) { mergedHash[pair.key] = pair.value; return mergedHash; });
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
return this.select(function(value) { return !values.include(value); });
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
return this.map(function(pair) { return pair.map(encodeURIComponent).join('='); }).join('&');
return $H(hash).inject($H(this), function(mergedHash, pair) { mergedHash[pair.key] = pair.value; return mergedHash; });
return this.map(function(pair) { return pair.map(encodeURIComponent).join('='); }).join('&');
function() {return new ActiveXObject('Microsoft.XMLHTTP')},
return $H(hash).inject($H(this), function(mergedHash, pair) { mergedHash[pair.key] = pair.value; return mergedHash; });
function() {return new ActiveXObject('Microsoft.XMLHTTP')},
return '#<Hash:{' + this.map(function(pair) { return pair.map(Object.inspect).join(': '); }).join(', ') + '}>';
return this.map(function(pair) { return pair.map(encodeURIComponent).join('='); }).join('&');
return '#<Hash:{' + this.map(function(pair) { return pair.map(Object.inspect).join(': '); }).join(', ') + '}>';
function() {return new XMLHttpRequest()}
return this.map(function(pair) { return pair.map(encodeURIComponent).join('='); }).join('&');
function() {return new XMLHttpRequest()}
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
return '#<Hash:{' + this.map(function(pair) { return pair.map(Object.inspect).join(': '); }).join(', ') + '}>';
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
this.each(function(responder) { if (responder[callback] && typeof responder[callback] == 'function') { try { responder[callback].apply(responder, [request, transport, json]); } catch (e) {} } });
return '#<Hash:{' + this.map(function(pair) { return pair.map(Object.inspect).join(': '); }).join(', ') + '}>';
this.each(function(responder) { if (responder[callback] && typeof responder[callback] == 'function') { try { responder[callback].apply(responder, [request, transport, json]); } catch (e) {} } });
function() {return new ActiveXObject('Microsoft.XMLHTTP')},
function() {return new XMLHttpRequest()},
function() {return new ActiveXObject('Microsoft.XMLHTTP')},
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
function() {return new XMLHttpRequest()},
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
function() {return new XMLHttpRequest()}
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
function() {return new XMLHttpRequest()}
this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this);
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this);
this.each(function(responder) { if (responder[callback] && typeof responder[callback] == 'function') { try { responder[callback].apply(responder, [request, transport, json]); } catch (e) {} } });
function() {return new ActiveXObject('Microsoft.XMLHTTP')}
this.each(function(responder) { if (responder[callback] && typeof responder[callback] == 'function') { try { responder[callback].apply(responder, [request, transport, json]); } catch (e) {} } });
return $A(children).inject([], function(elements, child) { if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(child); return elements; });
function() {return new ActiveXObject('Microsoft.XMLHTTP')}
return $A(children).inject([], function(elements, child) { if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(child); return elements; });
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
this.each(function(responder) { if (responder[callback] && typeof responder[callback] == 'function') { try { responder[callback].apply(responder, [request, transport, json]); } catch (e) {} } });
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
setTimeout(function() {html.evalScripts()}, 10);
this.each(function(responder) { if (responder[callback] && typeof responder[callback] == 'function') { try { responder[callback].apply(responder, [request, transport, json]); } catch (e) {} } });
setTimeout(function() {html.evalScripts()}, 10);
this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this);
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this);
setTimeout(function() {content.evalScripts()}, 10);
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
setTimeout(function() {content.evalScripts()}, 10);
return $A(children).inject([], function(elements, child) { if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(Element.extend(child)); return elements; });
this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this);
return $A(children).inject([], function(elements, child) { if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(Element.extend(child)); return elements; });
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element); }).bind(this));
this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this);
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element); }).bind(this));
if ($Element(el, 'hasClass', className)) found.push(el);
if (Element.prototype.hasClass.call(el, className)) found.push(el);
this.each(function(el){ if ($Element(el, 'hasClass', className)) found.push(el); });
function(f) { Element.Methods[f] = Element[f]; }
this.each(function(f){ f.apply(this, args) });
function(f) { Element.Methods[f] = Element[f]; }
window.setTimeout(function() { lnk.setAttribute("href", lnk.getAttribute("mce_real_href")); lnk.removeAttribute("mce_real_href"); }, 10);
tinyMCE.addEvent(element, "focus", function (e) {window.setTimeout(function() {TinyMCE_Engine.prototype.confirmAdd(e, settings);}, 10);});
window.setTimeout(function() { lnk.setAttribute("href", lnk.getAttribute("mce_real_href")); lnk.removeAttribute("mce_real_href"); }, 10);
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != _continue) throw e; } });
return pairs.inject({}, function(params, pairString) { var pair = pairString.split('='); params[pair[0]] = pair[1]; return params; });
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != _continue) throw e; } });
function(element) { return element.className == locator }
element.addEventListener(eventType, function(evt) { savedEvent = evt; }, false);
function(element) { return element.className == locator }
element.addEventListener(eventType, function(evt) { savedEvent = evt; }, false);
function(element) { return element.className == locator }
element.addEventListener(eventType, function(evt) { savedEvent = evt; }, false);
var type = $type(returns); if (type != 'element') elements = false;
if ($type(returns) != 'element') elements = false;
return function(){ var args = arguments; var items = []; var elements = true; $each(this, function(el){ var returns = el[property].apply(el, args); var type = $type(returns); if (type != 'element') elements = false; items.push(returns); }); if (elements) items = $$(items); return items; };
result = eval(p1); return result != null ? result : ''; });
result = eval(p1, {command: command, comment: comment}); return result != null ? result : ''; });
function(str, p1, offset, s) { result = eval(p1); return result != null ? result : ''; });
return function(){ var args = arguments; var items = []; var elements = true; $each(this, function(el){
$each(this, function(el){
return function(){ var args = arguments; var items = []; var elements = true; $each(this, function(el){ var returns = el[property].apply(el, args); if ($type(returns) != 'element') elements = false; items.push(returns); }); if (elements) items = $$(items); return items; };