rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
range.length = 0;
provideObjectAtIndex: function(index, object) { var array = this._TMP_PROVIDE_ARRAY, range = this._TMP_PROVIDE_RANGE; array[0] = object; range.start = index; return this.provideObjectsInRange(range, array); },
if (this._requestingIndex <= 0) this.enumerableContentDidChange() ;
if (this._requestingIndex <= 0) this.enumerableContentDidChange(range.start, range.length, 0);
provideObjectsInRange: function(range, array) { var content = this._sa_content ; if (!content) content = this._sa_content = [] ; var start = range.start, len = range.length; while(--len >= 0) content[start+len] = array[len]; if (this._requestingIndex <= 0) this.enumerableContentDidChange() ; return ...
if (this._requestingIndex <= 0) this.enumerableContentDidChange(range.start, range.length, 0);
if (this._requestingIndex <= 0) this.enumerableContentDidChange(range.start, range.length);
provideObjectsInRange: function(range, array) { var content = this._sa_content ; if (!content) content = this._sa_content = [] ; var start = range.start, len = range.length; while(--len >= 0) content[start+len] = array[len]; if (this._requestingIndex <= 0) this.enumerableContentDidChange(range.start, r...
while(--len >= 0) content[start+len] = array[len];
while(--len >= 0) content[start+len] = array.objectAt(len);
provideObjectsInRange: function(range, array) { var content = this._sa_content ; if (!content) content = this._sa_content = [] ; var start = range.start, len = range.length; while(--len >= 0) content[start+len] = array[len]; if (this._requestingIndex <= 0) this.enumerableContentDidChange(range.start, r...
0,f=b.length;d<f;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,i=a.length;e<i;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:func...
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,...
0,f=b.length;d<f;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,i=a.length;e<i;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:func...
var anyArgs = [signal].concat(args); for(var i = 0, sub; sub = this._subscribers.__any[i]; ++i) {
var anyArgs = [signal].concat(args), subs = this._subscribers.__any.slice(0); for(var i = 0, sub; sub = subs[i]; ++i) {
this.publish = function(signal) { if(this._subscribers) { var args = Array.prototype.slice.call(arguments, 1); if(this._subscribers.__any) { var anyArgs = [signal].concat(args); for(var i = 0, sub; sub = this._subscribers.__any[i]; ++i) { sub.apply(ctx, args); } } if(!this._subscribers[signal])...
if(!this._subscribers[signal]) { return; } for(var i = 0, sub; sub = this._subscribers[signal][i]; ++i) {
if(!this._subscribers[signal]) { return; } var subs = this._subscribers[signal].slice(0); for(var i = 0, sub; sub = subs[i]; ++i) {
this.publish = function(signal) { if(this._subscribers) { var args = Array.prototype.slice.call(arguments, 1); if(this._subscribers.__any) { var anyArgs = [signal].concat(args); for(var i = 0, sub; sub = this._subscribers.__any[i]; ++i) { sub.apply(ctx, args); } } if(!this._subscribers[signal])...
this._modeStack.push([this._main, this._extended]); this.set(mainMode, extendedMode, silent, { push: this._modeStack[this._modeStack.length - 1] });
this.set(mainMode, extendedMode, silent, { push: this.topOfStack });
push: function (mainMode, extendedMode, silent) { this._modeStack.push([this._main, this._extended]); this.set(mainMode, extendedMode, silent, { push: this._modeStack[this._modeStack.length - 1] }); },
push: function (mainMode, extendedMode, silent) { this.set(mainMode, extendedMode, silent, { push: this.topOfStack });
push: function (mainMode, extendedMode, params) { this.set(mainMode, extendedMode, params, { push: this.topOfStack });
push: function (mainMode, extendedMode, silent) { this.set(mainMode, extendedMode, silent, { push: this.topOfStack }); },
r = RangeFind.Range(r, frames.length); if (r)
if (r = RangeFind.Range(r, frames.length))
function push(r) { r = RangeFind.Range(r, frames.length); if (r) frames.push(r); }
r = RangeFind.Range(r, frames.length); if (r)
if (r = RangeFind.Range(r, frames.length))
function pushRange(start, end) { function push(r) { r = RangeFind.Range(r, frames.length); if (r) frames.push(r); } let range = start.startContainer.ownerDocument.createRange(); range.setStart(start.startContainer, star...
this.context=a.context}return c.isArray(a)?this.setArray(a):c.makeArray(a,this)},selector:"",jquery:"1.4",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){a=c(a||null);a.prevObject...
a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a...
this.context=a.context}return c.isArray(a)?this.setArray(a):c.makeArray(a,this)},selector:"",jquery:"1.4",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){a=c(a||null);a.prevObject...
e(a[0],b):null}function K(){return(new Date).getTime()}function aa(){return false}function ba(){return true}function pa(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function qa(a){var b=true,d=[],f=[],e=arguments,i,j,o,p,n,t=c.extend({},c.data(this,"events").live);for(p in t){j=t[p];if(j.live===a.type||j.altLive...
"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}f...
e(a[0],b):null}function K(){return(new Date).getTime()}function aa(){return false}function ba(){return true}function pa(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function qa(a){var b=true,d=[],f=[],e=arguments,i,j,o,p,n,t=c.extend({},c.data(this,"events").live);for(p in t){j=t[p];if(j.live===a.type||j.altLive...
this._indexQueries(ctx); this._lookup(ctx, callback);
this._lookup(this._indexQueries(ctx), ctx, callback);
query: function (ctx, callback) { if (!this._dict) { Logger.error("dict not yet loaded."); return; } this._indexQueries(ctx); this._lookup(ctx, callback); },
this._dummyQuery(ctx, callback);
var seg = ctx._segmentation; var maxKeywordLength = ctx.schema.maxKeywordLength; var maxKeyLength = ctx.schema.maxKeyLength; var indexingLevel = this._dict.indexingLevel; var queries = {}; var registerQuery = function (r) { Logger.debug("registerQuery: [" + r.start + ", " + r.end + ") " + r.ikey); var index = r.ikey.sl...
query: function (ctx, callback) { // TODO: this._dummyQuery(ctx, callback); },
a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(...
a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if...
a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(...
TBRL.Service.open(tab, req.content);
TBRL.Popup.open(tab, req.content);
quick: function(req, sender, func){ getSelected().addCallback(function(tab){ TBRL.Service.open(tab, req.content); }); func({}); },
func({});
quick: function(req, sender, func){ getSelected().addCallback(function(tab){ TBRL.Service.open(tab, req.content); func({}); }); },
func({});
quick: function(req, sender, func){ getSelected().addCallback(function(tab){ TBRL.Service.open(tab, req.content); func({}); }); },
callLater(0.1, Form.resize);
callLater(0.5, Form.resize);
quote: function(){ var ps = this.ps; var title = this.savers['item'] = this.title = new Title(ps, true); var link = this.savers['itemUrl'] = this.link = new Link(ps, true); var body = this.savers['body'] = this.body = new Body(ps); var tags = this.savers['tags'] = this.tags = new Tags(ps, true); ...
maybeDeferred(Extractors.Quote.extract(TBRL.createContext()))
var ctx = TBRL.createContext(); var ext = (Extractors.Quote.check(ctx))? Extractors.Quote : Extractors.Text; maybeDeferred(ext.extract(ctx))
quote: function(ev){ maybeDeferred(Extractors.Quote.extract(TBRL.createContext())) .addCallback(function(ps){ TBRL.openQuickPostForm(ps); }); },
return maybeDeferred(Extractors.Photo.extract(TBRL.createContext()))
return maybeDeferred(Extractors.Quote.extract(TBRL.createContext()))
quote: function(ev){ return maybeDeferred(Extractors.Photo.extract(TBRL.createContext())) .addCallback(function(ps){ TBRL.openQuickPostForm(ps); }); },
return maybeDeferred(Extractors.Quote.extract(TBRL.createContext()))
maybeDeferred(Extractors.Quote.extract(TBRL.createContext()))
quote: function(ev){ return maybeDeferred(Extractors.Quote.extract(TBRL.createContext())) .addCallback(function(ps){ TBRL.openQuickPostForm(ps); }); },
maybeDeferred(ext.extract(ctx)) .addCallback(function(ps){ TBRL.openQuickPostForm(ps); });
return TBRL.share(ctx, ext, true);
quote: function(ev){ var ctx = TBRL.createContext(); var ext = (Extractors.Quote.check(ctx))? Extractors.Quote : Extractors.Text; maybeDeferred(ext.extract(ctx)) .addCallback(function(ps){ TBRL.openQuickPostForm(ps); }); },
function quote(q, list, map) { map = map || Commands.quoteMap; let re = RegExp("[" + list + "]", "g"); let res = function (str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q; res.list = list; return res; };
function quote(str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q;
function quote(q, list, map) { map = map || Commands.quoteMap; let re = RegExp("[" + list + "]", "g"); let res = function (str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q; res.list = list; return res; };
function quote(q, list) {
function quote(q, list, map) { map = map || Commands.quoteMap;
function quote(q, list) { let re = RegExp("[" + list + "]", "g"); let res = function (str) q + String.replace(str, re, function ($0) $0 in Commands.quoteMap ? Commands.quoteMap[$0] : ("\\" + $0)) + q; res.list = list; return res; };
let res = function (str) q + String.replace(str, re, function ($0) $0 in Commands.quoteMap ? Commands.quoteMap[$0] : ("\\" + $0)) + q;
let res = function (str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q;
function quote(q, list) { let re = RegExp("[" + list + "]", "g"); let res = function (str) q + String.replace(str, re, function ($0) $0 in Commands.quoteMap ? Commands.quoteMap[$0] : ("\\" + $0)) + q; res.list = list; return res; };
return F?F.indent+indentUnit:0}}function h(){return a(j,h)}function j(B,D){if(D=="<")c(l,u,r(z==1));else if(D=="</")c(m,d(">"));else{if(B=="xml-cdata"){if(!E||E.name!="!cdata")f("!cdata");if(/\]\]>$/.test(D))E=E.prev}else N.hasOwnProperty(B)||b();c()}}function l(B,D){if(B=="xml-name"){H=D.toLowerCase();A.style="xml-tag...
r=f.addEventHandler(f,"resize",h,true);x=function(){o();r();if(k.updateNumbers==h)k.updateNumbers=null};h()}function g(){function h(n,z){q||(q=j.appendChild(document.createElement("DIV")));H&&H(q,z,n);t.push(q);t.push(n);A=q.offsetHeight+q.offsetTop;q=q.nextSibling}function o(){for(var n=0;n<t.length;n+=2)t[n].innerHTM...
return F?F.indent+indentUnit:0}}function h(){return a(j,h)}function j(B,D){if(D=="<")c(l,u,r(z==1));else if(D=="</")c(m,d(">"));else{if(B=="xml-cdata"){if(!E||E.name!="!cdata")f("!cdata");if(/\]\]>$/.test(D))E=E.prev}else N.hasOwnProperty(B)||b();c()}}function l(B,D){if(B=="xml-name"){H=D.toLowerCase();A.style="xml-tag...
n=0;for(l=i.length;n<l;n++)for(p in t){j=t[p];o=i[n].elem;f=null;if(i[n].selector===j.selector){if(j.live==="mouseenter"||j.live==="mouseleave")f=c(a.relatedTarget).closest(j.selector)[0];if(!f||f!==o)d.push({elem:o,fn:j})}}n=0;for(l=d.length;n<l;n++){i=d[n];a.currentTarget=i.elem;a.data=i.fn.data;if(i.fn.apply(i.elem,...
"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}f...
n=0;for(l=i.length;n<l;n++)for(p in t){j=t[p];o=i[n].elem;f=null;if(i[n].selector===j.selector){if(j.live==="mouseenter"||j.live==="mouseleave")f=c(a.relatedTarget).closest(j.selector)[0];if(!f||f!==o)d.push({elem:o,fn:j})}}n=0;for(l=d.length;n<l;n++){i=d[n];a.currentTarget=i.elem;a.data=i.fn.data;if(i.fn.apply(i.elem,...
readerPostProcess = null;
read: function (aMsg, aCallback, aUserArg, aCollection, aInitialInput, aInitialCount, aGroup) { if (!promptbox) return; if (currentCallback) { modules.display.echoStatusBar("Prompt is already used by another command"); return; ...
readAttribute: function(element, name) { element = $(element); if (Prototype.Browser.IE) { var t = Element._attributeTranslations.read; if (t.values[name]) return t.values[name](element, name); if (t.names[name]) name = t.names[name]; if (name.include(':')) { return (!element.attributes || !element.attributes[name]) ? ...
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
readAttribute: function(element, name) { element = $(element); if (Prototype.Browser.IE) { var t = Element._attributeTranslations.read; if (t.values[name]) return t.values[name](element, name); if (t.names[name]) name = t.names[name]; if (name.include(':')) { return (!element.attribut...
for (let [i, line] in iter) if (line === end) return res.join("\n"); else res.push(line);
try { while (true) let ([i, line] = iter.next()) { if (line === end) return res.join("\n"); res.push(line); } } catch (e if e instanceof StopIteration) {}
this.readHeredoc = function (end) { let res = []; for (let [i, line] in iter) if (line === end) return res.join("\n"); else res.push(line); dactyl....
jQuery('.atd-ajax-load').css('height','0');
ready: function(errorCount) { /* this function is called when the AtD async service request has finished. this is a good time to allow the user to click the spell check/edit text link again. */ options['link'].unbind('click', disableClick); },
})(win || window.content);
})(win || content);
(function rec(frame) { if (frame.document.body instanceof HTMLBodyElement) frames.push(frame); Array.forEach(frame.frames, rec); })(win || window.content);
let pageRange = doc.createRange(); pageRange.selectNode(doc.body || doc.documentElement.lastChild);
let pageRange = RangeFind.nodeRange(doc.body || doc.documentElement.lastChild);
function rec(win) { let doc = win.document; let pageRange = doc.createRange(); pageRange.selectNode(doc.body || doc.documentElement.lastChild); backup = backup || pageRange; let pageStart = RangeFind.endpoint(pageRange, true); let pageEnd = Range...
range.selectNode(frame.frameElement); pushRange(pageStart, RangeFind.endpoint(range, true)); pageStart = RangeFind.endpoint(range, false); rec(frame);
if (util.computedStyle(frame.frameElement).visibility == "visible") { range.selectNode(frame.frameElement); pushRange(pageStart, RangeFind.endpoint(range, true)); pageStart = RangeFind.endpoint(range, false); rec(frame); }
function rec(win) { let doc = win.document; let pageRange = doc.createRange(); pageRange.selectNode(doc.body || doc.documentElement.lastChild); backup = backup || pageRange; let pageStart = RangeFind.endpoint(pageRange, true); let pageEnd = Range...
setTimeout(withErrorHandler(passInputToPageSpeedModule), 700);
var timesTried = 0; var tryPassingInput = function () { try { pagespeed_module.appendInput(''); } catch (e) { ++timesTried; if (timesTried >= 20) { throw e; } setTimeout(withErrorHandler(tryPassingInput), 100); return; } passInputToPageSpeedModule(); }; tryPassingInput();
function receiveInput(response) { if (!response) { throw new Error('No response to getInput request.'); } // Load the Page Speed NaCl module. var pagespeed_module = document.createElement('embed'); pagespeed_module.setAttribute('name', 'nacl_module'); pagespeed_module.setAttribute('width', 0); pagespeed_modul...
recordDidChange: function() {
recordDidChange: function(key) {
recordDidChange: function() { if (this._parentRecord && this._parentRecord.recordDidChange) { this._parentRecord.recordDidChange(); } else{ sc_super(); } },
this._parentRecord.recordDidChange();
this._parentRecord.recordDidChange(key);
recordDidChange: function() { if (this._parentRecord && this._parentRecord.recordDidChange) { this._parentRecord.recordDidChange(); } else{ sc_super(); } },
recursivelyCollect: function(element, property) { element = $(element); var elements = []; while (element = element[property]) if (element.nodeType == 1) elements.push(Element.extend(element)); return elements; },
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
recursivelyCollect: function(element, property) { element = $(element); var elements = []; while (element = element[property]) if (element.nodeType == 1) elements.push(Element.extend(element)); return elements; },
UndoHistory.prototype={scheduleCommit:function(){var i=this;this.parent.clearTimeout(this.commitTimeout);this.commitTimeout=this.parent.setTimeout(function(){i.tryCommit()},this.commitDelay)},touch:function(i){this.setTouched(i);this.scheduleCommit()},undo:function(){this.commit();if(this.history.length){var i=this.his...
b,c){this.editor.replaceChars(a,b,c)},getSearchCursor:function(a,b,c){return this.editor.getSearchCursor(a,b,c)},undo:function(){this.editor.history.undo()},redo:function(){this.editor.history.redo()},historySize:function(){return this.editor.history.historySize()},clearHistory:function(){this.editor.history.clear()},g...
UndoHistory.prototype={scheduleCommit:function(){var i=this;this.parent.clearTimeout(this.commitTimeout);this.commitTimeout=this.parent.setTimeout(function(){i.tryCommit()},this.commitDelay)},touch:function(i){this.setTouched(i);this.scheduleCommit()},undo:function(){this.commit();if(this.history.length){var i=this.his...
refresh: function() { if (!Prototype.BrowserFeatures.ElementExtensions) { Object.extend(Methods, Element.Methods); Object.extend(Methods, Element.Methods.Simulated); } }
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
refresh: function() { // extend methods for all tags (Safari doesn't need this) if (!Prototype.BrowserFeatures.ElementExtensions) { Object.extend(Methods, Element.Methods); Object.extend(Methods, Element.Methods.Simulated); } }
this.Data.noreload = false;
this.refresh_Change = function(el) { var thisRef = this; this.Data.refresh = parseInt($(el).val()); try { clearInterval(this.intervalID); } finally {} if (this.Data.refresh > 0) this.intervalID = setInterval( function() {thisRef.viewUpdater()}, (this.Data.refresh*1000)); /...
$('previewpage').options[x]=new Option(x+' of '+(pagecount-1),x,selected,selected);
$('previewpage').options[x]=new Option(x+'/'+(pagecount-1),x,selected,selected);
function refreshIt(pagecount) { document.previewimage.src = contactsheet_previewimage_prefix+'/tmp/contactsheet.jpg?'+ Math.random(); if (pagecount>1){ $('previewPageOptions').style.display='block'; // display selector pagecount++; curval=$('previewpage').value; $('previewpage').options.length=0; ...
vals.splice((after? i+1 : i), 0).concat(defs);
vals.splice.apply(vals, [(after ? i+1 : i), 0].concat(defs));
register : function(defs, target, after){ if(!defs) return; defs = [].concat(defs); if(target){ var vals = this.values; this.clear(); for(var i = 0, len = vals.length; i < len; ++i){ if(vals[i].name === target) break; } vals.splice((after? i+1 : i), 0).concat(defs); defs ...
register: function(responder) { if (!this.include(responder)) this.responders.push(responder); },
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
register: function(responder) { if (!this.include(responder)) this.responders.push(responder); },
element.select('.menuBox form').invoke('observe', 'submit', function(evt) {
element.select('.menuBox form:not(.notAJAX)').invoke('observe', 'submit', function(evt) {
registerAJAXEvents: function(element) { // change all anchor to AJAX behaviour element.select('a:not(.notAJAX)').invoke('observe', 'click', function(evt) { evt.preventDefault(); var anchor = Event.element(evt); var aHREF = anchor.readAttribute('href'); // ch...
registerCallback: function() { this.timer = setInterval(this.onTimerEvent.bind(this), this.frequency * 1000); },
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
registerCallback: function() { this.timer = setInterval(this.onTimerEvent.bind(this), this.frequency * 1000); },
registerFormCallbacks: function() { Form.getElements(this.element).each(this.registerCallback, this); },
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
registerFormCallbacks: function() { Form.getElements(this.element).each(this.registerCallback, this); },
callLater(0.1, Form.resize);
callLater(0.5, Form.resize);
regular: function(){ var ps = this.ps; var title = this.savers['item'] = this.title = new Title(ps, true); var tags = this.savers['tags'] = this.tags = new Tags(ps, true); var desc = this.savers['description'] = this.desc = new Desc(ps); this.toggles = [title, tags]; desc.focus(); callLater(0....
10)}},replaceRange:function(a,b,d){d=i(d);d[0]=this.history.textAfter(a.node).slice(0,a.offset)+d[0];var f=d[d.length-1];d[d.length-1]=f+this.history.textAfter(b.node).slice(b.offset);b=this.history.nodeAfter(b.node);this.history.push(a.node,b,d);return{node:this.history.nodeBefore(b),offset:f.length}},getSearchCursor:...
selection:function(){this.focusIfIE();return this.editor.selectedText()},reindent:function(){this.editor.reindent()},reindentSelection:function(){this.focusIfIE();this.editor.reindentSelection(null)},focusIfIE:function(){this.win.select.ie_selection&&this.focus()},focus:function(){this.win.focus();this.editor.selection...
10)}},replaceRange:function(a,b,d){d=i(d);d[0]=this.history.textAfter(a.node).slice(0,a.offset)+d[0];var f=d[d.length-1];d[d.length-1]=f+this.history.textAfter(b.node).slice(b.offset);b=this.history.nodeAfter(b.node);this.history.push(a.node,b,d);return{node:this.history.nodeBefore(b),offset:f.length}},getSearchCursor:...
10)}},replaceRange:function(a,b,d){d=i(d);d[0]=this.history.textAfter(a.node).slice(0,a.offset)+d[0];var f=d[d.length-1];d[d.length-1]=f+this.history.textAfter(b.node).slice(b.offset);b=this.history.nodeAfter(b.node);this.history.push(a.node,b,d);return{node:this.history.nodeBefore(b),offset:f.length}},getSearchCursor:...
selection:function(){this.focusIfIE();return this.editor.selectedText()},reindent:function(){this.editor.reindent()},reindentSelection:function(){this.focusIfIE();this.editor.reindentSelection(null)},focusIfIE:function(){this.win.select.ie_selection&&this.focus()},focus:function(){this.win.focus();this.editor.selection...
10)}},replaceRange:function(a,b,d){d=i(d);d[0]=this.history.textAfter(a.node).slice(0,a.offset)+d[0];var f=d[d.length-1];d[d.length-1]=f+this.history.textAfter(b.node).slice(b.offset);b=this.history.nodeAfter(b.node);this.history.push(a.node,b,d);return{node:this.history.nodeBefore(b),offset:f.length}},getSearchCursor:...
relativize: function(element) { Position.prepare(); return Element.relativize(element); },
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
relativize: function(element) { Position.prepare(); return Element.relativize(element); },
if(!this._invalidIndexes) return this;
reload: function(indexes) { // for some reason this can be called before init... which doesn't work if(!this._invalidIndexes) return this; // just calling reload with no arg means reload EVERYTHING if(SC.none(indexes)) { this.invalidate(0, this._SCCFP_oldLength); // otherwise only reload...
this.invalidate(0, this._SCCFP_oldLength);
var i, len = this._indexMap.length; for(i = 0; i < len; i++) this.invalidate(i);
reload: function(indexes) { // for some reason this can be called before init... which doesn't work if(!this._invalidIndexes) return this; // just calling reload with no arg means reload EVERYTHING if(SC.none(indexes)) { this.invalidate(0, this._SCCFP_oldLength); // otherwise only reload...
} else if(indexes.isIndexSet) { indexes.forEach(this.invalidate, this);
reload: function(indexes) { // for some reason this can be called before init... which doesn't work if(!this._invalidIndexes) return this; // just calling reload with no arg means reload EVERYTHING if(SC.none(indexes)) { this.invalidate(0, this._SCCFP_oldLength); // otherwise only reload...
if(indexes) {
if(!SC.none(indexes)) {
reload: function(indexes) { if(indexes) { if(indexes.isIndexSet) { indexes.forEach(this.invalidate, this); } else { this.invalidate(indexes); } if (this.get('isVisibleInWindow')) this.invokeOnce(this.reloadIfNeeded); } return this ; },
console.log("stuff changed", indexes);
reload: function(indexes) { if(indexes) { if(indexes.isIndexSet) { indexes.forEach(this.invalidate, this); } else { this.invalidate(indexes); } if (this.get('isVisibleInWindow')) this.invokeOnce(this.reloadIfNeeded); } return this ; },
console.log("stuff changed", indexes);
reload: function(indexes) { console.log("stuff changed", indexes); if(indexes) { if(indexes.isIndexSet) { indexes.forEach(this.invalidate, this); } else { this.invalidate(indexes); } if (this.get('isVisibleInWindow')) this.invokeOnce(this.reloadIfNeeded); } return thi...
if(!SC.none(indexes)) { if(indexes.isIndexSet) { indexes.forEach(this.invalidate, this); } else { this.invalidate(indexes); }
if(!this._invalidIndexes) return this;
reload: function(indexes) { if(!SC.none(indexes)) { if(indexes.isIndexSet) { indexes.forEach(this.invalidate, this); } else { this.invalidate(indexes); } if (this.get('isVisibleInWindow')) this.invokeOnce(this.reloadIfNeeded); } return this ; },
if (this.get('isVisibleInWindow')) this.invokeOnce(this.reloadIfNeeded);
if(SC.none(indexes)) { this.invalidate(0, this.getPath('content.length')); } else { this.invalidate(indexes);
reload: function(indexes) { if(!SC.none(indexes)) { if(indexes.isIndexSet) { indexes.forEach(this.invalidate, this); } else { this.invalidate(indexes); } if (this.get('isVisibleInWindow')) this.invokeOnce(this.reloadIfNeeded); } return this ; },
if (this.get('isVisibleInWindow')) this.invokeLast(this.reloadIfNeeded);
reload: function(indexes) { if(!SC.none(indexes)) { if(indexes.isIndexSet) { indexes.forEach(this.invalidate, this); } else { this.invalidate(indexes); } if (this.get('isVisibleInWindow')) this.invokeOnce(this.reloadIfNeeded); } return this ; },
this.invalidate(0, this.getPath('content.length'));
this.invalidate(0, this._SCCFP_oldLength);
reload: function(indexes) { // for some reason this can be called before init... which doesn't work if(!this._invalidIndexes) return this; // just calling reload with no arg means reload EVERYTHING if(SC.none(indexes)) { // TODO: make this use the old length this.invalidate(0, this.getPath('...
invalid, view;
view;
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), clen = content ? content.get('length') : 0, curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid, v...
if(!content || !this.get('isVisibleInWindow')) return;
if(!this.get('isVisibleInWindow')) return;
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid, view; if(!content || !this.get('isVisi...
if(!this._indexMap[index]) debugger;
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content) return; // we use ...
this.maxShowing = 0; this.minShowing = clen;
this._maxShowing = 0; this._minShowing = clen;
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), clen = content ? content.get('length') : 0, curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), view; ...
if(scrollOnly) { for(var pool in this._domPools) { this._domPools[pool]._lastRendered = null; } }
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), clen = content ? content.get('length') : 0, curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), view; ...
this.topBackground = this.maxShowing; this.bottomBackground = this.minShowing;
for(var pool in this._domPools) { this._domPools[pool]._lastRendered = null; }
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), clen = content ? content.get('length') : 0, curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), view; ...
if(this._SCCFP_oldLength !== clen) { var layout = this.computeLayout(); if (layout) this.adjust(layout); this._SCCFP_oldLength = clen;
if(!scrollOnly) { this.contentLengthDidChange();
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), clen = content ? content.get('length') : 0, curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), view; ...
if(!content) return;
if(!content || !this.get('isVisibleInWindow')) return;
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content) return; // we use ...
if (!scrollOnly) { invalid = this._invalidIndexes; if (!invalid || !this.get('isVisibleInWindow')) return this; }
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content) return; // we use ...
if(!scrollOnly) {
if(curShowing.length === 0 || !scrollOnly) {
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content) return; // we use ...
invalid;
invalid, view;
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content || !this.get('isVisibleInW...
this.sendToDOMPool(pendingRemovals.pop());
view = pendingRemovals.pop(); view = this.updateView(view); if(view) this.sendToDOMPool(view);
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content || !this.get('isVisibleInW...
if(!this._indexMap[index]) debugger;
if(!this._indexMap[index]) throw "cannot pull null view";
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), clen = content ? content.get('length') : 0, curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), view; ...
this.minShowing = content.length;
this.minShowing = content.get('length');
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content || !this.get('isVisibleInW...
shouldBeShowing.clear(); this.maxShowing = 0; this.minShowing = content.length;
if(scrollOnly) { shouldBeShowing.clear(); this.maxShowing = 0; this.minShowing = content.length;
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content) return; // we use ...
this.topBackground = this.maxShowing; this.bottomBackground = this.minShowing;
this.topBackground = this.maxShowing; this.bottomBackground = this.minShowing; for(var pool in this._domPools) { this._domPools[pool]._lastRendered = null; }
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content) return; // we use ...
if(!shouldBeShowing.contains(index)) { pendingRemovals.push(this._indexMap[index]);
if(!shouldBeShowing.contains(index)) { pendingRemovals.push(this._indexMap[index]); }
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content) return; // we use ...
len = pendingRemovals.length; for(i = 0;i < len; i++) { this.sendToDOMPool(pendingRemovals.pop()); } pendingRemovals.length = 0;
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content) return; // we use ...
if(curShowing.length === 0 || !scrollOnly) {
len = content.get('length'); if(this._SCCFP_oldLength !== len) {
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid, view; if(!this.get('isVisibleInWindow'...
this._SCCFP_oldLength = len;
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid, view; if(!this.get('isVisibleInWindow'...
if (this.willReload) this.willReload(invalid === YES ? null : invalid);
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content) return; // we use ...
shouldBeShowing.clear(); this.maxShowing = 0; this.minShowing = content.length; nowShowing.forEach(this.processNowShowing, this);
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content) return; // we use ...
len = curShowing.length; for(i = 0; i < len; i++) { index = curShowing[i]; if(!shouldBeShowing.contains(index)) { if(!this._indexMap[index]) debugger; pendingRemovals.push(this._indexMap[index]); } } len = pendingRemovals.length; for(i = 0;i < len; i++) { this.sendToDOMPool(pendingRemovals.pop()); } pendingRem...
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content) return; // we use ...
if (this.didReload) this.didReload(invalid === YES ? null : invalid);
reloadIfNeeded: function(nowShowing, scrollOnly) { var content = this.get('content'), curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len, index, pendingRemovals = this._pendingRemovals || (this._pendingRemovals = []), invalid; if(!content) return; // we use ...
count = Math.max(count, 1);
count = count || 1;
remove: function (tab, count, focusLeftTab, quitOnLastTab) { count = Math.max(count, 1); if (quitOnLastTab >= 1 && this.count <= count) { if (dactyl.windows.length > 1) window.close(); else dactyl.quit(quitOnLastTab == 2); return; }...
remove: function(classNameToRemove) { if (!this.include(classNameToRemove)) return; this.set($A(this).without(classNameToRemove).join(' ')); },
elem.className+=(elem.className?" ":"")+className;});},remove:function(elem,classNames){if(elem.nodeType==1) elem.className=classNames!==undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className.has(classNames,className);}).join(" "):"";},has:function(elem,className){return elem&&jQu...
remove: function(classNameToRemove) { if (!this.include(classNameToRemove)) return; this.set($A(this).without(classNameToRemove).join(' ')); },
if (next in tabs)
if (next in tabs) { this._alternates[0] = tabs[next];
remove: function (tab, count, focusLeftTab, quitOnLastTab) { count = Math.max(count, 1); if (quitOnLastTab >= 1 && this.count <= count) { if (dactyl.windows.length > 1) window.close(); else dactyl.quit(quitOnLastTab == 2); return; }...
}
remove: function (tab, count, focusLeftTab, quitOnLastTab) { count = Math.max(count, 1); if (quitOnLastTab >= 1 && this.count <= count) { if (dactyl.windows.length > 1) window.close(); else dactyl.quit(quitOnLastTab == 2); return; }...
this._showOverflow();
if(this.get('isVisibleInWindow')) this._showOverflow();
remove: function(){ this._showOverflow(); return sc_super(); },
d.guid,function(f){var e=f.target,i=e.type;if((i==="text"||i==="password")&&c(e).closest("form").length&&f.keyCode===13)return pa("submit",this,arguments)})}else return false},remove:function(a,b){c.event.remove(this,"click.specialSubmit"+(b?"."+b.guid:""));c.event.remove(this,"keypress.specialSubmit"+(b?"."+b.guid:"")...
k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if...
d.guid,function(f){var e=f.target,i=e.type;if((i==="text"||i==="password")&&c(e).closest("form").length&&f.keyCode===13)return pa("submit",this,arguments)})}else return false},remove:function(a,b){c.event.remove(this,"click.specialSubmit"+(b?"."+b.guid:""));c.event.remove(this,"keypress.specialSubmit"+(b?"."+b.guid:"")...
len = this.length;
len = this.length, tmp;
remove: function(obj) { if (this.isFrozen) throw SC.FROZEN_ERROR; // Implementation note: SC.none() and SC.hashFor() are inlined because // sets are fundamental in SproutCore, and the inlined code is ~ 25% // faster than calling them "normally" in IE8. if (obj === null || obj === undefined) return thi...
el = $.id(el); if(el && el.parentNode) { el.parentNode.removeChild(el);
el = $.id(el); if(el && el.parentNode) { el.parentNode.removeChild(el); }
$.remove = function(el) { el = $.id(el); if(el && el.parentNode) { el.parentNode.removeChild(el); }}
}
$.remove = function(el) { el = $.id(el); if(el && el.parentNode) { el.parentNode.removeChild(el); }}
return;
return this;
removeClass: function(classNames) { var idx, len; if (arguments.length > 1) { len = arguments.length; for (idx = 0; idx < len; idx++) { this.addClass(arguments[idx]); } return; } if (typeof classNames === "string") classNames = classNames.split(' '); len = classNames....
for (idx = 0; idx < len; idx++) { this.classNames[classNames[idx]] = YES; }
this.classNames.removeEach(classNames); return this;
removeClass: function(classNames) { var idx, len; if (arguments.length > 1) { len = arguments.length; for (idx = 0; idx < len; idx++) { this.addClass(arguments[idx]); } return; } if (typeof classNames === "string") classNames = classNames.split(' '); len = classNames....
" "+b[j]}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(p){var n=c(this);n.removeClass(a.call(this,p,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(fa),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(va...
i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").spl...
" "+b[j]}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(p){var n=c(this);n.removeClass(a.call(this,p,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(fa),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(va...
removeClassName: function(element, className) { if (!(element = $(element))) return; element.className = element.className.replace( new RegExp("(^|\\s+)" + className + "(\\s+|$)"), ' ').strip(); return element; },
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
removeClassName: function(element, className) { if (!(element = $(element))) return; element.className = element.className.replace( new RegExp("(^|\\s+)" + className + "(\\s+|$)"), ' ').strip(); return element; },