rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if (elem.collapsed) | if (!elem.collapsed) | onChange: function (elem) { if (elem.inputField != dactyl.focus) { try { elem.selectionStart = elem.value.length; elem.selectionEnd = elem.value.length; } catch (e) {} } ... |
onClick: function(item, node) { if (item.url) { alert(item.url); } }, | onClick: function(item, node) { if (item.url) { p = item.url[0].replace(/\.([^:]+):/, '.$1.html#'); window.location = virtroot + sep + tree + '/' + p; } }, | onClick: function(item, node) { if (item.url) { alert(item.url); } }, |
location.hash = ''; | location.hash = '#doctest-testall'; | reloader.onclick = function () { location.hash = ''; location.reload(); }; |
onComplete: function() { Ajax.activeRequestCount-- } | 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(... | onComplete: function() { Ajax.activeRequestCount-- } |
onCreate: function() { Ajax.activeRequestCount++ }, | 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(... | onCreate: function() { Ajax.activeRequestCount++ }, |
onElementEvent: function() { var value = this.getValue(); if (this.lastValue != value) { this.callback(this.element, value); this.lastValue = value; } }, | 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(... | onElementEvent: function() { var value = this.getValue(); if (this.lastValue != value) { this.callback(this.element, value); this.lastValue = value; } }, |
this.throwIfDisposed_(); | activity.TimelineView.prototype.onEndTimeChanged = function(endTimeUsec) { this.throwIfDisposed_(); // Convert from usec to number of resolutions. var endTimeInResolutions = Math.ceil(endTimeUsec / this.resolutionUsec_); var startTimeInResolutions = Math.floor(this.startTimeUsec_ / this.resolutionUsec_); // C... | |
case modes.OUTPUT_MULTILINE: | onEscape: function () { switch (dactyl.mode) { case modes.COMMAND_LINE: case modes.INSERT: case modes.PASS_THROUGH: case modes.QUOTE: case modes.TEXT_EDIT: case modes.VISUAL: modes.pop(); break; default: modes.reset(); ... | |
this.throwIfDisposed_(); | activity.TimelineView.Row_.prototype.onEvent = function(event) { this.throwIfDisposed_(); // Ordinals are one-indexed, but our array is zero-indexed, so we // need to subtract one from the ordinal value. var index = activity.TimelineEventType.getOrdinalForEventType(event.getType()) - 1; var chart = this.barCh... | |
if ((elem instanceof HTMLInputElement && /^(text|password)$/.test(elem.type)) || | if ((elem instanceof HTMLInputElement && /^(search|text|password)$/.test(elem.type)) || | onFocusChange: function (event) { // command line has it's own focus change handler if (liberator.mode == modes.COMMAND_LINE) return; function hasHTMLDocument(win) win && win.document && win.document instanceof HTMLDocument let win = window.document.commandDispatcher.focusedW... |
PAGESPEED.PageLoadTimer.prototype.onLinkIconAvailable = function() {return 0;}; | PAGESPEED.PageLoadTimer.prototype.onLinkIconAvailable = function() {return;}; | PAGESPEED.PageLoadTimer.prototype.onLinkIconAvailable = function() {return 0;}; |
oDiv2.innerHTML = "<strong>Warning:</strong><br />This is document needs some updates."; | oDiv2.innerHTML = "<strong>Warning:</strong><br />This document needs some updates."; | window.onload = function() { var oDiv = document.getElementById("version"); oDiv.innerHTML = "Version 0.37-dev<br />(other <a href='faq.html#versions'>versions</a>)"; var oDiv2 = document.getElementById("warnDoc"); if (oDiv2 != null) { oDiv2.innerHTML = "<strong>Warning:</strong><br />This is document needs some updat... |
array_each(onpuchan_topics(html), function(t) { tag.parentNode.removeChild(tag); insertNext(placepoint, t[1]); | arrayEach(onpuchanTopics(html), function(t) { insertNext(topic, t); | xmlHttpRequest({method: "GET", url: href, onload: function(http) { var html = document.createElement("div"); html.innerHTML = http.responseText; array_each(onpuchan_topics(html), function(t) { tag.parentNode.removeChild(tag); insertNext(placepoint, t[1]); }); }}); |
topic.parentNode.removeChild(topic); | xmlHttpRequest({method: "GET", url: href, onload: function(http) { var html = document.createElement("div"); html.innerHTML = http.responseText; array_each(onpuchan_topics(html), function(t) { tag.parentNode.removeChild(tag); insertNext(placepoint, t[1]); }); }}); | |
highlight.set("Logo", String(<> | highlight.loadCSS(<>{"!Logo {"} | img.onload = function () { highlight.set("Logo", String(<> display: inline-block; background: url({img.src}); width: {img.width}px; height: {img.height}px; </>)); img = null; }... |
</>)); | {"}"}</>); | img.onload = function () { highlight.set("Logo", String(<> display: inline-block; background: url({img.src}); width: {img.width}px; height: {img.height}px; </>)); img = null; }... |
aProgress, aRequest, aURI) {return 0;}; | aProgress, aRequest, aURI) {return;}; | PAGESPEED.PageLoadTimer.prototype.onLocationChange = function( aProgress, aRequest, aURI) {return 0;}; |
PAGESPEED.PageLoadTimer.prototype.onProgressChange = function() {return 0;}; | PAGESPEED.PageLoadTimer.prototype.onProgressChange = function() {return;}; | PAGESPEED.PageLoadTimer.prototype.onProgressChange = function() {return 0;}; |
if(action == "LOAD") { loadAirport(self.xmlHttpReq.responseText.split("\n")[1]); document.getElementById("miniresultbox").innerHTML = ""; } | self.xmlHttpReq.onreadystatechange = function() { if (self.xmlHttpReq.readyState == 4) { if(strURL == URL_APSEARCH) { if(action == "SEARCH") { searchResult(self.xmlHttpReq.responseText); } if(action == "RECORD") { recordResult(self.xmlHttpReq.responseText); } } } } | |
C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!i){var D=false;C.onload=C.onreadystatechange=function(){if(!D&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){D=true;b();d();C.onload=C.onreadystatechange=null;B&&C.parentNode&&B.removeChild(C)}}}B.insertBefore(C,B.firstChild);r... | false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,... | C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!i){var D=false;C.onload=C.onreadystatechange=function(){if(!D&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){D=true;b();d();C.onload=C.onreadystatechange=null;B&&C.parentNode&&B.removeChild(C)}}}B.insertBefore(C,B.firstChild);r... |
PAGESPEED.PageLoadTimer.prototype.onSecurityChange = function() {return 0;}; | PAGESPEED.PageLoadTimer.prototype.onSecurityChange = function() {return;}; | PAGESPEED.PageLoadTimer.prototype.onSecurityChange = function() {return 0;}; |
this.startTime_ = new Date().getTime(); | this.startTime_ = (new Date()).getTime(); | PAGESPEED.PageLoadTimer.prototype.onStateChange = function( aProgress, aRequest, aFlag, aStatus) { // Do not try to time requests to non-http or https URLs. // Note that a dummy request to "about:document-onload-blocker" is // fired by the DOM inspector extension. This test filters it. // Docs say aRequest may ... |
this.loadTime_ = new Date().getTime() - this.startTime_; | this.loadTime_ = (new Date()).getTime() - startTime; this.couldHaveMissedStart_ = false; | PAGESPEED.PageLoadTimer.prototype.onStateChange = function( aProgress, aRequest, aFlag, aStatus) { // Do not try to time requests to non-http or https URLs. // Note that a dummy request to "about:document-onload-blocker" is // fired by the DOM inspector extension. This test filters it. // Docs say aRequest may ... |
return 0; | return; | PAGESPEED.PageLoadTimer.prototype.onStateChange = function( aProgress, aRequest, aFlag, aStatus) { // Do not try to time requests to non-http or https URLs. // Note that a dummy request to "about:document-onload-blocker" is // fired by the DOM inspector extension. This test filters it. // Docs say aRequest may ... |
onStateChange: function() { var readyState = this.transport.readyState; if (readyState > 1 && !((readyState == 4) && this._complete)) this.respondToReadyState(this.transport.readyState); }, | 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(... | onStateChange: function() { var readyState = this.transport.readyState; if (readyState > 1 && !((readyState == 4) && this._complete)) this.respondToReadyState(this.transport.readyState); }, |
PAGESPEED.PageLoadTimer.prototype.onStatusChange = function() {return 0;}; | PAGESPEED.PageLoadTimer.prototype.onStatusChange = function() {return;}; | PAGESPEED.PageLoadTimer.prototype.onStatusChange = function() {return 0;}; |
this.lastSearchPattern = command; | onSubmit: function (command) { if (!options["incsearch"] || !this.rangeFind || !this.rangeFind.found) { this.clear(); this.find(command || this.lastSearchPattern, modes.extended & modes.FIND_BACKWARD); } this.lastSearchPattern = command; if (options["hlsearch"]) ... | |
var ajax = new Ajax.Request(url,{method: 'get', parameters:formdata, onSuccess: function(response) {refreshIt(response.responseText);} | var ajax = new Ajax.Updater({success: 'error'},url,{method: 'get', parameters:formdata, onSuccess: function(response) {refreshIt(response.responseText);} | var ajax = new Ajax.Request(url,{method: 'get', parameters:formdata, onSuccess: function(response) {refreshIt(response.responseText);} |
this.throwIfDisposed_(); | activity.TimelineView.prototype.onTimelineCreated = function(timeline) { this.throwIfDisposed_(); var rowElement = this.xulElementFactory_.createElement('row'); var row = new activity.TimelineView.Row_(timeline, this.xulElementFactory_, ... | |
onTimerEvent: function() { if (!this.currentlyExecuting) { try { this.currentlyExecuting = true; this.execute(); } finally { this.currentlyExecuting = false; } } } | 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(... | onTimerEvent: function() { if (!this.currentlyExecuting) { try { this.currentlyExecuting = true; this.execute(); } finally { this.currentlyExecuting = false; } } } |
}, | } | onUnload: function (event) { this.purgeListeners(); if (this.highlighted) this.highlight(false); this.stale = true; }, |
onVisibility: function (elem, visible) { visible && dactyl.focus(elem)} | onVisibility: function (elem, visible) { visible && dactyl.focus(elem); } | onVisibility: function (elem, visible) { visible && dactyl.focus(elem)} |
onVisibility: function (elem, visible) { visible && elem.focus(); } | onVisibility: function (elem, visible) { visible && dactyl.focus(elem)} | onVisibility: function (elem, visible) { visible && elem.focus(); } |
onVisibility: function (elem, visible) visible && elem.focus() }); | onVisibility: function (elem, visible) { visible && elem.focus() } | onVisibility: function (elem, visible) visible && elem.focus() }); |
var opActivity=function(id,posturl){var t=this;var addEventListener=function(obj,type,listener,useCapture){if(obj.addEventListener){obj.addEventListener(type,listener,useCapture);}else if(obj.attachEvent){type='on'+type;obj.attachEvent(type,listener);}};var getHttpRequest=function(){var req=null;if(window.XMLHttpReques... | var opActivity=function(id,posturl){var t=this;var addEventListener=function(obj,type,listener,useCapture){if(obj.addEventListener){obj.addEventListener(type,listener,useCapture);}else if(obj.attachEvent){type='on'+type;obj.attachEvent(type,listener);}};var getHttpRequest=function(){var req=null;if(window.XMLHttpReques... | var opActivity=function(id,posturl){var t=this;var addEventListener=function(obj,type,listener,useCapture){if(obj.addEventListener){obj.addEventListener(type,listener,useCapture);}else if(obj.attachEvent){type='on'+type;obj.attachEvent(type,listener);}};var getHttpRequest=function(){var req=null;if(window.XMLHttpReques... |
return req;};this.post=function(){var req=getHttpRequest();req.open("POST",posturl,true);req.setRequestHeader("X-Requested-With","XMLHttpRequest");req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var data="";for(var i=0;i<this.form.elements.length;i++){data+="&"+this.form.elements[i].name+"="+th... | return req;};this.post=function(){var req=getHttpRequest();req.open("POST",posturl,true);req.setRequestHeader("X-Requested-With","XMLHttpRequest");req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var data="";for(var i=0;i<this.form.elements.length;i++){data+="&"+encodeURIComponent(this.form.elem... | var opActivity=function(id,posturl){var t=this;var addEventListener=function(obj,type,listener,useCapture){if(obj.addEventListener){obj.addEventListener(type,listener,useCapture);}else if(obj.attachEvent){type='on'+type;obj.attachEvent(type,listener);}};var getHttpRequest=function(){var req=null;if(window.XMLHttpReques... |
var fp = PAGESPEED.Utils.CCIN( '@mozilla.org/filepicker;1', 'nsIFilePicker'); fp.init(window, 'Select location of JSON encoded output:', Components.interfaces.nsIFilePicker.modeSave); var result = fp.show(); if (result != Components.interfaces.nsIFilePicker.returnOK && result != Components.interfaces.nsIFilePicker.re... | var fileToSave = PAGESPEED.Utils.openSaveAsDialogBox( 'Select location of JSON encoded output:', 'pagespeed_results.json'); if (!fileToSave) { | PAGESPEED.ResultsWriter.openJsonExportDialog = function(resultsContainer) { // Open a save as dialog box: var fp = PAGESPEED.Utils.CCIN( '@mozilla.org/filepicker;1', 'nsIFilePicker'); fp.init(window, 'Select location of JSON encoded output:', Components.interfaces.nsIFilePicker.modeSave); var result =... |
PAGESPEED.ResultsWriter.writeToFile(fp.file.path, resultsContainer); | PAGESPEED.ResultsWriter.writeToFile(fileToSave.path, resultsContainer); | PAGESPEED.ResultsWriter.openJsonExportDialog = function(resultsContainer) { // Open a save as dialog box: var fp = PAGESPEED.Utils.CCIN( '@mozilla.org/filepicker;1', 'nsIFilePicker'); fp.init(window, 'Select location of JSON encoded output:', Components.interfaces.nsIFilePicker.modeSave); var result =... |
Ci.nsIFilePicker.modeSave); | Components.interfaces.nsIFilePicker.modeSave); | PAGESPEED.ResultsWriter.openJsonExportDialog = function(resultsContainer) { // Open a save as dialog box: var fp = PAGESPEED.Utils.CCIN( '@mozilla.org/filepicker;1', 'nsIFilePicker'); fp.init(window, 'Select location of JSON encoded output:', Ci.nsIFilePicker.modeSave); var result = fp.show(); if (re... |
if (result != Ci.nsIFilePicker.returnOK && result != Ci.nsIFilePicker.returnReplace) { | if (result != Components.interfaces.nsIFilePicker.returnOK && result != Components.interfaces.nsIFilePicker.returnReplace) { | PAGESPEED.ResultsWriter.openJsonExportDialog = function(resultsContainer) { // Open a save as dialog box: var fp = PAGESPEED.Utils.CCIN( '@mozilla.org/filepicker;1', 'nsIFilePicker'); fp.init(window, 'Select location of JSON encoded output:', Ci.nsIFilePicker.modeSave); var result = fp.show(); if (re... |
event.stopPropagation(); | openLink: function(event) { event.preventDefault(); PAGESPEED.Utils.openLink(event.target); }, | |
this.rangeFind = null; | openPrompt: function (mode) { let backwards = mode == modes.FIND_BACKWARD; commandline.open(backwards ? "?" : "/", "", mode); this.find("", backwards); }, | |
if (this.rangeFind) | if (this.rangeFind && this.rangeFind.window.get() == window) | openPrompt: function (mode) { let backwards = mode == modes.FIND_BACKWARD; commandline.open(backwards ? "?" : "/", "", mode); if (this.rangeFind) this.rangeFind.reset(); this.find("", backwards); }, |
var FLAG_compilation_level = flags.Flag.value(jscomp.CompilationLevel.SIMPLE_OPTIMIZATIONS); FLAG_compilation_level.get().setOptionsForCompilationLevel(options); var FLAG_warning_level = flags.Flag.value(jscomp.WarningLevel.DEFAULT); FLAG_warning_level.get().setOptionsForWarningLevel(options); | var FLAG_compilation_level = jscomp.CompilationLevel.SIMPLE_OPTIMIZATIONS; FLAG_compilation_level.setOptionsForCompilationLevel(options); var FLAG_warning_level = jscomp.WarningLevel.DEFAULT; FLAG_warning_level.setOptionsForWarningLevel(options); | buildUtil.optimizeJs = function(/*String fileName*/fileName, /*String*/fileContents, /*String*/copyright, /*String*/optimizeType, /*String*/stripConsole){ //summary: either strips comments from string or compresses it. copyright = copyright || ""; // understand stripConsole from dojo 1.3 and before if (stripConsole == ... |
if (value) services.get("debugger").on(); | if (value) { if (!services.get("debugger").isOn) services.get("debugger").asyncOn(null); } | options: function () { options.add(["jsdebugger", "jsd"], "Switch on/off jsdebugger", "boolean", false, { setter: function (value) { if (value) services.get("debugger").on(); else services... |
completer: function (context) [[k, v[1]] for ([k, v] in Iterator(this.pageInfo))] | completer: function (context) [[k, v[1]] for ([k, v] in Iterator(buffer.pageInfo))] | options: function () { options.add(["nextpattern"], // \u00BB is » (>> in a single char) "Patterns to use when guessing the 'next' page in a document sequence", "stringlist", "\\bnext\\b,^>$,^(>>|\u00BB)$,^(>|\u00BB),(>|\u00BB)$,\\bmore\\b"); options.add(["previouspattern"], // \... |
options.add(["strictfocus", "sf"], "Prevent scripts from focusing input elements without user intervention", "boolean", true); | options: function () { options.add(["eventignore", "ei"], "List of autocommand event names which should be ignored", "stringlist", "", { completer: function () Iterator(update({ all: "All Events" }, config.autocommands)) }); options.add(["stri... | |
completer: function (context) array(values(completion.urlCompleters)) | completer: function (context) values(completion.urlCompleters) | options: function () { let wildmode = { completer: function (context) [ // Why do we need ""? // Because its description is useful during completion. --Kris ["", "Complete only the first match"], ["full", "Complete t... |
"Replace occurences of ! with the previous command when executing external commands", | "Replace occurrences of ! with the previous command when executing external commands", | options: function () { var shell, shellcmdflag; if (dactyl.has("WINNT")) { shell = "cmd.exe"; // TODO: setting 'shell' to "something containing sh" updates // 'shellcmdflag' appropriately at startup on Windows in Vim shellcmdflag = "/c"; } else... |
"Sets the current buffer's character encoding", | "The current buffer's character encoding", | options: function () { options.add(["encoding", "enc"], "Sets the current buffer's character encoding", "string", "UTF-8", { scope: Option.SCOPE_LOCAL, getter: function () config.browser.docShell.QueryInterface(Ci.nsIDocCharset).charset, ... |
"stringlist", "," + (services.get("environment").get("CDPATH").replace(/[:;]/g, ",") || ","), | "stringlist", ["."].concat(services.get("environment").get("CDPATH").split(/[:;]/).filter(util.identity)).join(","), | options: function () { var shell, shellcmdflag; if (dactyl.has("WINNT")) { shell = "cmd.exe"; // TODO: setting 'shell' to "something containing sh" updates // 'shellcmdflag' appropriately at startup on Windows in Vim shellcmdflag = "/c"; } else... |
completer: function completer(context) { completion.search(context, true); | completer: function completer(context, args) { completion.search(context, args, true); | options: function () { options.add(["defsearch", "ds"], "Set the default search engine", "string", "google", { completer: function completer(context) { completion.search(context, true); context.completions = [["", "Don't pe... |
completer: function completer(context) completion.searchEngine(context, true), | completer: function completer(context, args) completion.searchEngine(context, args, true), | options: function () { options.add(["defsearch", "ds"], "Set the default search engine", "string", "google", { completer: function completer(context) { completion.search(context, true); context.completions = [["", "Don't pe... |
"Replace occurances of ! with the previous command when executing external commands", | "Replace occurences of ! with the previous command when executing external commands", | options: function () { var shell, shellcmdflag; if (dactyl.has("Win32")) { shell = "cmd.exe"; // TODO: setting 'shell' to "something containing sh" updates // 'shellcmdflag' appropriately at startup on Windows in Vim shellcmdflag = "/c"; } else... |
return Object.keys(util.compileMacro(value).seen).every(function (k) ["column", "file", "line"].indexOf(k) >= 0) | return Object.keys(util.compileMacro(value).seen).every(function (k) ["column", "file", "line"].indexOf(k) >= 0); | options: function () { options.add(["editor"], "The external text editor", "string", "gvim -f +<line> <file>", { format: function (obj, value) { let args = commands.parseArgs(value || this.value, { argCount: "*", allowUnknownOptions: true }) ... |
"Patterns to use when guessing the 'next' page in a document sequence", | "Patterns to use when guessing the next page in a document sequence", | options: function () { options.add(["nextpattern"], "Patterns to use when guessing the 'next' page in a document sequence", "regexplist", UTF8("'\\bnext\\b',^>$,^(>>|»)$,^(>|»),(>|»)$,'\\bmore\\b'"), { regexpFlags: "i" }); options.add(["previouspattern"], "P... |
"Patterns to use when guessing the 'previous' page in a document sequence", | "Patterns to use when guessing the previous page in a document sequence", | options: function () { options.add(["nextpattern"], "Patterns to use when guessing the 'next' page in a document sequence", "regexplist", UTF8("'\\bnext\\b',^>$,^(>>|»)$,^(>|»),(>|»)$,'\\bmore\\b'"), { regexpFlags: "i" }); options.add(["previouspattern"], "P... |
"Desired info in the :pageinfo output", | "Define which sections are shown by the :pageinfo command", | options: function () { options.add(["nextpattern"], "Patterns to use when guessing the 'next' page in a document sequence", "regexplist", UTF8("'\\bnext\\b',^>$,^(>>|»)$,^(>|»),(>|»)$,'\\bmore\\b'"), { regexpFlags: "i" }); options.add(["previouspattern"], "P... |
"Show the destination of the link under the cursor in the status bar", | "Where to show the destination of the link under the cursor", | options: function () { options.add(["nextpattern"], "Patterns to use when guessing the 'next' page in a document sequence", "regexplist", UTF8("'\\bnext\\b',^>$,^(>>|»)$,^(>|»),(>|»)$,'\\bmore\\b'"), { regexpFlags: "i" }); options.add(["previouspattern"], "P... |
["", "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"] | options: function () { options.add(["nextpattern"], "Patterns to use when guessing the 'next' page in a document sequence", "regexplist", UTF8("'\\bnext\\b',^>$,^(>>|»)$,^(>|»),(>|»)$,'\\bmore\\b'"), { regexpFlags: "i" }); options.add(["previouspattern"], "P... |
"Show current website with a minimal style sheet to make it easily accessible", | "Show current website without styling defined by the author", | options: function () { options.add(["nextpattern"], "Patterns to use when guessing the 'next' page in a document sequence", "regexplist", UTF8("'\\bnext\\b',^>$,^(>>|»)$,^(>|»),(>|»)$,'\\bmore\\b'"), { regexpFlags: "i" }); options.add(["previouspattern"], "P... |
options.safeSetPref("accessibility.typeaheadfind.autostart", false); options.safeSetPref("accessibility.typeaheadfind", false); | options: function () { options.add(["hlsearch", "hls"], "Highlight previous search pattern matches", "boolean", "false", { setter: function (value) { try { if (value) rangefinder.highlight(); ... | |
if (dactyl.has("Win32")) { | if (dactyl.has("WINNT")) { | options: function () { var shell, shellcmdflag; if (dactyl.has("Win32")) { shell = "cmd.exe"; // TODO: setting 'shell' to "something containing sh" updates // 'shellcmdflag' appropriately at startup on Windows in Vim shellcmdflag = "/c"; } else... |
"Set the external text editor", | "The external text editor", | options: function () { options.add(["editor"], "Set the external text editor", "string", "gvim -f +%l %f", { format: function (obj, value) { let args = commands.parseArgs(value || this.value, { argCount: "*", allowUnknownOptions: true }) ... |
"Use Insert mode as the default for text areas", | "Enter Insert mode rather than Text Edit mode when focusing text areas", | options: function () { options.add(["editor"], "Set the external text editor", "string", "gvim -f +%l %f", { format: function (obj, value) { let args = commands.parseArgs(value || this.value, { argCount: "*", allowUnknownOptions: true }) ... |
"Maximum number of items to display at once", | "Maximum number of completion items to display at once", | options: function () { options.add(["history", "hi"], "Number of Ex commands and search patterns to store in the command-line history", "number", 500, { validator: function (value) value >= 0 }); options.add(["maxitems"], "Maximum number of items to display ... |
"Number of messages to store in the message history", | "Number of messages to store in the :message history", | options: function () { options.add(["history", "hi"], "Number of Ex commands and search patterns to store in the command-line history", "number", 500, { validator: function (value) value >= 0 }); options.add(["maxitems"], "Maximum number of items to display ... |
"Pause the message list window when more than one screen of listings is displayed", | "Pause the message list window when the full output will not fit on one page", | options: function () { options.add(["history", "hi"], "Number of Ex commands and search patterns to store in the command-line history", "number", 500, { validator: function (value) value >= 0 }); options.add(["maxitems"], "Maximum number of items to display ... |
["longest", "Complete to longest common string"], | ["longest", "Complete the longest common string"], | options: function () { let wildmode = { completer: function (context) [ // Why do we need ""? // Because its description is useful during completion. --Kris ["", "Complete only the first match"], ["full", "Complete t... |
["list:longest", "List all and complete common string"] | ["list:longest", "List all and complete the longest common string"] | options: function () { let wildmode = { completer: function (context) [ // Why do we need ""? // Because its description is useful during completion. --Kris ["", "Complete only the first match"], ["full", "Complete t... |
"Define how command-line completion works when the Alt key is pressed", | "Define the behavior of the <A-Tab> key in command-line completion", | options: function () { let wildmode = { completer: function (context) [ // Why do we need ""? // Because its description is useful during completion. --Kris ["", "Complete only the first match"], ["full", "Complete t... |
"Regexp list defining which contexts require matches anchored to the beginning of the result", | "Define which completion groups only match at the beginning of their text", | options: function () { let wildmode = { completer: function (context) [ // Why do we need ""? // Because its description is useful during completion. --Kris ["", "Complete only the first match"], ["full", "Complete t... |
"Define how command-line completion works", | "Define the behavior of the <Tab> key in command-line completion", | options: function () { let wildmode = { completer: function (context) [ // Why do we need ""? // Because its description is useful during completion. --Kris ["", "Complete only the first match"], ["full", "Complete t... |
"Regexp list of which contexts to sort", | "Define which completion groups are sorted", | options: function () { let wildmode = { completer: function (context) [ // Why do we need ""? // Because its description is useful during completion. --Kris ["", "Complete only the first match"], ["full", "Complete t... |
"Highlight previous search pattern matches", | "Highlight all /search pattern matches on the current page after a search", | options: function () { // prefs.safeSet("accessibility.typeaheadfind.autostart", false); // The above should be sufficient, but: https://bugzilla.mozilla.org/show_bug.cgi?id=348187 prefs.safeSet("accessibility.typeaheadfind", false); options.add(["hlsearch", "hls"], "Highlight... |
"Show where the search pattern matches as it is typed", | "Search for a pattern incrementally as it is typed rather than awaiting <Return>", | options: function () { // prefs.safeSet("accessibility.typeaheadfind.autostart", false); // The above should be sufficient, but: https://bugzilla.mozilla.org/show_bug.cgi?id=348187 prefs.safeSet("accessibility.typeaheadfind", false); options.add(["hlsearch", "hls"], "Highlight... |
options.add(["linksearch", "lks"], "Limit the search to hyperlink text", "boolean", false); | options: function () { // prefs.safeSet("accessibility.typeaheadfind.autostart", false); // The above should be sufficient, but: https://bugzilla.mozilla.org/show_bug.cgi?id=348187 prefs.safeSet("accessibility.typeaheadfind", false); options.add(["hlsearch", "hls"], "Highlight... | |
completer: function () config.autocommands.concat([["all", "All events"]]) | completer: function () Iterator(update({ all: "All Events" }, config.autocommands)) | options: function () { options.add(["eventignore", "ei"], "List of autocommand event names which should be ignored", "stringlist", "", { completer: function () config.autocommands.concat([["all", "All events"]]) }); options.add(["strictfocus",... |
options.add(["usermode", "um"], "Show current website with a minimal style sheet to make it easily accessible", "boolean", false, { setter: function (value) config.browser.markupDocumentViewer.authorStyleDisabled = value, getter: function () config.browser.markupDocumentViewer.authorStyleDisabled }); | if (!config.isComposeWindow) { options.add(["usermode", "um"], "Show current website with a minimal style sheet to make it easily accessible", "boolean", false, { setter: function (value) config.browser.markupDocumentViewer.authorStyleDisabled = value, getter: function () config.browser.markupDocumentViewer.authorStyle... | options: function () { options.add(["nextpattern"], // \u00BB is » (>> in a single char) "Patterns to use when guessing the 'next' page in a document sequence", "stringlist", "\\bnext\\b,^>$,^(>>|\u00BB)$,^(>|\u00BB),(>|\u00BB)$,\\bmore\\b"); options.add(["previouspattern"], // \... |
"Set the default search engine", | "The default search engine", | options: function () { options.add(["defsearch", "ds"], "Set the default search engine", "string", "google", { completer: function completer(context) { completion.search(context, true); context.completions = [{ keyword: "",... |
"Engine alias which provide search suggestions", | "Search engines used for search suggestions", | options: function () { options.add(["defsearch", "ds"], "Set the default search engine", "string", "google", { completer: function completer(context) { completion.search(context, true); context.completions = [{ keyword: "",... |
"Use the JavaScript debugger service for JavaScript completion", | "Enable the JavaScript debugger service for use in JavaScript completion", | options: function () { options.add(["jsdebugger", "jsd"], "Use the JavaScript debugger service for JavaScript completion", "boolean", false, { setter: function (value) { if (services.debugger.isOn != value) if (value) ... |
"Defines the replacement keys for the <Leader> pseudo-key", | "Define the replacement keys for the <Leader> pseudo-key", | options: function () { options.add(["mapleader", "ml"], "Defines the replacement keys for the <Leader> pseudo-key", "string", "\\"); } |
"banghist", true); | "boolean", true); | options: function () { var shell, shellcmdflag; if (dactyl.has("WINNT")) { shell = "cmd.exe"; // TODO: setting 'shell' to "something containing sh" updates // 'shellcmdflag' appropriately at startup on Windows in Vim shellcmdflag = "/c"; } else... |
"regexlist", "!/ex/(back|buffer|ext|forward|help|undo),.*"); | "regexlist", "!/ex/(back|buffer|ext|forward|help|undo)"); | options: function () { let wildmode = { completer: function (context) [ // Why do we need ""? // Because its description is useful during completion. --Kris ["", "Complete only the first match"], ["full", "Complete t... |
"Regexp list defining which contexts require matches anchored to the begining of the result", | "Regexp list defining which contexts require matches anchored to the beginning of the result", | options: function () { let wildmode = { completer: function (context) [ // Why do we need ""? // Because its description is useful during completion. --Kris ["", "Complete only the first match"], ["full", "Complete t... |
"stringlist", UTF8("\\bnext\\b,^>$,^(>>|»)$,^(>|»),(>|»)$,\\bmore\\b"), { validator: Option.validateXPath }); | "stringlist", UTF8("'\\bnext\\b',^>$,^(>>|»)$,^(>|»),(>|»)$,'\\bmore\\b'")); | options: function () { options.add(["nextpattern"], "Patterns to use when guessing the 'next' page in a document sequence", "stringlist", UTF8("\\bnext\\b,^>$,^(>>|»)$,^(>|»),(>|»)$,\\bmore\\b"), { validator: Option.validateXPath }); options.add(["previouspattern"], ... |
"stringlist", UTF8("\\bprev|previous\\b,^<$,^(<<|«)$,^(<|«),(<|«)$"), { validator: Option.validateXPath }); | "stringlist", UTF8("'\\bprev|previous\\b',^<$,^(<<|«)$,^(<|«),(<|«)$")); | options: function () { options.add(["nextpattern"], "Patterns to use when guessing the 'next' page in a document sequence", "stringlist", UTF8("\\bnext\\b,^>$,^(>>|»)$,^(>|»),(>|»)$,\\bmore\\b"), { validator: Option.validateXPath }); options.add(["previouspattern"], ... |
var target = newValues.pop() || ""; | completion.optionValue = function (context, name, op, curValue, completer) { let opt = options.get(name); completer = completer || opt.completer; if (!completer) return; try { var curValues = curValue != null ? opt.parseValues(curValue) :... | |
context.filter = target != null ? target : Option.dequote(context.filter); | context.filter = Option.dequote(context.filter); | completion.optionValue = function (context, name, op, curValue, completer) { let opt = options.get(name); completer = completer || opt.completer; if (!completer) return; try { var curValues = curValue != null ? opt.parseValues(curValue) :... |
optionValue: function(opt) { return Element.extend(opt).hasAttribute('value') ? opt.value : opt.text; } | 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(... | optionValue: function(opt) { // extend element because hasAttribute may not be native return Element.extend(opt).hasAttribute('value') ? opt.value : opt.text; } |
target = vals.pop() || ""; Option._splitAt += target.indexOf(":") ? target.indexOf(":") + 1 : 0; | let target = vals.pop() || ""; let [count, key, quote] = Commands.parseArg(target, /:/, true); let split = Option._splitAt; extra.key = Option.dequote(key); extra.value = count < target.length ? Option.dequote(target.substr(count + 1)) : null; extra.values = opt.parseValues(vals.join(",")); Option._splitAt = split + (e... | completion.optionValue = function (context, name, op, curValue, completer) { let opt = options.get(name); completer = completer || opt.completer; if (!completer) return; try { var curValues = curValue != null ? opt.parseValues(curValue) :... |
let res = completer.call(opt, context); | let res = completer.call(opt, context, extra); | completion.optionValue = function (context, name, op, curValue, completer) { let opt = options.get(name); completer = completer || opt.completer; if (!completer) return; try { var curValues = curValue != null ? opt.parseValues(curValue) :... |
if( document.getElementById(select_id).value == "Other"){ document.getElementById(select_id).style.visibility = "hidden"; document.getElementById(back_id).type = "button"; document.getElementById(text_id).type = "text"; | var select = document.getElementById(select_id); if( select.value == "Other"){ select.style.visibility = "hidden"; document.getElementById(back_id).style.visibility = "visible"; document.getElementById(text_id).style.visibility="visible"; | function otherOption(select_id, back_id, text_id){ if( document.getElementById(select_id).value == "Other"){ document.getElementById(select_id).style.visibility = "hidden"; document.getElementById(back_id).type = "button"; document.getElementById(text_id).type = "text"; } } |
overlap: function(mode, element) { if (!mode) return 0; if (mode == 'vertical') return ((this.offset[1] + element.offsetHeight) - this.ycomp) / element.offsetHeight; if (mode == 'horizontal') return ((this.offset[0] + element.offsetWidth) - this.xcomp) / element.offsetWidth; }, | 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(... | overlap: function(mode, element) { if (!mode) return 0; if (mode == 'vertical') return ((this.offset[1] + element.offsetHeight) - this.ycomp) / element.offsetHeight; if (mode == 'horizontal') return ((this.offset[0] + element.offsetWidth) - this.xcomp) / element.offsetWidth; }, |
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... | j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data... | 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.throwIfDisposed_(); | activity.TimelineView.BarChart_.prototype.padToEndTime = function(endTime) { this.throwIfDisposed_(); var duration = endTime - this.endTime_; if (duration < 0) { throw new Error(['Current BarChart end time', this.endTime_, 'exceeds requested end time', e... | |
if (!c || c.length < (c.currentPage + 1) * this.PAGE_SIZE) { | if (!c || (c.currentPage + 1) * this.PAGE_SIZE >= c.length) { | pageDown: function () { var c = this._candidateList; if (!c || c.length < (c.currentPage + 1) * this.PAGE_SIZE) { return false; } ++c.currentPage; this._current = c[c.currentPage * this.PAGE_SIZE]; this._updateUI(); return true; }, |
PAGESPEED.PageLoadTimer = function() { | PAGESPEED.PageLoadTimer = function(couldHaveMissedStart) { | PAGESPEED.PageLoadTimer = function() { /** * The window whose timing we are measuring. null when no measurement * is in progress. * @type {nsIDOMWindow} * @private */ this.window_ = null;}; |
this.couldHaveMissedStart_ = couldHaveMissedStart; | PAGESPEED.PageLoadTimer = function() { /** * The window whose timing we are measuring. null when no measurement * is in progress. * @type {nsIDOMWindow} * @private */ this.window_ = null;}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.