rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
window.content.scrollTo(0, window.content.scrollY + elem.getBoundingClientRect().top - 10);
content.scrollTo(0, content.scrollY + elem.getBoundingClientRect().top - 10);
function checkFragment() { document.title = document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml", "title")[0].textContent; var frag = document.location.hash.substr(1); var elem = document.getElementById(frag); function action() { window.content.scrollTo(0, window.content.scrollY + elem.getB...
/* var p=TreeParents[field][node]; while (p>-1) { if (TreeChecked[field][p]==0) { CheckNode(field,p); unode=TreeParents[field][p]; if (unode==-1) {DrawTree(field);} else {UpdateNode(field,unode);}
if( p > -1 ) { if( TreeChecked[field][p] == 0 ) { CheckNode( field, p ); unode = TreeParents[field][p]; if( unode == -1 ) { DrawTree( field ); } else { UpdateNode( field, unode );
function CheckNode(field,node) { if (TreeChecked[field][node]==0) { TreeChecked[field][node]=1; //Make sure all parents are ticked /* var p=TreeParents[field][node]; while (p>-1) { if (TreeChecked[field][p]==0) { CheckNode(field,p); unode=TreeParents[field][p]; if (unode==-1) {DrawTree(field);}...
var p=TreeParents[field][p];
function CheckNode(field,node) { if (TreeChecked[field][node]==0) { TreeChecked[field][node]=1; //Make sure all parents are ticked /* var p=TreeParents[field][node]; while (p>-1) { if (TreeChecked[field][p]==0) { CheckNode(field,p); unode=TreeParents[field][p]; if (unode==-1) {DrawTree(field);}...
*/
function CheckNode(field,node) { if (TreeChecked[field][node]==0) { TreeChecked[field][node]=1; //Make sure all parents are ticked /* var p=TreeParents[field][node]; while (p>-1) { if (TreeChecked[field][p]==0) { CheckNode(field,p); unode=TreeParents[field][p]; if (unode==-1) {DrawTree(field);}...
else { TreeChecked[field][node]=0;ResetChildren(field,node); var p=TreeParents[field][node]; if (p!=-1) { if ((CountTickedChildren(field,p)==0) && (TreeChecked[field][p]==1)) {CheckNode(field,p);UpdateNode(field,TreeParents[field][p]);} } UpdateNode(field,node); } UpdateStatusBox(field); UpdateHiddenField(field);
} else { TreeChecked[field][node] = 0; ResetChildren( field, node ); UpdateNode( field, node );
function CheckNode(field,node) { if (TreeChecked[field][node]==0) { TreeChecked[field][node]=1; //Make sure all parents are ticked /* var p=TreeParents[field][node]; while (p>-1) { if (TreeChecked[field][p]==0) { CheckNode(field,p); unode=TreeParents[field][p]; if (unode==-1) {DrawTree(field);}...
UpdateStatusBox( field ); UpdateHiddenField( field ); }
function CheckNode(field,node) { if (TreeChecked[field][node]==0) { TreeChecked[field][node]=1; //Make sure all parents are ticked /* var p=TreeParents[field][node]; while (p>-1) { if (TreeChecked[field][p]==0) { CheckNode(field,p); unode=TreeParents[field][p]; if (unode==-1) {DrawTree(field);}...
if (! expected) { if (/Error:/.exec(got)) { return false; } return true; }
doctest.JSRunner.prototype.checkResult = function (got, expected) { if (! expected) { // We special case a no-expected-output case, to just test that // there is no "Error:" in the text if (/Error:/.exec(got)) { return false; } return true; } expected = expected.replace(/[\n\r]*$/, '') + '\n'; g...
expected = '^' + expected.replace(/\\\.\\\.\\\./g, "[^]*") + '$';
expected = '^' + expected.replace(/\\\.\\\.\\\./g, "[^\\r\\n]*") + '$';
doctest.JSRunner.prototype.checkResult = function (got, expected) { expected = expected.replace(/[\n\r]*$/, '') + '\n'; got = got.replace(/[\n\r]*$/, '') + '\n'; if (expected == '...\n') { return true; } expected = RegExp.escape(expected); // Note: .* doesn't match newlines, but [^] matches everything expecte...
expected = '^' + expected.replace(/\\.\\.\\./g, "[^]*") + '$';
expected = '^' + expected.replace(/\\\.\\\.\\\./g, "[^]*") + '$';
doctest.JSRunner.prototype.checkResult = function (got, expected) { expected = expected.replace(/[\n\r]*$/, '') + '\n'; got = got.replace(/[\n\r]*$/, '') + '\n'; if (expected == '...\n') { return true; } expected = RegExp.escape(expected); // Note: .* doesn't match newlines, but [^] matches everything expecte...
expected = expected.replace(/\\\?/g, "[a-zA-Z0-9_.]+");
doctest.JSRunner.prototype.checkResult = function (got, expected) { expected = expected.replace(/[\n\r]*$/, '') + '\n'; got = got.replace(/[\n\r]*$/, '') + '\n'; if (expected == '...\n') { return true; } expected = RegExp.escape(expected); // Note: .* doesn't match newlines, [^] doesn't work on IE expected = ...
expected = '^' + expected.replace(/\\\.\\\.\\\./g, "[^\\r\\n]*") + '$';
expected = '^' + expected.replace(/\\\.\\\.\\\./g, "(?:.|[\\r\\n])*") + '$';
doctest.JSRunner.prototype.checkResult = function (got, expected) { expected = expected.replace(/[\n\r]*$/, '') + '\n'; got = got.replace(/[\n\r]*$/, '') + '\n'; if (expected == '...\n') { return true; } expected = RegExp.escape(expected); // Note: .* doesn't match newlines, [^] doesn't work on IE expected = ...
this.throwIfDisposed_();
activity.TimelineView.BarChart_.prototype.clampToStartTime = function(startTime) { this.throwIfDisposed_(); if (this.isEmpty() || startTime >= this.endTime_) { // If there are no visible events, update the start and end times // and remove any existing children. this.startTime_ = startTime; this.endTim...
var cls = function() { if(this.init) { this.init.apply(this, arguments); }}
var cls = function() { if(this.init) { return this.init.apply(this, arguments); }}
exports.Class = function(parent, proto) { if(!parent) { throw new Error('parent or prototype not provided'); } if(!proto) { proto = parent; } else if(parent instanceof Array) { // multiple inheritance, use at your own risk =) proto.prototype = {}; for(var i = 0, p; p = parent[i]; ++i) { for(var item in p.prototype)...
h=h.getElementsByName(g[1]);for(var m=0,r=h.length;m<r;m++)h[m].getAttribute("name")===g[1]&&k.push(h[m]);return k.length===0?null:k}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,k,m,r,q){g=" "+g[1].replace(/\\/g,"")+" ";if(q)return g;q=0;for(var v;(v=h[q])!=null;q++)if(v)if(r^...
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l...
h=h.getElementsByName(g[1]);for(var m=0,r=h.length;m<r;m++)h[m].getAttribute("name")===g[1]&&k.push(h[m]);return k.length===0?null:k}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,k,m,r,q){g=" "+g[1].replace(/\\/g,"")+" ";if(q)return g;q=0;for(var v;(v=h[q])!=null;q++)if(v)if(r^...
return this.$().attr('class');
return this.$().attr('class').split(' ');
classNames: function(classNames, cloneOnModify) { if (this._elem) { if (classNames) { this.$().resetClassNames().addClass(classNames); return this; } else { return this.$().attr('class'); } } if (classNames === undefined) { if (this._cloneClassNames) { this...
classNames: function(element) { return new Element.ClassNames(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(...
classNames: function(element) { return new Element.ClassNames(element); },
function(a,b){c.fn[a]=function(){return this.each(b,arguments)}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;var e=[];c.each(a,function(i,j){if(typeof j==="number")j+="";if(j){if(typeof j==="string"&&!gb.test(j))j=b.createTextNode(j);e...
return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=...
function(a,b){c.fn[a]=function(){return this.each(b,arguments)}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;var e=[];c.each(a,function(i,j){if(typeof j==="number")j+="";if(j){if(typeof j==="string"&&!gb.test(j))j=b.createTextNode(j);e...
cleanWhitespace: function(element) { element = $(element); var node = element.firstChild; while (node) { var nextNode = node.nextSibling; if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) element.removeChild(node); node = nextNode; } 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(...
cleanWhitespace: function(element) { element = $(element); var node = element.firstChild; while (node) { var nextNode = node.nextSibling; if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) element.removeChild(node); node = nextNode; } return element; },
if ((modes.extended & modes.OUTPUT_MULTILINE) && this.widgets.multilineOutput.atEnd)
if (modes.main == modes.OUTPUT_MULTILINE && this.widgets.multilineOutput.atEnd)
clear: function () { if (this.widgets.message && this.widgets.message[1] === this._lastClearable) this.widgets.message = null; if (modes.main != modes.COMMAND_LINE) this.widgets.command = null; if ((modes.extended & modes.OUTPUT_MULTILINE) && this.widgets.multilineOutput.a...
if (modes.extended != modes.OUTPUT_MULTILINE)
if (modes.main != modes.OUTPUT_MULTILINE)
clear: function () { if (this.widgets.message && this.widgets.message[1] === this._lastClearable) this.widgets.message = null; if (modes.main != modes.COMMAND_LINE) this.widgets.command = null; if ((modes.extended & modes.OUTPUT_MULTILINE) && this.widgets.multilineOutput.a...
if (modes.main == modes.OUTPUT_MULTILINE && this.widgets.multilineOutput.atEnd)
if (modes.main == modes.OUTPUT_MULTILINE && this.widgets.multilineOutput.atEnd) { dactyl.focusContent();
clear: function () { if (this.widgets.message && this.widgets.message[1] === this._lastClearable) this.widgets.message = null; if (modes.main != modes.COMMAND_LINE) this.widgets.command = null; if (modes.main == modes.OUTPUT_MULTILINE && this.widgets.multilineOutput.atEnd)...
}
clear: function () { if (this.widgets.message && this.widgets.message[1] === this._lastClearable) this.widgets.message = null; if (modes.main != modes.COMMAND_LINE) this.widgets.command = null; if (modes.main == modes.OUTPUT_MULTILINE && this.widgets.multilineOutput.atEnd)...
if (modes.extended != modes.OUTPUT_MULTILINE) this.multilineOutputVisible = false;
clear: function () { if (this.widgets.message && this.widgets.message[1] === this._lastClearable) this.widgets.message = null; if (modes.main != modes.COMMAND_LINE) this.widgets.command = null; },
this._input.length = 0;
this._input = []; this._keyword = [];
clear: function () { this._input.length = 0; },
clear: function(element) { $(element).value = ''; 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(...
clear: function(element) { $(element).value = ''; return element; },
}
},
clearClassNames: function() { // now, buffer the command. var len = this.length, i; for (i = 0; i < len; i++) { var buffer = jQuery.Buffer.bufferForElement(this[i]); buffer.clearClassNames(); } return this; }
c,a){this.editor.replaceChars(e,c,a)},getSearchCursor:function(e,c,a){return this.editor.getSearchCursor(e,c,a)},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...
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...
c,a){this.editor.replaceChars(e,c,a)},getSearchCursor:function(e,c,a){return this.editor.getSearchCursor(e,c,a)},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...
var today = new Date();
function clearInput() { var today = new Date(); resetHintTextboxes(); if(getCurrentPane() == "input") { var form = document.forms["inputform"]; form.src_date.value = today.getFullYear()+ "-" + (today.getMonth() + 1) + "-" + today.getDate(); form.src_date.focus(); form.src_apid.value = 0; form.dst_apid...
form.src_date.value = today.getFullYear()+ "-" + (today.getMonth() + 1) + "-" + today.getDate();
form.src_date.value = todayString();
function clearInput() { var today = new Date(); resetHintTextboxes(); if(getCurrentPane() == "input") { var form = document.forms["inputform"]; form.src_date.value = today.getFullYear()+ "-" + (today.getMonth() + 1) + "-" + today.getDate(); form.src_date.focus(); form.src_apid.value = 0; form.dst_apid...
form.src_date1.value = today.getFullYear()+ "-" + (today.getMonth() + 1) + "-" + today.getDate();
form.src_date1.value = todayString();
function clearInput() { var today = new Date(); resetHintTextboxes(); if(getCurrentPane() == "input") { var form = document.forms["inputform"]; form.src_date.value = today.getFullYear()+ "-" + (today.getMonth() + 1) + "-" + today.getDate(); form.src_date.focus(); form.src_apid.value = 0; form.dst_apid...
changeMode();
function clearSearch() { var form = document.forms['searchform']; form.name.value = ""; form.country.selectedIndex = 0; form.active.selectedIndex = 0; form.mode.selectedIndex = 0; form.iata.value = ""; form.icao.value = ""; form.alias.value = ""; form.callsign.value = ""; form.iatafilter.checked = true; form...
if(mod.alt || mod.meta){
if(mod.alt){
clicked: function(ev){ var mod = ev.modifier(); if(mod.alt || mod.meta){ this.quick(ev); } else { this.toggle(); } },
url.path = url.path.replace(/[^\/]+\/?$/, "");
url.path = url.path.replace(/[^\/]+\/*$/, "");
climbUrlPath: function (count) { let url = util.newURI(buffer.URL); dactyl.assert(url instanceof Ci.nsIURL); while (count-- && url.path != "/") url.path = url.path.replace(/[^\/]+\/?$/, ""); dactyl.assert(url.spec != buffer.URL); dactyl.open(url.spec); },
return { left: 0, top: 0, width: this.get('calculatedWidth'), height: this.get('calculatedHeight') };
var ret = sc_super(), cw = this.get('calculatedWidth'), ch = this.get('calculatedHeight'); if(cw) ret.width = cw; if(ch) ret.height = ch; return ret;
clippingFrame: function() { return { left: 0, top: 0, width: this.get('calculatedWidth'), height: this.get('calculatedHeight') }; }.property('calculatedWidth', 'calculatedHeight'),
"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ga,"")....
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}...
"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ga,"")....
clone: function(source, target, options) { options = options || { }; return Element.clonePosition(target, source, options); }
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(...
clone: function(source, target, options) { options = options || { }; return Element.clonePosition(target, source, options); }
clonePosition: function(element, source) { var options = Object.extend({ setLeft: true, setTop: true, setWidth: true, setHeight: true, offsetTop: 0, offsetLeft: 0 }, arguments[2] || { }); source = $(source); var p = source.viewportOffset(); element = $(element); var delta = [0, 0]; var parent = null; i...
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(...
clonePosition: function(element, source) { var options = Object.extend({ setLeft: true, setTop: true, setWidth: true, setHeight: true, offsetTop: 0, offsetLeft: 0 }, arguments[2] || { }); // find page position of source source = $(source); var p = source.viewpor...
if(currentPane == "input" || currentPane == "multiinput") {
if(isEditMode()) {
function closePane() { if(paneStack.length == 1) return; var currentPane = paneStack.pop(); var lastPane = getCurrentPane(); if(currentPane == "input" || currentPane == "multiinput") { unmarkAirports(); $("newairport").style.display = 'none'; $("qsmini").style.display = 'block'; } if(currentPane == "resu...
var currentPane = paneStack.pop(); var lastPane = getCurrentPane();
function closePane() { if(paneStack.length == 1) return; var currentPane = paneStack.pop(); var lastPane = getCurrentPane(); if(isEditMode()) { unmarkAirports(); $("newairport").style.display = 'none'; $("qsmini").style.display = 'block'; } if(currentPane == "result") { apid = 0; } $(currentPane).st...
var currentPane = paneStack.pop(); var lastPane = getCurrentPane();
function closePane() { if(paneStack.length == 1) return; var currentPane = paneStack.pop(); var lastPane = getCurrentPane(); if(isEditMode()) { unmarkAirports(); $("newairport").style.display = 'none'; $("qsmini").style.display = 'block'; } if(currentPane == "result") { apid = 0; } $(currentPane).st...
c.find(a,this[f],b);if(f>0)for(var i=d;i<b.length;i++)for(var j=0;j<d;j++)if(b[j]===b[i]){b.splice(i--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Fa(this,a,false),"not",a)},filt...
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filt...
c.find(a,this[f],b);if(f>0)for(var i=d;i<b.length;i++)for(var j=0;j<d;j++)if(b[j]===b[i]){b.splice(i--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Fa(this,a,false),"not",a)},filt...
var cls = function() { if(this.init) { this.init.apply(this, arguments); }}
var cls = function() { if(this.init) { return this.init.apply(this, arguments); }}
var cls = function() { if(this.init) { this.init.apply(this, arguments); }}
var CodeMirrorConfig=window.CodeMirrorConfig||{},CodeMirror=function(){function i(e,c){for(var a in c)e.hasOwnProperty(a)||(e[a]=c[a])}function p(e,c){for(var a=0;a<e.length;a++)c(e[a])}function k(e,c){var a=document.createElement("DIV"),b=document.createElement("DIV");a.style.position="absolute";a.style.height="100%";...
var CodeMirrorConfig=window.CodeMirrorConfig||{},CodeMirror=function(){function C(a,b){for(var c in b)a.hasOwnProperty(c)||(a[c]=b[c])}function D(a,b){for(var c=0;c<a.length;c++)b(a[c])}function E(a,b){var c=document.createElement("DIV"),e=document.createElement("DIV");c.style.position="absolute";c.style.height="100%";...
var CodeMirrorConfig=window.CodeMirrorConfig||{},CodeMirror=function(){function i(e,c){for(var a in c)e.hasOwnProperty(a)||(e[a]=c[a])}function p(e,c){for(var a=0;a<e.length;a++)c(e[a])}function k(e,c){var a=document.createElement("DIV"),b=document.createElement("DIV");a.style.position="absolute";a.style.height="100%";...
var wireTypes = wireTypesByBindingType(binding, xsdTypes);
var wireTypes = wireTypesByBindingType(binding.type, xsdTypes);
function columnsByBinding(binding, xsdTypes){ var bindingColumns = new Array(); var wireTypes = wireTypesByBindingType(binding, xsdTypes); for (var k = 0; k < wireTypes.length; k++) bindingColumns = bindingColumns.concat(columnsByWireType(wireTypes[k])); // add columns for each type return bindingCol...
for (var k = 0; k < wireTypes.length; k++) bindingColumns = bindingColumns.concat(columnsByWireType(wireTypes[k]));
for (var i in wireTypes) bindingColumns = bindingColumns.concat(columnsByWireType(wireTypes[i]));
function columnsByBinding(binding, xsdTypes){ var bindingColumns = new Array(); var wireTypes = wireTypesByBindingType(binding, xsdTypes); for (var k = 0; k < wireTypes.length; k++) bindingColumns = bindingColumns.concat(columnsByWireType(wireTypes[k])); // add columns for each type return bindingCol...
for (var k = 0; k < wireTypes.length; k++) bindingColumns = bindingColumns.concat(columnsByWireType(wireTypes[k]));
for (var i in wireTypes) bindingColumns = bindingColumns.concat(columnsByWireType(wireTypes[i]));
function columnsByBindingType(bindingType, xsdTypes){ var bindingColumns = new Array(); var wireTypes = wireTypesByBindingType(bindingType, xsdTypes); for (var k = 0; k < wireTypes.length; k++) bindingColumns = bindingColumns.concat(columnsByWireType(wireTypes[k])); // add columns for each type retur...
this.cometSessionOnConnect = function() {
this.cometSessionOnConnect = function(conn) {
this.cometSessionOnConnect = function() { logger.debug('conn has opened'); this.onConnect(new Transport(conn)); }
Cu.import("resource: require(global, "util"); require(global, "config");
function CommandLineHandler() { this.wrappedJSObject = this;}
this.echo(<>:{this.command}<br/>{xml}</>, this.HIGHLIGHT_NORMAL, this.FORCE_MULTILINE);
if (this.command) this.echo(<>:{this.command}</>, this.HIGHLIGHT_NORMAL, this.FORCE_MULTILINE); this.echo(xml, this.HIGHLIGHT_NORMAL, this.FORCE_MULTILINE); this.command = null;
commandOutput: function (xml) { XML.ignoreWhitespace = false; XML.prettyPrinting = false; this.echo(<>:{this.command}<br/>{xml}</>, this.HIGHLIGHT_NORMAL, this.FORCE_MULTILINE); },
commandline.runSilently(function () dactyl.execute(args[0] || "", null, true));
commandline.runSilently(function () commands.execute(args[0] || "", null, true));
commands: function () { [ { name: "ec[ho]", description: "Echo the expression", action: dactyl.echo }, { name: "echoe[rr]", description: "Echo the expression as an error message", action...
let str = CommandLine.echoArgumentToString(args[0], true);
let str = CommandLine.echoArgumentToString(args[0] || "", true);
commands: function () { [ { name: "ec[ho]", description: "Echo the expression", action: dactyl.echo }, { name: "echoe[rr]", description: "Echo the expression as an error message", action...
commandline.runSilently(function () dactyl.execute(args[0], null, true));
commandline.runSilently(function () dactyl.execute(args[0] || "", null, true));
commands: function () { [ { name: "ec[ho]", description: "Echo the expression", action: dactyl.echo }, { name: "echoe[rr]", description: "Echo the expression as an error message", action...
commandline.widgets.message = null; if (modes.main != modes.COMMAND_LINE) commandline.widgets.command = null;
commandline.clear();
commands: function () { commands.add(["downl[oads]", "dl"], "Show progress of current downloads", function () { dactyl.open("chrome://mozapps/content/downloads/downloads.xul", { from: "downloads"}); }, { argCount: "0" }); co...
<div highlight={message.highlight + " Message"}>{message.message}</div>));;
<div highlight={message.highlight + " Message"}>{message.message}</div>));
commands: function () { [ { name: "ec[ho]", description: "Echo the expression", action: dactyl.echo }, { name: "echoe[rr]", description: "Echo the expression as an error message", action...
args = args[0];
dactyl.dump(args); args = args[0] || "";
commands: function () { commands.add(["delqm[arks]"], "Delete the specified QuickMarks", function (args) { // TODO: finish arg parsing - we really need a proper way to do this. :) // assert(args.bang ^ args[0]) dactyl.assert( args.bang || ar...
dactyl.assert(!args || /[a-zA-Z0-9]/.test(args), "E283: No QuickMarks matching \"" + args + "\"");
dactyl.assert(!args || /[a-zA-Z0-9]/.test(args), "E283: No QuickMarks matching " + args.quote());
commands: function () { commands.add(["delqm[arks]"], "Delete the specified QuickMarks", function (args) { // TODO: finish arg parsing - we really need a proper way to do this. :) // assert(args.bang ^ args.string) dactyl.assert( args.bang ||...
args = args[0];
args = args[0] || "";
commands: function () { commands.add(["delm[arks]"], "Delete the specified marks", function (args) { let special = args.bang; args = args[0]; // assert(special ^ args) dactyl.assert( special || args, "E471: Argument required")...
let mark = args[0];
let mark = args[0] || "";
commands: function () { commands.add(["delm[arks]"], "Delete the specified marks", function (args) { let special = args.bang; args = args[0]; // assert(special ^ args) dactyl.assert( special || args, "E471: Argument required")...
commands.add(["macros"],
commands.add(["mac[ros]"],
commands: function () { commands.add(["delmac[ros]"], "Delete macros", function (args) { liberator.assert(!args.bang || !args.string, "E474: Invalid argument"); if (args.bang) events.deleteMacros(); else if (args.string) ...
res.push(/\n/.test(str) ? "<<EOF\n" + str.replace(/\n$/, "") + "\nEOF" : str);
res.push(!/\n/.test(str) ? str : this.hereDoc ? "<<EOF\n" + str.replace(/\n$/, "") + "\nEOF" : str.replace(/\n/, "\n" + res[0].replace(/./g, " ").replace(/.$/, "\\")));
commandToString: function (args) { let res = [args.command + (args.bang ? "!" : "")]; for (let [opt, val] in Iterator(args.options || {})) { let chr = /^-.$/.test(opt) ? " " : "="; if (val != null) opt += chr + Commands.quote(val); res.push(opt); ...
if (compare(document.getElementById("sidebar-title").value, arg)) {
if (compare(document.getElementById("sidebar-title").value, args[0]))
function compare(a, b) util.compareIgnoreCase(a, b) == 0 // focus if the requested sidebar is already open if (compare(document.getElementById("sidebar-title").value, arg)) {
compareRanges: function (r1, r2) this.backward ? r1.compareBoundaryPoints(r1.END_TO_START, r2) : -r1.compareBoundaryPoints(r1.START_TO_END, r2),
compareRanges: function (r1, r2) { try { return this.backward ? r1.compareBoundaryPoints(r1.END_TO_START, r2) : -r1.compareBoundaryPoints(r1.START_TO_END, r2); } catch (e) { util.reportError(e); return 0; } },
compareRanges: function (r1, r2) this.backward ? r1.compareBoundaryPoints(r1.END_TO_START, r2) : -r1.compareBoundaryPoints(r1.START_TO_END, r2),
compileMatcher: function() { var e = this.expression, ps = Selector.patterns, h = Selector.handlers, c = Selector.criteria, le, p, m; if (Selector._cache[e]) { this.matcher = Selector._cache[e]; return; } this.matcher = ["this.matcher = function(root) {", "var r = root, h = Selector.handlers, c = false, n;"]; while ...
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(...
compileMatcher: function() { var e = this.expression, ps = Selector.patterns, h = Selector.handlers, c = Selector.criteria, le, p, m; if (Selector._cache[e]) { this.matcher = Selector._cache[e]; return; } this.matcher = ["this.matcher = function(root) {", "var r = root,...
var firstNames = $$(".tx_seminars_pi1_registration_editor_first_name"); var lastNames = $$(".tx_seminars_pi1_registration_editor_last_name");
var firstNames = $$("#tx_seminars_pi1_registration_editor_separate_names " + ".tx_seminars_pi1_registration_editor_first_name"); var lastNames = $$("#tx_seminars_pi1_registration_editor_separate_names " + ".tx_seminars_pi1_registration_editor_last_name"); var positions = $$("#tx_seminars_pi1_registration_editor_separat...
function compileNames() { var humanReadableField = $("tx_seminars_pi1_registration_editor_attendees_names"); var machineReadableField = $("tx_seminars_pi1_registration_editor_structured_attendees_names"); if (!humanReadableField || !machineReadableField) { return; } var firstNames = $$(".tx_seminars_pi1_registration_...
for (var i = 0; i < firstNames.length; i++) {
var numberOfLines = firstNames.length; for (var i = 0; i < numberOfLines; i++) {
function compileNames() { var humanReadableField = $("tx_seminars_pi1_registration_editor_attendees_names"); var machineReadableField = $("tx_seminars_pi1_registration_editor_structured_attendees_names"); if (!humanReadableField || !machineReadableField) { return; } var firstNames = $$(".tx_seminars_pi1_registration_...
machineReadableNames[i] = [firstName, lastName];
if (!position.empty()) { humanReadableNames += ", " + position; } if (!eMailAddress.empty()) { humanReadableNames += ", " + eMailAddress; } machineReadableNames[i] = [firstName, lastName, position, eMailAddress];
function compileNames() { var humanReadableField = $("tx_seminars_pi1_registration_editor_attendees_names"); var machineReadableField = $("tx_seminars_pi1_registration_editor_structured_attendees_names"); if (!humanReadableField || !machineReadableField) { return; } var firstNames = $$(".tx_seminars_pi1_registration_...
compileXPathMatcher: function() { var e = this.expression, ps = Selector.patterns, x = Selector.xpath, le, m; if (Selector._cache[e]) { this.xpath = Selector._cache[e]; return; } this.matcher = ['. while (e && le != e && (/\S/).test(e)) { le = e; for (var i in ps) { if (m = e.match(ps[i])) { this.matcher.push(Object....
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(...
compileXPathMatcher: function() { var e = this.expression, ps = Selector.patterns, x = Selector.xpath, le, m; if (Selector._cache[e]) { this.xpath = Selector._cache[e]; return; } this.matcher = ['.//*']; while (e && le != e && (/\S/).test(e)) { le = e; for (var i in ps) { i...
compl = function (context, args, recurse) { context.process[1] = function highlight(item, v) template.highlight(typeof v == "xml" ? new String(v.toXMLString()) : v, true); let compare = context.compare; function isnan(item) item != '' && isNaN(item); context.compare = function (a, b) { if (!isnan(a.key) && !isnan...
compl = function (context, obj) { let res = completer.call(self, context, func, obj, args); if (res) context.completions = res;
compl = function (context, args, recurse) { context.process[1] = function highlight(item, v) template.highlight(typeof v == "xml" ? new String(v.toXMLString()) : v, true); // Sort in a logical fashion for object keys: // Numbers are sorted as ...
context.keys = { text: args.prefix ? function (text) text.substr(args.prefix.length) : util.identity, description: function (item) self.getKey(args.obj, item), key: function (item) { if (!isNaN(key)) return parseInt(key); if (/^[A-Z_][A-Z0-9_]*$/.test(key)) return ""; return item; } }; if (!context.anchored) context.f...
compl = function (context, args, recurse) { context.process[1] = function highlight(item, v) template.highlight(typeof v == "xml" ? new String(v.toXMLString()) : v, true); // Sort in a logical fashion for object keys: // Numbers are sorted as ...
compl = function (context, obj, recurse) {
compl = function (context, args, recurse) {
compl = function (context, obj, recurse) { context.process[1] = function highlight(item, v) template.highlight(typeof v == "xml" ? new String(v.toXMLString()) : v, true); // Sort in a logical fashion for object keys: // Numbers are sorted as n...
text: util.identity, description: function (item) self.getKey(obj, item),
text: args.prefix ? function (text) text.substr(args.prefix.length) : util.identity, description: function (item) self.getKey(args.obj, item),
compl = function (context, obj, recurse) { context.process[1] = function highlight(item, v) template.highlight(typeof v == "xml" ? new String(v.toXMLString()) : v, true); // Sort in a logical fashion for object keys: // Numbers are sorted as n...
if (obj == self.cache.evalContext)
if (args.obj == self.cache.evalContext)
compl = function (context, obj, recurse) { context.process[1] = function highlight(item, v) template.highlight(typeof v == "xml" ? new String(v.toXMLString()) : v, true); // Sort in a logical fashion for object keys: // Numbers are sorted as n...
context.generate = function () self.objectKeys(obj, !recurse);
context.generate = function () self.objectKeys(args.obj, !recurse);
compl = function (context, obj, recurse) { context.process[1] = function highlight(item, v) template.highlight(typeof v == "xml" ? new String(v.toXMLString()) : v, true); // Sort in a logical fashion for object keys: // Numbers are sorted as n...
this.injectCandidates(cands[0].value, false);
this.injectCandidates(cands[0].value, true);
complete: function(denyEmpty){ var text = this.tags.value; var word = this.getCurrentWord(); var hint = word.hint; if(!hint && denyEmpty){ this.popup.hidePopup(); return; } var cands = this.getCandidates(hint); if(this.autoComplete && !this.deleting && cands.length === 1 && (hint.length...
let completeFunc = null; if (completeOpt) { if (/^custom,/.test(completeOpt)) { completeOpt = completeOpt.substr(7); completeFunc = function () { try { var completer = liberator.eval(completeOpt); if (!(completer instanceof Function)) throw new TypeError("User-defined custom completer " + completeOpt.quote() + " is n...
completeFunc = function (context) completion[completeOptionMap[completeOpt]](context);
let completeFunc = null; // default to no completion for user commands if (completeOpt) { if (/^custom,/.test(completeOpt)) { completeOpt = completeOpt.substr(7); completeFunc = function () { ...
completer: function (context) [[k, ""] for ([k, v] in Iterator(completeOptionMap))],
completer: function (context) completion.userCommand(context) });
completer: function (context) [[k, ""] for ([k, v] in Iterator(completeOptionMap))],
completer: function (context) [ ["0", "Don't show link destination"], ["1", "Show the link in the status line"], ["2", "Show the link in the command line"] ] });
completer: function (context) completion.file(context),
completer: function (context) [ ["0", "Don't show link destination"], ["1", "Show the link in the status line"], ["2", "Show the link in the command line"] ] });
completer: function (context, args) { if (args.length == 1) return completion.userMapping(context, args, mapmodes); if (args["-javascript"]) return completion.javascript(context); if (args["-ex"]) return completion.ex(context); },
completer: function () [[array.compact([mode.name.toLowerCase().replace(/_/g, "-"), mode.char]), mode.disp] for (mode in modes.mainModes)],
completer: function (context, args) { if (args.length == 1) return completion.userMapping(context, args, mapmodes); if (args["-javascript"]) return completion.javascript(context); ...
}));
}, args));
completer: function (a, b) compl(a, b, true) }));
completer: function (context) { context.compare = function () 0; context.completions = [[k, v.prompt] for ([k, v] in Iterator(hints._hintModes))]; },
completer: function (context) [ ["value", "Match against the value contained by the input field"], ["label", "Match against the value of a label for the input field, if one can be found"], ["name", "Match against the name of an input field, only if neither a name or value could be found."] ] });
completer: function (context) { context.compare = function () 0; context.completions = [[k, v.prompt] for ([k, v] in Iterator(hints._hintModes))]; },
if (args["-javascript"]) return completion.javascript(context); if (args["-ex"]) return completion.ex(context);
if (args.length == 2) { if (args["-javascript"]) return completion.javascript(context); if (args["-ex"]) return completion.ex(context); }
completer: function (context, args) { if (args.length == 1) return completion.userMapping(context, args, mapmodes); if (args["-javascript"]) return completion.javascript(context); ...
}).uniq()
}).uniq();
completer: function (context, args) { context.keys.text = util.identity; context.keys.description = function () seen[this.text] + " matching items"; let seen = {}; context.completions = array(item.description.toLowerCase().split...
completion.bookmark(context, args["-tags"], { keyword: args["-keyword"], title: args["-title"] });
completion.bookmark(context, args, args["-tags"], { keyword: args["-keyword"], title: args["-title"] });
completer: function (context, args) { if (!args.bang) { context.title = ["Page URL"]; let frames = buffer.allFrames(); context.completions = [ [win.document.documentURI, frames.length == 1 ...
["", "Don't show link destination"], ["status", "Show the link in the status line"], ["command", "Show the link in the command line"]
["", "Don't show link destinations"], ["status", "Show link destinations in the status line"], ["command", "Show link destinations in the command line"]
completer: function (context) [ ["", "Don't show link destination"], ["status", "Show the link in the status line"], ["command", "Show the link in the command line"] ] });
["longest", "Complete to longest common string"],
["longest", "Complete the longest common string"],
completer: function (context) [ // Why do we need ""? // Because its description is useful during completion. --Kris ["", "Complete only the first match"], ["full", "Complete the next full match"], ["longest", ...
["list:longest", "List all and complete common string"]
["list:longest", "List all and complete the longest common string"]
completer: function (context) [ // Why do we need ""? // Because its description is useful during completion. --Kris ["", "Complete only the first match"], ["full", "Complete the next full match"], ["longest", ...
completer: function () config.autocommands.concat([["all", "All events"]])
completer: function () Iterator(update({ all: "All Events" }, config.autocommands))
completer: function () config.autocommands.concat([["all", "All events"]]) });
completer: function (context) completion.history(context, args["-max"], args["-sort"]),
completer: function (context, args) completion.history(context, args["-max"], args["-sort"]),
completer: function (context) completion.history(context, args["-max"], args["-sort"]),
return [k for ([k, v] in Iterator(completeOptionMap)) if (completer == completion[v])][0] || "custom";
return [k for ([k, v] in Iterator(completeOptionMap)) if (completer == completion.closure[v])][0] || "custom";
function completerToString(completer) { if (completer) return [k for ([k, v] in Iterator(completeOptionMap)) if (completer == completion[v])][0] || "custom"; return ""; }
filter = context.filter.toLowerCase(); context.anchored = false; context.title = ["Buffer", "URL"]; context.keys = { text: "text", description: "url", icon: "icon" }; context.compare = CompletionContext.Sort.number; let process = context.process[0]; context.process = [function (item, text) <> <span highlight="Indicator...
let filter = context.filter.toLowerCase(); let defItem = { parent: { getTitle: function () "" } }; let tabGroups = {}; tabs.getGroups(); tabs.allTabs.forEach(function (tab, i) { let group = (tab.tabItem || defItem).parent || defItem.parent; if (!set.has(tabGroups, group.id)) tabGroups[group.id] = [group.getTitle(), []]...
completion: function () { completion.alternateStyleSheet = function alternateStylesheet(context) { context.title = ["Stylesheet", "Location"]; // unify split style sheets let styles = {}; buffer.alternateStyleSheets.forEach(function (style) { if (!(s...
context.completions = util.map(tabs.browsers, function ([i, browser]) { let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i == tabs.index(tabs.alternate)) indicator = "#";
let orig = context; for (let [id, [name, browsers]] in Iterator(tabGroups)) { context = orig.fork(id, 0); context.anchored = false; context.title = [name || "Buffers"]; context.keys = { text: "text", description: "url", icon: "icon" }; context.compare = CompletionContext.Sort.number; let process = context.process[0]; c...
completion: function () { completion.alternateStyleSheet = function alternateStylesheet(context) { context.title = ["Stylesheet", "Location"]; // unify split style sheets let styles = {}; buffer.alternateStyleSheets.forEach(function (style) { if (!(s...
let tab = tabs.getTab(i); let url = browser.contentDocument.location.href; i = i + 1;
context.completions = util.map(util.Array.itervalues(browsers), function ([i, browser]) { let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i == tabs.index(tabs.alternate)) indicator = "#";
completion: function () { completion.alternateStyleSheet = function alternateStylesheet(context) { context.title = ["Stylesheet", "Location"]; // unify split style sheets let styles = {}; buffer.alternateStyleSheets.forEach(function (style) { if (!(s...
return { text: [i + ": " + (tab.label || "(Untitled)"), i + ": " + url], url: template.highlightURL(url), indicator: indicator, icon: tab.image || DEFAULT_FAVICON }; });
let tab = tabs.getTab(i); let url = browser.contentDocument.location.href; i = i + 1; return { text: [i + ": " + (tab.label || "(Untitled)"), i + ": " + url], url: template.highlightURL(url), indicator: indicator, icon: tab.image || DEFAULT_FAVICON }; }); }
completion: function () { completion.alternateStyleSheet = function alternateStylesheet(context) { context.title = ["Stylesheet", "Location"]; // unify split style sheets let styles = {}; buffer.alternateStyleSheets.forEach(function (style) { if (!(s...
context.keys.icon = 2; context.incomplete = true; context.hasItems = context.completions.length > 0; context.filterFunc = null; context.cancel = function () { if (searchRunning) { services.get("autoCompleteSearch").stopSearch(); searchRunning = false; } }; context.compare = CompletionContext.Sort.unsorted;
context.cancel = function () { if (searchRunning) { services.get("autoCompleteSearch").stopSearch(); searchRunning = false; } }; if (searchRunning) services.get("autoCompleteSearch").stopSearch();
completion: function () { var searchRunning = false; // only until Firefox fixes https://bugzilla.mozilla.org/show_bug.cgi?id=510589 completion.location = function location(context) { if (!services.get("autoCompleteSearch")) return; context.anchored = false; ...
if (searchRunning) services.get("autoCompleteSearch").stopSearch(); searchRunning = true;
completion: function () { var searchRunning = false; // only until Firefox fixes https://bugzilla.mozilla.org/show_bug.cgi?id=510589 completion.location = function location(context) { if (!services.get("autoCompleteSearch")) return; context.anchored = false; ...
searchRunning = true;
completion: function () { var searchRunning = false; // only until Firefox fixes https://bugzilla.mozilla.org/show_bug.cgi?id=510589 completion.location = function location(context) { if (!services.get("autoCompleteSearch")) return; context.anchored = false; ...
if (!args.completeOpt && command.completer) {
if (!args.completeOpt && command.completer && args.completeStart != null) {
completion: function () { completion.command = function command(context) { context.title = ["Command"]; context.keys = { text: "longNames", description: "description" }; context.completions = [k for (k in commands)]; }; // provides completions for ex commands, i...
context.keys = { text: "name", description: "description", icon: "icon" }, context.completions = liberator.extensions;
context.keys = { text: "name", description: "description", icon: "iconURL" }, context.incomplete = true; AddonManager.getAddonsByTypes(["extension"], function (addons) { context.incomplete = false; context.completions = addons; });
completion: function () { completion.dialog = function dialog(context) { context.title = ["Dialog"]; context.completions = config.dialogs; }; completion.extension = function extension(context) { context.title = ["Extension"]; context.anchored = false;...
const { CompletionContext, completion } = modules;
const { CompletionContext, bookmarkcache, bookmarks, completion } = modules;
completion: function (dactyl, modules, window) { const { CompletionContext, completion } = modules; const { document } = window; var searchRunning = false; // only until Firefox fixes https://bugzilla.mozilla.org/show_bug.cgi?id=510589 completion.location = function location(context) { ...
let toolbox = document.getElementById("navigator-toolbox");
completion: function () { completion.dialog = function dialog(context) { context.title = ["Dialog"]; context.completions = config.dialogs; }; completion.extension = function extension(context) { context.title = ["Extension"]; context.anchored = false;...