rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (iterator(value, index)) results.push(value);
result = result && !!(iterator || Prototype.K)(value, index); if (!result) throw $break;
this.each(function(value, index) { if (iterator(value, index)) results.push(value); });
['top','left','width','height','fontSize'].each( function(k) { effect.originalStyle[k] = effect.element.style[k];
['em','px','%'].each( function(fontSizeType) { if(fontSize.indexOf(fontSizeType)>0) { effect.fontSize = parseFloat(fontSize); effect.fontSizeType = fontSizeType; }
['top','left','width','height','fontSize'].each( function(k) { effect.originalStyle[k] = effect.element.style[k]; });
return $A(element.childNodes).collect( function(item) {
return $(this.findElements(element, options) || []).collect( function(item) {
return $A(element.childNodes).collect( function(item) { return (encodeURIComponent(options.name) + "[]=" + encodeURIComponent(item.id.split("_")[1])); }).join("&");
encodeURIComponent(item.id.split("_")[1]));
encodeURIComponent(item.id.match(options.format) ? item.id.match(options.format)[1] : ''));
return $A(element.childNodes).collect( function(item) { return (encodeURIComponent(options.name) + "[]=" + encodeURIComponent(item.id.split("_")[1])); }).join("&");
el = tinyMCE.selectNodes(e, function(n) { if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(/\smce_tsrc=/gi, " src="); n.nodeValue = n.nodeValue.replace(/\smce_thref=/gi, " href=");
tinyMCE.selectElements(e, 'A,IMG,SELECT,AREA,IFRAME,BASE,INPUT,SCRIPT,EMBED,OBJECT,LINK', function (n) { xsrc = tinyMCE.getAttrib(n, "mce_tsrc"); xhref = tinyMCE.getAttrib(n, "mce_thref"); if (xsrc != "") { try { n.src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc); } catch (e) { } n.removeAttribute("mce_tsrc"); } if (xhref != "") { try { n.href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref); } catch (e) { } n.removeAttribute("mce_thref");
el = tinyMCE.selectNodes(e, function(n) { if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(/\smce_tsrc=/gi, " src="); n.nodeValue = n.nodeValue.replace(/\smce_thref=/gi, " href="); } return false; });
this.each(function(value, index) { memo = iterator(memo, value, index);
this.each(function(value) { if (value == object) { found = true; throw $break; }
this.each(function(value, index) { memo = iterator(memo, value, index); });
results.push(iterator(value, index));
if (result = !!(iterator || Prototype.K)(value, index)) throw $break;
this.each(function(value, index) { results.push(iterator(value, index)); });
function() { tableOperation("TO-cell-prop"); },
function() { tableOperation("TO-cell-delete"); },
function() { tableOperation("TO-cell-prop"); },
['top','left','width','height','fontSize'].each( function(k) { this.originalStyle[k] = this.element.style[k];
['em','px','%','pt'].each( function(fontSizeType) { if(fontSize.indexOf(fontSizeType)>0) { this.fontSize = parseFloat(fontSize); this.fontSizeType = fontSizeType; }
['top','left','width','height','fontSize'].each( function(k) { this.originalStyle[k] = this.element.style[k]; }.bind(this));
var stringValue = value.toString(); if (stringValue.match(pattern)) results.push((iterator || Prototype.K)(value, index)); })
if (result = !!(iterator || Prototype.K)(value, index)) throw $break; });
this.each(function(value, index) { var stringValue = value.toString(); if (stringValue.match(pattern)) results.push((iterator || Prototype.K)(value, index)); })
['em','px','%'].each( function(fontSizeType) { if(fontSize.indexOf(fontSizeType)>0) { effect.fontSize = parseFloat(fontSize); effect.fontSizeType = fontSizeType; } });
['top','left','width','height','fontSize'].each( function(k) { effect.element.style[k] = effect.originalStyle[k]; });
['em','px','%'].each( function(fontSizeType) { if(fontSize.indexOf(fontSizeType)>0) { effect.fontSize = parseFloat(fontSize); effect.fontSizeType = fontSizeType; } });
['em','px','%'].each( function(fontSizeType) {
['em','px','%','pt'].each( function(fontSizeType) {
['em','px','%'].each( function(fontSizeType) { if(fontSize.indexOf(fontSizeType)>0) { this.fontSize = parseFloat(fontSize); this.fontSizeType = fontSizeType; } }.bind(this));
['top','left','width','height','fontSize'].each( function(k) { this.originalStyle[k] = this.element.style[k];
['em','px','%'].each( function(fontSizeType) { if(fontSize.indexOf(fontSizeType)>0) { this.fontSize = parseFloat(fontSize); this.fontSizeType = fontSizeType; }
['top','left','width','height','fontSize'].each( function(k) { this.originalStyle[k] = this.element.style[k]; }.bind(this));
return this.collect(function(value) { return value[method].apply(value, args);
this.each(function(value, index) { memo = iterator(memo, value, index);
return this.collect(function(value) { return value[method].apply(value, args); });
if (iterator(value, index)) { result = value; throw $break; }
results.push(iterator(value, index));
this.each(function(value, index) { if (iterator(value, index)) { result = value; throw $break; } });
function() { tableOperation("TO-cell-insert-after"); },
function() { tableOperation("TO-cell-merge"); },
function() { tableOperation("TO-cell-insert-after"); },
['em','px','%','pt'].each( function(fontSizeType) { if(fontSize.indexOf(fontSizeType)>0) { this.fontSize = parseFloat(fontSize); this.fontSizeType = fontSizeType; } }.bind(this));
this._base = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this));
['em','px','%','pt'].each( function(fontSizeType) { if(fontSize.indexOf(fontSizeType)>0) { this.fontSize = parseFloat(fontSize); this.fontSizeType = fontSizeType; } }.bind(this));
this.each(function(value) { if (value == object) { found = true; throw $break; }
this.each(function(value, index) { results.push(iterator(value, index));
this.each(function(value) { if (value == object) { found = true; throw $break; } });
['top','left','width','height','fontSize'].each( function(k) { effect.element.style[k] = effect.originalStyle[k]; });
var effect = this; var colors = $R(0,2).map( function(i){ return Math.round(effect.colors_base[i]+(effect.colors_delta[i]*position)) });
['top','left','width','height','fontSize'].each( function(k) { effect.element.style[k] = effect.originalStyle[k]; });
['em','px','%'].each( function(fontSizeType) { if(fontSize.indexOf(fontSizeType)>0) { this.fontSize = parseFloat(fontSize); this.fontSizeType = fontSizeType; } }.bind(this));
this._base = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this));
['em','px','%'].each( function(fontSizeType) { if(fontSize.indexOf(fontSizeType)>0) { this.fontSize = parseFloat(fontSize); this.fontSizeType = fontSizeType; } }.bind(this));
this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (value >= (result || value)) result = value;
return this.collect(function(value) { return value[method].apply(value, args);
this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (value >= (result || value)) result = value; });
Element.setStyle(this.element,{backgroundColor: '#' + $R(0,2).map(function(i){ return Math.round(this._base[i]+(this._delta[i]*position)).toColorPart(); }.bind(this)).join('') });
this._base = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this));
Element.setStyle(this.element,{backgroundColor: '#' + $R(0,2).map(function(i){ return Math.round(this._base[i]+(this._delta[i]*position)).toColorPart(); }.bind(this)).join('') });
if (iterator(value, index)) results.push(value);
if (iterator(value, index)) { result = value; throw $break; }
this.each(function(value, index) { if (iterator(value, index)) results.push(value); });
function() { tableOperation("TO-cell-insert-before"); },
function() { tableOperation("TO-row-prop"); },
function() { tableOperation("TO-cell-insert-before"); },
this._base = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this));
this._delta = $R(0,2).map(function(i){ return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i] }.bind(this));
this._base = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this));
memo = iterator(memo, value, index);
if (iterator(value, index)) { result = value; throw $break; }
this.each(function(value, index) { memo = iterator(memo, value, index); });
this.element.setStyle({backgroundColor: $R(0,2).inject('#',function(m,v,i){ return m+(Math.round(this._base[i]+(this._delta[i]*position)).toColorPart()); }.bind(this)) });
this._delta = $R(0,2).map(function(i){ return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i] }.bind(this));
this.element.setStyle({backgroundColor: $R(0,2).inject('#',function(m,v,i){ return m+(Math.round(this._base[i]+(this._delta[i]*position)).toColorPart()); }.bind(this)) });
return this.sortables.detect(function(s) { return s.element == element });
s.droppables.each(function(d){ Droppables.remove(d) });
return this.sortables.detect(function(s) { return s.element == element });
if (value <= (result || value))
if (value >= (result || value))
this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (value <= (result || value)) result = value; });
function() { tableOperation("TO-cell-delete"); },
function() { tableOperation("TO-row-insert-above"); },
function() { tableOperation("TO-cell-delete"); },
return this.collect(function(value) { return value[method].apply(value, args);
this.each(function(value, index) { if (iterator(value, index)) results.push(value);
return this.collect(function(value) { return value[method].apply(value, args); });
return $R(0,2).map(function(i){ return parseInt( color.slice(i*2+1,i*2+3), 16 ) });
$A(document.styleSheets).reverse().each(function(styleSheet) { if (styleSheet.cssRules) cssRules = styleSheet.cssRules; else if (styleSheet.rules) cssRules = styleSheet.rules; $A(cssRules).reverse().each(function(rule) { if (selector == rule.selectorText) { cssText = rule.style.cssText; throw $break; } }); if (cssText) throw $break; });
return $R(0,2).map(function(i){ return parseInt( color.slice(i*2+1,i*2+3), 16 ) });
this.sortables.findAll(function(s) { return s.element == element }).each(function(s){
(this.findElements(element, options) || []).each( function(e) { var handle = options.handle ? Element.childrenWithClassName(e, options.handle)[0] : e; options.draggables.push( new Draggable(e, Object.extend(options_for_draggable, { handle: handle }))); Droppables.add(e, options_for_droppable); if(options.tree) e.treeNode = element; options.droppables.push(e); });
this.sortables.findAll(function(s) { return s.element == element }).each(function(s){
((iterator || Prototype.K)(value, index) ? trues : falses).push(value);
value = (iterator || Prototype.K)(value, index); if (value <= (result || value)) result = value;
this.each(function(value, index) { ((iterator || Prototype.K)(value, index) ? trues : falses).push(value); });
this.each(function(value) { if (value == object) { found = true; throw $break; } });
this.each(function(value, index) { var stringValue = value.toString(); if (stringValue.match(pattern)) results.push((iterator || Prototype.K)(value, index)); })
this.each(function(value) { if (value == object) { found = true; throw $break; } });
return parseInt( ((!color || color=='transparent') ? '#ffffff' : color).parseColor().slice(i*2+1,i*2+3), 16 )
return parseInt( ((!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) ? '#ffffff' : color).parseColor().slice(i*2+1,i*2+3), 16 )
return $R(0,2).map(function(i){ return parseInt( ((!color || color=='transparent') ? '#ffffff' : color).parseColor().slice(i*2+1,i*2+3), 16 ) });
function() { tableOperation("TO-cell-merge"); },
function() { tableOperation("TO-row-insert-under"); },
function() { tableOperation("TO-cell-merge"); },
value = (iterator || Prototype.K)(value, index); if (value >= (result || value)) result = value; });
var stringValue = value.toString(); if (stringValue.match(pattern)) results.push((iterator || Prototype.K)(value, index)); })
this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (value >= (result || value)) result = value; });
this.element.setStyle({backgroundColor: $R(0,2).inject('#',function(m,v,i){ return m+(Math.round(this._base[i]+(this._delta[i]*position)).toColorPart()); }.bind(this)) });
function(f) { Element.Methods[f] = Element[f]; }
this.element.setStyle({backgroundColor: $R(0,2).inject('#',function(m,v,i){ return m+(Math.round(this._base[i]+(this._delta[i]*position)).toColorPart()); }.bind(this)) });
this.transforms = this.options.style.parseStyle().map(function(property){ var originalValue = this.element.getStyle(property[0]); return $H({ style: property[0], originalValue: property[1].unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0), targetValue: property[1].unit=='color' ? parseColor(property[1].value) : property[1].value, unit: property[1].unit }); }.bind(this)).reject(function(transform){
$A(cssRules).reverse().each(function(rule) { if (selector == rule.selectorText) { cssText = rule.style.cssText; throw $break; } });
this.transforms = this.options.style.parseStyle().map(function(property){ var originalValue = this.element.getStyle(property[0]); return $H({ style: property[0], originalValue: property[1].unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0), targetValue: property[1].unit=='color' ? parseColor(property[1].value) : property[1].value, unit: property[1].unit }); }.bind(this)).reject(function(transform){
this.sortables.findAll(function(s) { return s.element == element }).each(function(s){ Draggables.removeObserver(s.element); s.droppables.each(function(d){ Droppables.remove(d) }); s.draggables.invoke('destroy'); });
(Sortable.findTreeElements(element, options) || []).each( function(e) { Droppables.add(e, options_for_tree); e.treeNode = element; options.droppables.push(e); });
this.sortables.findAll(function(s) { return s.element == element }).each(function(s){ Draggables.removeObserver(s.element); s.droppables.each(function(d){ Droppables.remove(d) }); s.draggables.invoke('destroy'); });
results.push(value[property]);
((iterator || Prototype.K)(value, index) ? trues : falses).push(value);
this.each(function(value, index) { results.push(value[property]); });
function() { tableOperation("TO-cell-insert-after"); },
function() { tableOperation("TO-row-delete"); },
function() { tableOperation("TO-cell-insert-after"); },
this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (value <= (result || value)) result = value;
this.each(function(value) { if (value == object) { found = true; throw $break; }
this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (value <= (result || value)) result = value; });
}.bind(this)).reject(function(transform){ return ( (transform.originalValue == transform.targetValue) || ( transform.unit != 'color' && (isNaN(transform.originalValue) || isNaN(transform.targetValue)) ) ) });
effect.transforms.each(function(transform) { if(transform.style != 'opacity') effect.element.style[transform.style.camelize()] = ''; });
}.bind(this)).reject(function(transform){ return ( (transform.originalValue == transform.targetValue) || ( transform.unit != 'color' && (isNaN(transform.originalValue) || isNaN(transform.targetValue)) ) ) });
s.droppables.each(function(d){ Droppables.remove(d) });
return $(this.findElements(element, options) || []).map( function(item) { return item.id.match(options.format) ? item.id.match(options.format)[1] : ''; });
s.droppables.each(function(d){ Droppables.remove(d) });
if (!iterator(value, index)) results.push(value);
results.push(value[property]);
this.each(function(value, index) { if (!iterator(value, index)) results.push(value); });
function() { tableOperation("TO-cell-insert-before"); },
function() { tableOperation("TO-table-prop"); },
function() { tableOperation("TO-cell-insert-before"); },
((iterator || Prototype.K)(value, index) ? trues : falses).push(value);
memo = iterator(memo, value, index);
this.each(function(value, index) { ((iterator || Prototype.K)(value, index) ? trues : falses).push(value); });
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; });
return $R(0,2).map(function(i){ return parseInt( color.slice(i*2+1,i*2+3), 16 ) });
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.sortables = this.sortables.reject(function(s) { return s.element == element });
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); });
this.sortables = this.sortables.reject(function(s) { return s.element == element });
return this.collect(function(value, index) { return {value: value, criteria: iterator(value, index)}; }).sort(function(left, right) {
this.each(function(value, index) { if (!iterator(value, index)) results.push(value); });
return this.collect(function(value, index) { return {value: value, criteria: iterator(value, index)}; }).sort(function(left, right) {
function() { tableOperation("TO-cell-delete"); },
function() { tableOperation("TO-col-insert-before"); },
function() { tableOperation("TO-cell-delete"); },
this.each(function(value, index) { results.push(value[property]);
return this.collect(function(value) { return value[method].apply(value, args);
this.each(function(value, index) { results.push(value[property]); });
function(element, update){ new Effect.Fade(update,{duration:0.3}) };
function(element, update){ new Effect.Fade(update,{duration:0.15}) };
function(element, update){ new Effect.Fade(update,{duration:0.3}) };
httpPost.addEventListener ("load", function () { callback (httpPost);}, false );
setTimeout (function () { httpPost.send (data); }, 10);
httpPost.addEventListener ("load", function () { callback (httpPost);}, false );
HTMLArea._getback(editor._textArea.form.action+'&nohtml&workingvmenu',function(getback){if (getback) eval(getback)}); };
HTMLArea._postback(editor._textArea.form.action+'&nohtml', post, function(getback) { if (getback) { var state = {'saved':false,'message':''}; eval(getback); if (state.saved == true) { self.setMessage(state.message); self.changedReset(); } else { alert(state.message); } }); HTMLArea._getback(editor._textArea.form.action+'&nohtml&workingvmenu',function(getback){if (getback) eval(getback)});};
return this.locateElementByIdentifier(locator, inDocument) || this.locateElementByDomTraversal(locator, inDocument) || this.locateElementByXPath(locator, inDocument);
if (locator.startsWith(' return this.locateElementByXPath(locator, inDocument); } if (locator.startsWith('document.')) { return this.locateElementByDomTraversal(locator, inDocument); } return this.locateElementByIdentifier(locator, inDocument);
this.locationStrategies['implicit'] = function(locator, inDocument) { return this.locateElementByIdentifier(locator, inDocument) || this.locateElementByDomTraversal(locator, inDocument) || this.locateElementByXPath(locator, inDocument); };
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(inst.getBody(), 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; });
if (tinyMCE.getAttrib(elm, 'class').indexOf('mceItemFlash') != -1)
if (tinyMCE.hasPlugin('flash') && tinyMCE.getAttrib(elm, 'class').indexOf('mceItemFlash') != -1)
window.setTimeout(function () { var theme = tinyMCE.getParam("theme"); contextMenu.clearAll(); var sel = inst.selection.getSelectedText().length != 0 || elm.nodeName == "IMG"; // Default items contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/cut.gif", "$lang_cut_desc", "Cut", "", !sel); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/copy.gif", "$lang_copy_desc", "Copy", "", !sel); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/paste.gif", "$lang_paste_desc", "Paste", "", false); if (sel || (elm ? (elm.nodeName == 'A') || (elm.nodeName == 'IMG') : false)) { contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/themes/advanced/images/link.gif", "$lang_link_desc", inst.hasPlugin("advlink") ? "mceAdvLink" : "mceLink"); contextMenu.addItem(tinyMCE.baseURL + "/themes/advanced/images/unlink.gif", "$lang_unlink_desc", "unlink", "", (elm ? (elm.nodeName != 'A') && (elm.nodeName != 'IMG') : true)); } // Get element elm = tinyMCE.getParentElement(elm, "img,table,td" + (inst.hasPlugin("advhr") ? ',hr' : '')); if (elm) { switch (elm.nodeName) { case "IMG": contextMenu.addSeparator(); // If flash if (tinyMCE.getAttrib(elm, 'class').indexOf('mceItemFlash') != -1) contextMenu.addItem(tinyMCE.baseURL + "/plugins/flash/images/flash.gif", "$lang_flash_props", "mceFlash"); else contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/image.gif", "$lang_image_props_desc", inst.hasPlugin("advimage") ? "mceAdvImage" : "mceImage"); break; case "HR": contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/plugins/advhr/images/advhr.gif", "$lang_insert_advhr_desc", "mceAdvancedHr"); break; case "TABLE": case "TD": // Is table plugin loaded if (inst.hasPlugin("table")) { var colspan = (elm.nodeName == "TABLE") ? "" : getAttrib(elm, "colspan"); var rowspan = (elm.nodeName == "TABLE") ? "" : getAttrib(elm, "rowspan"); colspan = colspan == "" ? "1" : colspan; rowspan = rowspan == "" ? "1" : rowspan; contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/cut.gif", "$lang_table_cut_row_desc", "mceTableCutRow"); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/copy.gif", "$lang_table_copy_row_desc", "mceTableCopyRow"); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/paste.gif", "$lang_table_paste_row_before_desc", "mceTablePasteRowBefore", "", inst.tableRowClipboard == null); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/paste.gif", "$lang_table_paste_row_after_desc", "mceTablePasteRowAfter", "", inst.tableRowClipboard == null); /* contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyleft.gif", "$lang_justifyleft_desc", "JustifyLeft", "", false); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifycenter.gif", "$lang_justifycenter_desc", "JustifyCenter", "", false); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyright.gif", "$lang_justifyright_desc", "JustifyRight", "", false); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyfull.gif", "$lang_justifyfull_desc", "JustifyFull", "", false);*/ contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_desc", "mceInsertTable", "insert"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_props_desc", "mceInsertTable"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_cell_props.gif", "$lang_table_cell_desc", "mceTableCellProps"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete.gif", "$lang_table_del", "mceTableDelete"); contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_row_props.gif", "$lang_table_row_desc", "mceTableRowProps"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_row_before.gif", "$lang_table_row_before_desc", "mceTableInsertRowBefore"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_row_after.gif", "$lang_table_row_after_desc", "mceTableInsertRowAfter"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete_row.gif", "$lang_table_delete_row_desc", "mceTableDeleteRow"); contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_col_before.gif", "$lang_table_col_before_desc", "mceTableInsertColBefore"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_col_after.gif", "$lang_table_col_after_desc", "mceTableInsertColAfter"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete_col.gif", "$lang_table_delete_col_desc", "mceTableDeleteCol"); contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_split_cells.gif", "$lang_table_split_cells_desc", "mceTableSplitCells", "", (colspan == "1" && rowspan == "1")); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_merge_cells.gif", "$lang_table_merge_cells_desc", "mceTableMergeCells", "", false); } break; } } else { // Add table specific if (inst.hasPlugin("table")) { contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_desc", "mceInsertTable", "insert"); } } contextMenu.show(x, y); }, 10);
else if (tinyMCE.hasPlugin('media') && /mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(tinyMCE.getAttrib(elm, 'class'))) contextMenu.addItem(tinyMCE.baseURL + "/plugins/flash/images/flash.gif", "$lang_media_title", "mceMedia");
window.setTimeout(function () { var theme = tinyMCE.getParam("theme"); contextMenu.clearAll(); var sel = inst.selection.getSelectedText().length != 0 || elm.nodeName == "IMG"; // Default items contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/cut.gif", "$lang_cut_desc", "Cut", "", !sel); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/copy.gif", "$lang_copy_desc", "Copy", "", !sel); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/paste.gif", "$lang_paste_desc", "Paste", "", false); if (sel || (elm ? (elm.nodeName == 'A') || (elm.nodeName == 'IMG') : false)) { contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/themes/advanced/images/link.gif", "$lang_link_desc", inst.hasPlugin("advlink") ? "mceAdvLink" : "mceLink"); contextMenu.addItem(tinyMCE.baseURL + "/themes/advanced/images/unlink.gif", "$lang_unlink_desc", "unlink", "", (elm ? (elm.nodeName != 'A') && (elm.nodeName != 'IMG') : true)); } // Get element elm = tinyMCE.getParentElement(elm, "img,table,td" + (inst.hasPlugin("advhr") ? ',hr' : '')); if (elm) { switch (elm.nodeName) { case "IMG": contextMenu.addSeparator(); // If flash if (tinyMCE.getAttrib(elm, 'class').indexOf('mceItemFlash') != -1) contextMenu.addItem(tinyMCE.baseURL + "/plugins/flash/images/flash.gif", "$lang_flash_props", "mceFlash"); else contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/image.gif", "$lang_image_props_desc", inst.hasPlugin("advimage") ? "mceAdvImage" : "mceImage"); break; case "HR": contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/plugins/advhr/images/advhr.gif", "$lang_insert_advhr_desc", "mceAdvancedHr"); break; case "TABLE": case "TD": // Is table plugin loaded if (inst.hasPlugin("table")) { var colspan = (elm.nodeName == "TABLE") ? "" : getAttrib(elm, "colspan"); var rowspan = (elm.nodeName == "TABLE") ? "" : getAttrib(elm, "rowspan"); colspan = colspan == "" ? "1" : colspan; rowspan = rowspan == "" ? "1" : rowspan; contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/cut.gif", "$lang_table_cut_row_desc", "mceTableCutRow"); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/copy.gif", "$lang_table_copy_row_desc", "mceTableCopyRow"); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/paste.gif", "$lang_table_paste_row_before_desc", "mceTablePasteRowBefore", "", inst.tableRowClipboard == null); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/paste.gif", "$lang_table_paste_row_after_desc", "mceTablePasteRowAfter", "", inst.tableRowClipboard == null); /* contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyleft.gif", "$lang_justifyleft_desc", "JustifyLeft", "", false); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifycenter.gif", "$lang_justifycenter_desc", "JustifyCenter", "", false); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyright.gif", "$lang_justifyright_desc", "JustifyRight", "", false); contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyfull.gif", "$lang_justifyfull_desc", "JustifyFull", "", false);*/ contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_desc", "mceInsertTable", "insert"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_props_desc", "mceInsertTable"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_cell_props.gif", "$lang_table_cell_desc", "mceTableCellProps"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete.gif", "$lang_table_del", "mceTableDelete"); contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_row_props.gif", "$lang_table_row_desc", "mceTableRowProps"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_row_before.gif", "$lang_table_row_before_desc", "mceTableInsertRowBefore"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_row_after.gif", "$lang_table_row_after_desc", "mceTableInsertRowAfter"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete_row.gif", "$lang_table_delete_row_desc", "mceTableDeleteRow"); contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_col_before.gif", "$lang_table_col_before_desc", "mceTableInsertColBefore"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_col_after.gif", "$lang_table_col_after_desc", "mceTableInsertColAfter"); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete_col.gif", "$lang_table_delete_col_desc", "mceTableDeleteCol"); contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_split_cells.gif", "$lang_table_split_cells_desc", "mceTableSplitCells", "", (colspan == "1" && rowspan == "1")); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_merge_cells.gif", "$lang_table_merge_cells_desc", "mceTableMergeCells", "", false); } break; } } else { // Add table specific if (inst.hasPlugin("table")) { contextMenu.addSeparator(); contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_desc", "mceInsertTable", "insert"); } } contextMenu.show(x, y); }, 10);
this.handles[i].removeEvent('mousedown', this.start.bindWithEvent(this, el));
this.handles[i].removeEvent('mousedown', this.bound.start[i]);
this.elements.each(function(el, i){ this.handles[i].removeEvent('mousedown', this.start.bindWithEvent(this, el)); }, this);
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); };
window.setTimeout(function() { self.pollForLoad(loadFunction, windowObject, originalDocument, originalLocation, originalHref, marker); }, 500);
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); };
return Selenium.decorateFunctionWithTimeout(function () { return eval(script); }, timeout);
return function () { return new Date().getTime() > (now + 20); }
return Selenium.decorateFunctionWithTimeout(function () { return eval(script); }, timeout);
}));
}), 'rgb');
return new Color(this.map(function(value){ return 255 - value; }));
window.setTimeout(function() { self.pollForLoad(loadFunction, windowObject, originalDocument, originalLocation, originalHref, marker); }, 500);
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); };
window.setTimeout(function() { self.pollForLoad(loadFunction, windowObject, originalDocument, originalLocation, originalHref, marker); }, 500);
script += p1+";\r\n";
script += p1+";";
function (str, p1, offset, s) { script += p1+";\r\n"; in_xjs=false; return ''; }
document.__gmRegisterMenuCommand("Coralize page", function() {
document.GM_registerMenuCommand("Coralize page", function() {
document.__gmRegisterMenuCommand("Coralize page", function() { var parts; var newLoc; if (!checkCanCoralize(document.location)) { alert("Can't coralize."); return; } parts = coralPartsRegExp.exec(document.location); if (parts[3] != null) { var port = new String(parts[3]).substr(1); newLoc = "http://"+parts[2]+"."+port+".nyud.net:8090/"+parts[4]; } else { newLoc = "http://"+parts[2]+".nyud.net:8090/"+parts[4]; } document.location = newLoc; }
addAnEvent(divs[i], 'mouseup', function(e){
divs[i].onmouseup = function(e){ if (e==null) e = event;
addAnEvent(divs[i], 'mouseup', function(e){ activeSlider=-1; stopEvent(e); });
});
};
addAnEvent(divs[i], 'mouseup', function(e){ activeSlider=-1; stopEvent(e); });
$each(selector, function(sel){ items.push(sel); });
$each(selector, function(el){ if ($(el)) elements.push(el); });
$each(selector, function(sel){ items.push(sel); });
elements.zip(expressions).all(function(pair, index) { var element = $(pair.first()), expression = pair.last(); if (element.match(expression)) return true; this.fail('assertElementsMatch: (in index ' + index + ') expected ' + expression.inspect() + ' but got ' + element.inspect()); }.bind(this)) && this.pass();
Event.observe(td, 'click', function(){ window.location.search = "?tests=" + td.innerHTML;});
elements.zip(expressions).all(function(pair, index) { var element = $(pair.first()), expression = pair.last(); if (element.match(expression)) return true; this.fail('assertElementsMatch: (in index ' + index + ') expected ' + expression.inspect() + ' but got ' + element.inspect()); }.bind(this)) && this.pass();
setTimeout(function() {dbg(o);}, 1000);
setTimeout(function() {alert(s);}, 1000);
setTimeout(function() {dbg(o);}, 1000);
function(event) { hop_tabslider_select(el.childNodes[0]); },
function (el) { el.onclick = function(){ hop_tabslider_select(this) } });
function(event) { hop_tabslider_select(el.childNodes[0]); },
$A(child.nodeValue).each( function(character) {
child.nodeValue.toArray().each( function(character) {
$A(child.nodeValue).each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == " " ? String.fromCharCode(160) : character), child); });
return indent() + "# " + str;
return "# " + str;
return comment.comment.replace(/.+/mg, function(str) { return indent() + "# " + str; });
this.highlightOption.onclick = (function() {
this.highlightOption.onclick = fnBindAsEventListener((function() {
this.highlightOption.onclick = (function() { this.setHighlightOption(); }).bindAsEventListener(this);
}).bindAsEventListener(this);
}), this);
this.highlightOption.onclick = (function() { this.setHighlightOption(); }).bindAsEventListener(this);
return function(sym) { counter++; if (!sym) sym = sc_SYMBOL_PREFIX; return sym + "s" + counter + "~" + "^sC-GeNsYm "; };
function () { sc_print_immutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_mutable(arguments[i]); } });
return function(sym) { counter++; if (!sym) sym = sc_SYMBOL_PREFIX; return sym + "s" + counter + "~" + "^sC-GeNsYm "; };
.click(function() { var fieldset = this.parentNode.parentNode;
$(document).ready(function() { $('fieldset.collapsible > legend').each(function() { var fieldset = $(this.parentNode); if ($('input.error, textarea.error, select.error', fieldset).size() > 0) { fieldset.removeClass('collapsed'); }
.click(function() { var fieldset = this.parentNode.parentNode; // Prevent double animations if (fieldset.animating) { return false; } fieldset.animating = true; if ($(fieldset).is('.collapsed')) { // Open fieldset with animation $(fieldset.contentWrapper).hide(); $(fieldset).removeClass('collapsed'); $(fieldset.contentWrapper).slideDown(300, { // Make sure we open to height auto complete: function() { $(fieldset.contentWrapper).css('height', 'auto'); Drupal.collapseScrollIntoView(fieldset); fieldset.animating = false; }, // Scroll the fieldset into view step: function() { Drupal.collapseScrollIntoView(fieldset); } } ); if (typeof Drupal.textareaAttach != 'undefined') { // Initialize resizable textareas that are now revealed Drupal.textareaAttach(null, fieldset); } } else { // Collapse fieldset with animation (reverse of opening) $(fieldset.contentWrapper) .slideUp('medium', function () { $(fieldset).addClass('collapsed'); fieldset.animating = false; } ) .show(); } return false; })
if (fieldset.animating) { return false; } fieldset.animating = true; if ($(fieldset).is('.collapsed')) { $(fieldset.contentWrapper).hide(); $(fieldset).removeClass('collapsed'); $(fieldset.contentWrapper).slideDown(300, { complete: function() { $(fieldset.contentWrapper).css('height', 'auto'); Drupal.collapseScrollIntoView(fieldset); fieldset.animating = false; }, step: function() { Drupal.collapseScrollIntoView(fieldset); } } ); if (typeof Drupal.textareaAttach != 'undefined') { Drupal.textareaAttach(null, fieldset); } } else { $(fieldset.contentWrapper) .slideUp('medium', function () { $(fieldset).addClass('collapsed'); fieldset.animating = false; } ) .show();
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);
.click(function() { var fieldset = this.parentNode.parentNode; // Prevent double animations if (fieldset.animating) { return false; } fieldset.animating = true; if ($(fieldset).is('.collapsed')) { // Open fieldset with animation $(fieldset.contentWrapper).hide(); $(fieldset).removeClass('collapsed'); $(fieldset.contentWrapper).slideDown(300, { // Make sure we open to height auto complete: function() { $(fieldset.contentWrapper).css('height', 'auto'); Drupal.collapseScrollIntoView(fieldset); fieldset.animating = false; }, // Scroll the fieldset into view step: function() { Drupal.collapseScrollIntoView(fieldset); } } ); if (typeof Drupal.textareaAttach != 'undefined') { // Initialize resizable textareas that are now revealed Drupal.textareaAttach(null, fieldset); } } else { // Collapse fieldset with animation (reverse of opening) $(fieldset.contentWrapper) .slideUp('medium', function () { $(fieldset).addClass('collapsed'); fieldset.animating = false; } ) .show(); } return false; })
})
})).after($('<div class="fieldset-wrapper"></div>').append(fieldset.children(':not(legend)'))); }); });
.click(function() { var fieldset = this.parentNode.parentNode; // Prevent double animations if (fieldset.animating) { return false; } fieldset.animating = true; if ($(fieldset).is('.collapsed')) { // Open fieldset with animation $(fieldset.contentWrapper).hide(); $(fieldset).removeClass('collapsed'); $(fieldset.contentWrapper).slideDown(300, { // Make sure we open to height auto complete: function() { $(fieldset.contentWrapper).css('height', 'auto'); Drupal.collapseScrollIntoView(fieldset); fieldset.animating = false; }, // Scroll the fieldset into view step: function() { Drupal.collapseScrollIntoView(fieldset); } } ); if (typeof Drupal.textareaAttach != 'undefined') { // Initialize resizable textareas that are now revealed Drupal.textareaAttach(null, fieldset); } } else { // Collapse fieldset with animation (reverse of opening) $(fieldset.contentWrapper) .slideUp('medium', function () { $(fieldset).addClass('collapsed'); fieldset.animating = false; } ) .show(); } return false; })
this.highlightOption.onclick = fnBindAsEventListener((function() { this.setHighlightOption(); }), this);
setTimeout(fnBind(function() { this.loadSuiteFrame(); }, this), 500);
this.highlightOption.onclick = fnBindAsEventListener((function() { this.setHighlightOption(); }), this);
__method.apply(object, arguments);
return __method.apply(object, arguments);
return function() { __method.apply(object, arguments); }
Element.collectTextNodes(node) : ''));
Element.collectTextNodesIgnoreClass(node, className) : ''));
return $A($(element).childNodes).collect( function(node) { return (node.nodeType==3 ? node.nodeValue : ((node.hasChildNodes() && !Element.hasClassName(node,className)) ? Element.collectTextNodes(node) : '')); }).flatten().join('');
setTimeout(function() {alert(s);}, 1000);
setTimeout(function() {dbg(o);}, 1000);
setTimeout(function() {alert(s);}, 1000);
$R(1,arguments.length-1).each( function(index) { element.className = element.className.split(' ').reject( function(klass) { return (klass == removeClasses[index]) } ).join(' '); });
function(klass) { return (klass == removeClasses[index]) } ).join(' ');
$R(1,arguments.length-1).each( function(index) { element.className = element.className.split(' ').reject( function(klass) { return (klass == removeClasses[index]) } ).join(' '); });
$('#edit-has_js').each(function() { this.value = 1; });
$('#edit-has-js').each(function() { this.value = 1; });
$('#edit-has_js').each(function() { this.value = 1; });
$R(0,2).inject('#',function(m,v,i){ return m+(Math.round(transform.originalValue[i]+ (transform.targetValue[i] - transform.originalValue[i])*position)).toColorPart() }) :
this.transforms = this.style.map(function(pair){ var property = pair[0].underscore().dasherize(), value = pair[1], unit = null; if(value.parseColor('#zzzzzz') != '#zzzzzz') { value = value.parseColor(); unit = 'color'; } else if(property == 'opacity') { value = parseFloat(value); if(/MSIE/.test(navigator.userAgent) && !window.opera && (!this.element.currentStyle.hasLayout)) this.element.setStyle({zoom: 1}); } else if(Element.CSS_LENGTH.test(value)) var components = value.match(/^([\+\-]?[0-9\.]+)(.*)$/), value = parseFloat(components[1]), unit = (components.length == 3) ? components[2] : null; var originalValue = this.element.getStyle(property); return $H({ style: property, originalValue: unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0), targetValue: unit=='color' ? parseColor(value) : value, unit: unit }); }.bind(this)).reject(function(transform){
$R(0,2).inject('#',function(m,v,i){ return m+(Math.round(transform.originalValue[i]+ (transform.targetValue[i] - transform.originalValue[i])*position)).toColorPart() }) :
(this.findElements(element, options) || []).each( function(e) { var handle = options.handle ? Element.childrenWithClassName(e, options.handle)[0] : e; options.draggables.push( new Draggable(e, Object.extend(options_for_draggable, { handle: handle }))); Droppables.add(e, options_for_droppable); options.droppables.push(e);
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(e) { // handles are per-draggable var handle = options.handle ? Element.childrenWithClassName(e, options.handle)[0] : e; options.draggables.push( new Draggable(e, Object.extend(options_for_draggable, { handle: handle }))); Droppables.add(e, options_for_droppable); options.droppables.push(e); });
}).sort(function(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value');
return this.collect(function(value, index) { return {value: value, criteria: iterator(value, index)}; }).sort(function(left, right) {
}).sort(function(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value');
if (value <= (result || value))
if (result == undefined || value >= result)
this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (value <= (result || value)) result = value; });
function() { tableOperation("TO-cell-merge"); },
function() { tableOperation("TO-col-insert-after"); },
function() { tableOperation("TO-cell-merge"); },
if (!iterator(value, index)) results.push(value);
value = (iterator || Prototype.K)(value, index); if (result == undefined || value >= result) result = value;
this.each(function(value, index) { if (!iterator(value, index)) results.push(value); });
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
$A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } });
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));
}.bind(this)).reject(function(transform){ return ( (transform.originalValue == transform.targetValue) || ( transform.unit != 'color' && (isNaN(transform.originalValue) || isNaN(transform.targetValue)) ) ) });
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));
$A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } });
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('&');
$A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } });
return this.map(function(value, index) { iterator(value = collections.pluck(index)); return value; });
}).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) { iterator(value = collections.pluck(index)); return value; });
((iterator || Prototype.K)(value, index) ? trues : falses).push(value);
value = (iterator || Prototype.K)(value, index); if (result == undefined || value < result) result = value;
this.each(function(value, index) { ((iterator || Prototype.K)(value, index) ? trues : falses).push(value); });
if(e.tagName && e.tagName==options.tag.toUpperCase() &&
if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() &&
$A(element.childNodes).each( function(e) { if(e.tagName && e.tagName==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } });