rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
c_pagenate.element.bind('dcmgrGUI.updatePagenate',function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh'); }); | $.each(c_list.checked_list,function(check_id,obj){ $($('#detail').find('#'+check_id)).remove(); c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/images/detail/',check_id) },true); }); | c_pagenate.element.bind('dcmgrGUI.updatePagenate',function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh'); }); |
"bJQueryUI": false, "sPaginationType": "full_numbers", "bAutoWidth":false, "aaSorting": [[_config.sorting[0],_config.sorting[1]]] },_config.dataTable)); } else { dTable.fnClearTable(); } dTable.fnAddData(_config.items); dTablesArr.push(dTable); if (_config.dataTable.sPaginationType) { | "bJQueryUI": false, "sPaginationType": "full_numbers", "bAutoWidth":false, "bSortClasses": true, "aaSorting": [[_config.sorting[0],_config.sorting[1]]] },_config.dataTable)); } else { dTable.fnClearTable(); } dTable.fnAddData(_config.items); dTablesArr.push(dTable); if (_config.dataTable.sPaginationType) { | this.each(function() { dTable = _config.dTable[elCnt]; if (!dTable) { $(this).empty().append(_buildTable(elCnt)); dTable = $('#dataTable_'+elCnt).dataTable( $.extend({ "bJQueryUI": false, "sPaginationType": "full_numbers", "bAutoWidth":false, "aaSorting": [[_config.sorting[0],_config.sorting[1]]] },_config.dataTable)); } else { dTable.fnClearTable(); } dTable.fnAddData(_config.items); dTablesArr.push(dTable); // Setting up table events if (_config.dataTable.sPaginationType) { $('#dataTable_'+elCnt+' thead tr,#dataTable_'+elCnt+'_next,#dataTable_'+elCnt+'_previous,#dataTable_'+elCnt+'_first,#dataTable_'+elCnt+'_last').click( function() { _config.fnContentChange(this); if (_config.expandableRows) _expandClick(dTable); } ); $('#dataTable_0_paginate input').keyup( function() { _config.fnContentChange(this); if (_config.expandableRows) _expandClick(dTable); } ); } if (_config.expandableRows) _expandClick(dTable); //_expandInit(dTable); elCnt++; }); |
$('.tblSort').click( function() { _config.fnTableSorting(this); } ); | this.each(function() { dTable = _config.dTable[elCnt]; if (!dTable) { $(this).empty().append(_buildTable(elCnt)); dTable = $('#dataTable_'+elCnt).dataTable( $.extend({ "bJQueryUI": false, "sPaginationType": "full_numbers", "bAutoWidth":false, "aaSorting": [[_config.sorting[0],_config.sorting[1]]] },_config.dataTable)); } else { dTable.fnClearTable(); } dTable.fnAddData(_config.items); dTablesArr.push(dTable); // Setting up table events if (_config.dataTable.sPaginationType) { $('#dataTable_'+elCnt+' thead tr,#dataTable_'+elCnt+'_next,#dataTable_'+elCnt+'_previous,#dataTable_'+elCnt+'_first,#dataTable_'+elCnt+'_last').click( function() { _config.fnContentChange(this); if (_config.expandableRows) _expandClick(dTable); } ); $('#dataTable_0_paginate input').keyup( function() { _config.fnContentChange(this); if (_config.expandableRows) _expandClick(dTable); } ); } if (_config.expandableRows) _expandClick(dTable); //_expandInit(dTable); elCnt++; }); |
|
bt_instance_reboot.target.bind('click',function(){ bt_instance_reboot.open(c_list.getCheckedInstanceIds()); | bt_instance_stop.target.bind('click',function(){ bt_instance_stop.open(c_list.getCheckedInstanceIds()); | bt_instance_reboot.target.bind('click',function(){ bt_instance_reboot.open(c_list.getCheckedInstanceIds()); }); |
? function() { exports.log('crash?', method, context, arguments); return context[method].apply(context, arguments); } | ? function() { return context[method].apply(context, arguments); } | ? function() { exports.log('crash?', method, context, arguments); return context[method].apply(context, arguments); } |
viewElem = pane.view('iconclass').$(); ok(viewElem.hasClass('icon'), 'view element should have "icon" class'); ok(viewElem.find('img').hasClass('icon'), 'img element inside view should have "icon" class'); | test("Check that all labels have the right classes set", function() { var viewElem=pane.view('basic').$(); ok(viewElem.hasClass('sc-view'), 'basic.hasClass(sc-view) should be YES'); ok(viewElem.hasClass('sc-label-view'), 'basic.hasClass(sc-label-view) should be YES'); ok(!viewElem.hasClass('icon'), 'basic.hasClass(icon) should be NO'); ok(!viewElem.hasClass('disabled'), 'basic.hasClass(disabled) should be YES'); viewElem=pane.view('disabled').$(); ok(viewElem.hasClass('sc-view'), 'title.hasClass(sc-view) should be YES'); ok(viewElem.hasClass('sc-label-view'), 'title.hasClass(sc-label-view) should be YES'); ok(!viewElem.hasClass('icon'), 'title.hasClass(icon) should be NO'); ok(viewElem.hasClass('disabled'), 'title.hasClass(disabled) should be NO'); viewElem=pane.view('selectable').$(); ok(viewElem.hasClass('sc-view'), 'icon.hasClass(sc-view) should be YES'); ok(viewElem.hasClass('sc-label-view'), 'icon.hasClass(sc-label-view) should be YES'); ok(viewElem.hasClass('sc-regular-size'), 'icon.hasClass(sc-regular-size) should be YES'); ok(!viewElem.hasClass('icon'), 'icon.hasClass(icon) should be YES'); ok(!viewElem.hasClass('sel'), 'icon.hasClass(sel) should be NO'); ok(!viewElem.hasClass('disabled'), 'icon.hasClass(disabled) should be NO'); viewElem=pane.view('centered').$(); ok(viewElem.hasClass('sc-view'), 'title,icon.hasClass(sc-view) should be YES'); ok(viewElem.hasClass('sc-label-view'), 'title,icon.hasClass(sc-label-view) should be YES'); ok(!viewElem.hasClass('icon'), 'title,icon.hasClass(icon) should be YES'); ok(!viewElem.hasClass('disabled'), 'title,icon.hasClass(disabled) should be NO'); viewElem=pane.view('centered,icon').$(); ok(viewElem.hasClass('sc-view'), 'title,icon,disabled.hasClass(sc-view) should be YES'); ok(viewElem.hasClass('sc-label-view'), 'title,icon,disabled.hasClass(sc-label-view) should be YES'); ok(viewElem.hasClass('icon'), 'title,icon,disabled.hasClass(icon) should be YES'); ok(!viewElem.hasClass('disabled'), 'title,icon,disabled.hasClass(disabled) should be YES'); viewElem=pane.view('regular size').$(); ok(viewElem.hasClass('sc-view'), 'title,icon,default.hasClass(sc-view) should be YES'); ok(viewElem.hasClass('sc-label-view'), 'title,icon,default.hasClass(sc-label-view) should be YES'); ok(viewElem.hasClass('sc-regular-size'), 'title,icon,default.hasClass(sc-regular-size) should be YES'); ok(!viewElem.hasClass('disabled'), 'title,icon,default.hasClass(disabled) should be NO'); viewElem=pane.view('bold').$(); ok(viewElem.hasClass('sc-view'), 'title,icon,selected.hasClass(sc-view) should be YES'); ok(viewElem.hasClass('sc-label-view'), 'title,icon,selected.hasClass(sc-label-view) should be YES'); ok(!viewElem.hasClass('icon'), 'title,icon,selected.hasClass(icon) should be YES'); ok(!viewElem.hasClass('disabled'), 'title,icon,selected.hasClass(disabled) should be NO'); }); |
|
this._loadConfig(schemaName, function (config) { schema = new Schema (schemaName, config); me._loadDict(schema, _sync ? callback : null); if (!_sync) { callback(schema); } }); | return $.grep(this._slots, function (e) { return e; }).join(""); | this._loadConfig(schemaName, function (config) { schema = new Schema (schemaName, config); me._loadDict(schema, _sync ? callback : null); if (!_sync) { callback(schema); } }); |
if (window.media && window.media.matchMedium) { if (!window.media.matchMedium('(-webkit-transform-3d)')) SC.platform.supportsCSS3DTransforms = NO; } else if(window.styleMedia && window.styleMedia.matchMedium) { if (!window.styleMedia.matchMedium('(-webkit-transform-3d)')) SC.platform.supportsCSS3DTransforms = NO; | try{ if (window.media && window.media.matchMedium) { if (!window.media.matchMedium('(-webkit-transform-3d)')) SC.platform.supportsCSS3DTransforms = NO; } else if(window.styleMedia && window.styleMedia.matchMedium) { if (!window.styleMedia.matchMedium('(-webkit-transform-3d)')) SC.platform.supportsCSS3DTransforms = NO; } }catch(e){ SC.platform.supportsCSS3DTransforms = NO; | (function(){ // a test element var el = document.createElement("div"); // the css and javascript to test var css_browsers = ["-moz-", "-moz-", "-o-", "-ms-", "-webkit-"]; var test_browsers = ["moz", "Moz", "o", "ms", "webkit"]; // prepare css var css = "", i = null; for (i = 0; i < css_browsers.length; i++) { css += css_browsers[i] + "transition:all 1s linear;"; css += css_browsers[i] + "transform: translate(1px, 1px);"; css += css_browsers[i] + "perspective: 500px;"; } // set css text el.style.cssText = css; // test for (i = 0; i < test_browsers.length; i++) { if (el.style[test_browsers[i] + "TransitionProperty"] !== undefined) SC.platform.supportsCSSTransitions = YES; if (el.style[test_browsers[i] + "Transform"] !== undefined) SC.platform.supportsCSSTransforms = YES; if (el.style[test_browsers[i] + "Perspective"] !== undefined || el.style[test_browsers[i] + "PerspectiveProperty"] !== undefined) { SC.platform.understandsCSS3DTransforms = YES; SC.platform.supportsCSS3DTransforms = YES; } } // unfortunately, we need a bit more to know FOR SURE that 3D is allowed if (window.media && window.media.matchMedium) { if (!window.media.matchMedium('(-webkit-transform-3d)')) SC.platform.supportsCSS3DTransforms = NO; } else if(window.styleMedia && window.styleMedia.matchMedium) { if (!window.styleMedia.matchMedium('(-webkit-transform-3d)')) SC.platform.supportsCSS3DTransforms = NO; } // Unfortunately, this has to be manual, as I can't think of a good way to test it // webkit-only for now. if (SC.platform.supportsCSSTransforms && SC.platform.cssPrefix === "webkit") { SC.platform.supportsAcceleratedLayers = YES; }})(); |
element.select('.menuBox form').invoke('observe', 'submit', function(evt) { | element.select('.menuBox form:not(.notAJAX)').invoke('observe', 'submit', function(evt) { | element.select('.menuBox form').invoke('observe', 'submit', function(evt) { evt.preventDefault(); var theForm = Event.element(evt); var formAction = theForm.readAttribute('action'); var formMethod = theForm.readAttribute('method'); var formData = theForm.serialize(); setContent('mainContent', formAction, formMethod, formData); }); |
else if (liberator.forceNewTab) MsgOpenNewTabForFolder(folder.URI); | function (args) { let count = Math.max(0, args.count - 1); let arg = args.literalArg || "Inbox"; let folder = mail.getFolders(arg, true, true)[count]; if (!folder) liberator.echoerr("Exxx: Folder \"" + arg + "\" does not exist"); else if (liberator.forceNewTab) MsgOpenNewTabForFolder(folder.URI); else SelectFolder(folder.URI); }, |
|
SelectFolder(folder.URI); | liberator.open(folder); | function (args) { let count = Math.max(0, args.count - 1); let arg = args.literalArg || "Inbox"; let folder = mail.getFolders(arg, true, true)[count]; if (!folder) liberator.echoerr("Exxx: Folder \"" + arg + "\" does not exist"); else if (liberator.forceNewTab) MsgOpenNewTabForFolder(folder.URI); else SelectFolder(folder.URI); }, |
return str.replace(/<((?:q-)?)([a-zA-Z]+)?>/g, function (match, quote, token) { if (token == "lt") return "<"; let res = tokens[token]; if (res === undefined) res = "<" + token + ">"; if (res === null) res = ""; if (quote && typeof res != "number") return Commands.quoteArg['"'](res); return res; }); | function quote(str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q; | return str.replace(/<((?:q-)?)([a-zA-Z]+)?>/g, function (match, quote, token) { if (token == "lt") // Don't quote, as in Vim (but, why so in Vim? You'd think people wouldn't say <q-lt> if they didn't want it) return "<"; let res = tokens[token]; if (res === undefined) // Ignore anything undefined res = "<" + token + ">"; if (res === null) res = ""; if (quote && typeof res != "number") return Commands.quoteArg['"'](res); return res; }); |
select.append($(document.createElement("option")).attr({selected: repo.id == json.default, title: repo.description, value:repo.id}).text(repo.title)); | select.append($(document.createElement("option")).attr({selected: repo.id == json['default'], title: repo.description, value:repo.id}).text(repo.title)); | $("select.repository_list").each(function (i, select) { select = $(select).empty(); $.each(json.results, function (i, repo) { select.append($(document.createElement("option")).attr({selected: repo.id == json.default, title: repo.description, value:repo.id}).text(repo.title)); }); }); |
function (count) { tabs.select("$"); }); | function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); }, | function (count) { tabs.select("$"); }); |
$$(".ddu_checkbox").each(function(el2) { if (el2.checked) totalChecked++; }); | $$(".ddu_button").each( function(e) { e.disabled = false; }); | $$(".ddu_checkbox").each(function(el2) { if (el2.checked) totalChecked++; }); |
function (args) { let arg = args[0]; try { dactyl.assert(args[0] in config.dialogs, "E475: Invalid argument: " + arg); config.dialogs[args[0]][1](); } catch (e) { dactyl.echoerr("Error opening " + arg.quote() + ": " + e); } }, { | function () { dactyl.beep(); }, | function (args) { let arg = args[0]; try { dactyl.assert(args[0] in config.dialogs, "E475: Invalid argument: " + arg); config.dialogs[args[0]][1](); } catch (e) { dactyl.echoerr("Error opening " + arg.quote() + ": " + e); } }, { |
return function (linkText) { if (hintStrings.length == 1 && hintStrings[0].length == 0) return true; | indexOf: (function () { const table = [ [0x00c0, 0x00c6, ["A"]], [0x00c7, 0x00c7, ["C"]], [0x00c8, 0x00cb, ["E"]], [0x00cc, 0x00cf, ["I"]], [0x00d1, 0x00d1, ["N"]], [0x00d2, 0x00d6, ["O"]], [0x00d8, 0x00d8, ["O"]], [0x00d9, 0x00dc, ["U"]], [0x00dd, 0x00dd, ["Y"]], [0x00e0, 0x00e6, ["a"]], [0x00e7, 0x00e7, ["c"]], [0x00e8, 0x00eb, ["e"]], [0x00ec, 0x00ef, ["i"]], [0x00f1, 0x00f1, ["n"]], [0x00f2, 0x00f6, ["o"]], [0x00f8, 0x00f8, ["o"]], [0x00f9, 0x00fc, ["u"]], [0x00fd, 0x00fd, ["y"]], [0x00ff, 0x00ff, ["y"]], [0x0100, 0x0105, ["A", "a"]], [0x0106, 0x010d, ["C", "c"]], [0x010e, 0x0111, ["D", "d"]], [0x0112, 0x011b, ["E", "e"]], [0x011c, 0x0123, ["G", "g"]], [0x0124, 0x0127, ["H", "h"]], [0x0128, 0x0130, ["I", "i"]], [0x0132, 0x0133, ["IJ", "ij"]], [0x0134, 0x0135, ["J", "j"]], [0x0136, 0x0136, ["K", "k"]], [0x0139, 0x0142, ["L", "l"]], [0x0143, 0x0148, ["N", "n"]], [0x0149, 0x0149, ["n"]], [0x014c, 0x0151, ["O", "o"]], [0x0152, 0x0153, ["OE", "oe"]], [0x0154, 0x0159, ["R", "r"]], [0x015a, 0x0161, ["S", "s"]], [0x0162, 0x0167, ["T", "t"]], [0x0168, 0x0173, ["U", "u"]], [0x0174, 0x0175, ["W", "w"]], [0x0176, 0x0178, ["Y", "y", "Y"]], [0x0179, 0x017e, ["Z", "z"]], [0x0180, 0x0183, ["b", "B", "B", "b"]], [0x0187, 0x0188, ["C", "c"]], [0x0189, 0x0189, ["D"]], [0x018a, 0x0192, ["D", "D", "d", "F", "f"]], [0x0193, 0x0194, ["G"]], [0x0197, 0x019b, ["I", "K", "k", "l", "l"]], [0x019d, 0x01a1, ["N", "n", "O", "O", "o"]], [0x01a4, 0x01a5, ["P", "p"]], [0x01ab, 0x01ab, ["t"]], [0x01ac, 0x01b0, ["T", "t", "T", "U", "u"]], [0x01b2, 0x01d2, ["V", "Y", "y", "Z", "z", "D", "L", "N", "A", "a", "I", "i", "O", "o"]], [0x01d3, 0x01dc, ["U", "u"]], [0x01de, 0x01e1, ["A", "a"]], [0x01e2, 0x01e3, ["AE", "ae"]], [0x01e4, 0x01ed, ["G", "g", "G", "g", "K", "k", "O", "o", "O", "o"]], [0x01f0, 0x01f5, ["j", "D", "G", "g"]], [0x01fa, 0x01fb, ["A", "a"]], [0x01fc, 0x01fd, ["AE", "ae"]], [0x01fe, 0x0217, ["O", "o", "A", "a", "A", "a", "E", "e", "E", "e", "I", "i", "I", "i", "O", "o", "O", "o", "R", "r", "R", "r", "U", "u", "U", "u"]], [0x0253, 0x0257, ["b", "c", "d", "d"]], [0x0260, 0x0269, ["g", "h", "h", "i", "i"]], [0x026b, 0x0273, ["l", "l", "l", "l", "m", "n", "n"]], [0x027c, 0x028b, ["r", "r", "r", "r", "s", "t", "u", "u", "v"]], [0x0290, 0x0291, ["z"]], [0x029d, 0x02a0, ["j", "q"]], [0x1e00, 0x1e09, ["A", "a", "B", "b", "B", "b", "B", "b", "C", "c"]], [0x1e0a, 0x1e13, ["D", "d"]], [0x1e14, 0x1e1d, ["E", "e"]], [0x1e1e, 0x1e21, ["F", "f", "G", "g"]], [0x1e22, 0x1e2b, ["H", "h"]], [0x1e2c, 0x1e8f, ["I", "i", "I", "i", "K", "k", "K", "k", "K", "k", "L", "l", "L", "l", "L", "l", "L", "l", "M", "m", "M", "m", "M", "m", "N", "n", "N", "n", "N", "n", "N", "n", "O", "o", "O", "o", "O", "o", "O", "o", "P", "p", "P", "p", "R", "r", "R", "r", "R", "r", "R", "r", "S", "s", "S", "s", "S", "s", "S", "s", "S", "s", "T", "t", "T", "t", "T", "t", "T", "t", "U", "u", "U", "u", "U", "u", "U", "u", "U", "u", "V", "v", "V", "v", "W", "w", "W", "w", "W", "w", "W", "w", "W", "w", "X", "x", "X", "x", "Y", "y"]], [0x1e90, 0x1e9a, ["Z", "z", "Z", "z", "Z", "z", "h", "t", "w", "y", "a"]], [0x1ea0, 0x1eb7, ["A", "a"]], [0x1eb8, 0x1ec7, ["E", "e"]], [0x1ec8, 0x1ecb, ["I", "i"]], [0x1ecc, 0x1ee3, ["O", "o"]], [0x1ee4, 0x1ef1, ["U", "u"]], [0x1ef2, 0x1ef9, ["Y", "y"]], [0x2071, 0x2071, ["i"]], [0x207f, 0x207f, ["n"]], [0x249c, 0x24b5, "a"], [0x24b6, 0x24cf, "A"], [0x24d0, 0x24e9, "a"], [0xfb00, 0xfb06, ["ff", "fi", "fl", "ffi", "ffl", "st", "st"]], [0xff21, 0xff3a, "A"], [0xff41, 0xff5a, "a"], ].map(function (a) { if (typeof a[2] == "string") a[3] = function (chr) String.fromCharCode(this[2].charCodeAt(0) + chr - this[0]); else a[3] = function (chr) this[2][(chr - this[0]) % this[2].length]; return a; }); | return function (linkText) { if (hintStrings.length == 1 && hintStrings[0].length == 0) return true; let words = tokenize(wordSplitRegex, linkText); if (hintStrings.length == 1) return charsAtBeginningOfWords(hintStrings[0], words, allowWordOverleaping); else return stringsAtBeginningOfWords(hintStrings, words, allowWordOverleaping); }; |
let words = tokenize(wordSplitRegex, linkText); if (hintStrings.length == 1) return charsAtBeginningOfWords(hintStrings[0], words, allowWordOverleaping); else return stringsAtBeginningOfWords(hintStrings, words, allowWordOverleaping); }; | function translate(chr) { var m, c = chr.charCodeAt(0); var n = table.length; var i = 0; while (n) { m = Math.floor(n / 2); var t = table[i + m]; if (c >= t[0] && c <= t[1]) return t[3](c); if (c < t[0] || m == 0) n = m; else { i += m; n = n - m; } } return chr; } return function indexOf(dest, src) { var end = dest.length - src.length; if (src.length == 0) return 0; outer: for (var i = 0; i < end; i++) { var j = i; for (var k = 0; k < src.length;) { var s = translate(dest[j++]); for (var l = 0; l < s.length; l++, k++) { if (s[l] != src[k]) continue outer; if (k == src.length - 1) return i; } } } return -1; } })(), | return function (linkText) { if (hintStrings.length == 1 && hintStrings[0].length == 0) return true; let words = tokenize(wordSplitRegex, linkText); if (hintStrings.length == 1) return charsAtBeginningOfWords(hintStrings[0], words, allowWordOverleaping); else return stringsAtBeginningOfWords(hintStrings, words, allowWordOverleaping); }; |
function (args) { let doc = window.content.document; let chosenData = null; let filename = args[0]; if (filename) { let file = io.File(filename); liberator.assert(!file.exists() || args.bang, "E13: File exists (add ! to override)"); chosenData = { file: file, uri: window.makeURI(doc.location.href, doc.characterSet) }; } options.setPref("browser.download.lastDir", io.getCurrentDirectory().path); try { var contentDisposition = window.content .QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIDOMWindowUtils) .getDocumentMetadata("content-disposition"); } catch (e) {} window.internalSave(doc.location.href, doc, null, contentDisposition, doc.contentType, false, null, chosenData, doc.referrer ? window.makeURI(doc.referrer) : null, true); }, | function (args) { tabs.reload(config.browser.mCurrentTab, args.bang); }, | function (args) { let doc = window.content.document; let chosenData = null; let filename = args[0]; if (filename) { let file = io.File(filename); liberator.assert(!file.exists() || args.bang, "E13: File exists (add ! to override)"); chosenData = { file: file, uri: window.makeURI(doc.location.href, doc.characterSet) }; } // if browser.download.useDownloadDir = false then the "Save As" // dialog is used with this as the default directory // TODO: if we're going to do this shouldn't it be done in setCWD or the value restored? options.setPref("browser.download.lastDir", io.getCurrentDirectory().path); try { var contentDisposition = window.content .QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIDOMWindowUtils) .getDocumentMetadata("content-disposition"); } catch (e) {} window.internalSave(doc.location.href, doc, null, contentDisposition, doc.contentType, false, null, chosenData, doc.referrer ? window.makeURI(doc.referrer) : null, true); }, |
jQuery(function() { jQuery('textarea').addProofreader(); }); | node.click(function(event) { if (AtD.current_id != undefined && AtD.current_id != id) { AtD.restoreTextArea(AtD.current_id); } AtD.checkTextArea(id, node.attr('id'), opts.edit_text_content); AtD.current_id = id; }); | jQuery(function() { jQuery('textarea').addProofreader();}); |
var tags = JSON.parse(res.responseText); return Object.keys(tags).reduce(function(memo, tag){ if(tag){ memo.push({ name : tag, frequency : tags[tag] }); } return memo; }, []); }); | var doc = createHTML(res.responseText); if(!doc.getElementById('title')) throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); function getTags(part){ return $X('id("save-' + part + '-tags") } return { editPage : editPage = 'http: form : { item : doc.getElementById('title').value, description : doc.getElementById('notes').value, tags : doc.getElementById('tags').value.split(' '), private : doc.getElementById('share').checked }, duplicated : !!doc.getElementById('delete'), recommended : getTags('reco'), popular : getTags('pop'), network : getTags('net') } }) | }).addCallback(function(res){ var tags = JSON.parse(res.responseText); return Object.keys(tags).reduce(function(memo, tag){ if(tag){ memo.push({ name : tag, frequency : tags[tag] }); } return memo; }, []); }); |
return this.tags.value.split(this.delimiter).filter(function(i){ return i }); | this.values().forEach(function(val){ check[val] = true; }); | return this.tags.value.split(this.delimiter).filter(function(i){ return i }); |
function (count) { events.onEscape(); }); | function (count) { modes.set(modes.VISUAL, dactyl.mode); }); | function (count) { events.onEscape(); }); |
this._exMap[name] || !full && array.nth(this._exCommands, function (cmd) cmd.hasName(name), 0) || null, | return this._exCommands.filter(function (cmd) cmd.user); | this._exMap[name] || !full && array.nth(this._exCommands, function (cmd) cmd.hasName(name), 0) || null, |
this._exCommands = this._exCommands.filter(function (c) c !== cmd); | if (Array.concat(cmd.domains(args)).some(function (domain) util.isSubdomain(domain, host))) | this._exCommands = this._exCommands.filter(function (c) c !== cmd); |
function (args) { let arg = args[0] || ""; | commandline.input("Upload file: ", function (path) { let file = io.File(path); dactyl.assert(file.exists()); | function (args) { let arg = args[0] || ""; let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); dactyl.assert(!arg || titles.indexOf(arg) >= 0, "E475: Invalid argument: " + arg); if (options["usermode"]) options["usermode"] = false; window.stylesheetSwitchAll(buffer.focusedFrame, arg); }, |
let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); dactyl.assert(!arg || titles.indexOf(arg) >= 0, "E475: Invalid argument: " + arg); if (options["usermode"]) options["usermode"] = false; window.stylesheetSwitchAll(buffer.focusedFrame, arg); }, | elem.value = file.path; }, { | function (args) { let arg = args[0] || ""; let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); dactyl.assert(!arg || titles.indexOf(arg) >= 0, "E475: Invalid argument: " + arg); if (options["usermode"]) options["usermode"] = false; window.stylesheetSwitchAll(buffer.focusedFrame, arg); }, |
if (args.bang) buffer.fullZoom = level; else buffer.textZoom = level; | Buffer.setZoom(level, args.bang); | function (args) { let arg = args[0]; let level; if (!arg) level = 100; else if (/^\d+$/.test(arg)) level = parseInt(arg, 10); else if (/^[+-]\d+$/.test(arg)) { if (args.bang) level = buffer.fullZoom + parseInt(arg, 10); else level = buffer.textZoom + parseInt(arg, 10); // relative args shouldn't take us out of range level = Math.constrain(level, Buffer.ZOOM_MIN, Buffer.ZOOM_MAX); } else dactyl.assert(false, "E488: Trailing characters"); if (args.bang) buffer.fullZoom = level; else buffer.textZoom = level; }, |
return function (linkText) { linkText = linkText.toLowerCase(); return tokens.every(function (token) indexOf(linkText, token) >= 0); }; | return tokens.every(function (token) indexOf(linkText, token) >= 0); | return function (linkText) { linkText = linkText.toLowerCase(); return tokens.every(function (token) indexOf(linkText, token) >= 0); }; |
function (count) { tabs.select(0); }); | function () { dactyl.quit(true); }, | function (count) { tabs.select(0); }); |
: function () this.text]; | res.__defineGetter__(k, function () Class.replaceProperty(this, k, v.call(this, this.item))); | : function () this.text]; |
commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || !item.domains && !item.privateData || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host)))); | storage["history-command"].mutate("filter", function (item) !(timespan.contains(item.timestamp) && (host ? commands.hasDomain(item.value, host) : item.privateData))); | commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || !item.domains && !item.privateData || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host)))); |
remove:function(a,b){for(var d in W)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),W[d]);return ga.test(this.nodeName)}};var W=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d, f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){thisObject=e;e=f;f=w}var j=b==="one"?c.proxy(e,function(o){c(this).unbind(o,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e,thisObject):this.each(function(){c.event.add(this,d,j,f)})}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault){for(var d in a)this.unbind(d,a[d]);return this}return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a, | if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", | remove:function(a,b){for(var d in W)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),W[d]);return ga.test(this.nodeName)}};var W=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){thisObject=e;e=f;f=w}var j=b==="one"?c.proxy(e,function(o){c(this).unbind(o,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e,thisObject):this.each(function(){c.event.add(this,d,j,f)})}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault){for(var d in a)this.unbind(d,a[d]);return this}return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a, |
let dialog = args[0]; | let arg = args[0] || ""; let items = Dactyl.getMenuItems(); | function (args) { let dialog = args[0]; dactyl.assert(dialog in config.dialogs, "E475: Invalid argument: " + dialog); try { config.dialogs[dialog][1](); } catch (e) { dactyl.echoerr("Error opening " + dialog.quote() + ": " + (e.message || e)); } }, { |
dactyl.assert(dialog in config.dialogs, "E475: Invalid argument: " + dialog); try { config.dialogs[dialog][1](); } catch (e) { dactyl.echoerr("Error opening " + dialog.quote() + ": " + (e.message || e)); | dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); | function (args) { let dialog = args[0]; dactyl.assert(dialog in config.dialogs, "E475: Invalid argument: " + dialog); try { config.dialogs[dialog][1](); } catch (e) { dactyl.echoerr("Error opening " + dialog.quote() + ": " + (e.message || e)); } }, { |
function () { liberator.beep(); }, | function (args) { let arg = args[0]; try { let dialogs = config.dialogs; for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCase(arg, dialog[0]) == 0) { dialog[2](); return; } } liberator.echoerr("E475: Invalid argument: " + arg); } catch (e) { liberator.echoerr("Error opening " + arg.quote() + ": " + e); } }, { | function () { liberator.beep(); }, |
let dialogs = config.dialogs; for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCase(arg, dialog[0]) == 0) { dialog[2](); return; } } liberator.echoerr("E475: Invalid argument: " + arg); | liberator.assert(args[0] in config.dialogs, "E475: Invalid argument: " + arg); config.dialogs[args[0]][1](); | function (args) { let arg = args[0]; try { // TODO: why are these sorts of properties arrays? --djk let dialogs = config.dialogs; for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCase(arg, dialog[0]) == 0) { dialog[2](); return; } } liberator.echoerr("E475: Invalid argument: " + arg); } catch (e) { liberator.echoerr("Error opening " + arg.quote() + ": " + e); } }, { |
function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); }, | function (count) { tabs.select("$"); }); | function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); }, |
function (args) { let arg = args.literalArg; function compare(a, b) util.compareIgnoreCase(a, b) == 0 if (compare(document.getElementById("sidebar-title").value, arg)) { document.getElementById("sidebar-box").focus(); return; } let menu = document.getElementById("viewSidebarMenu"); for (let [, panel] in Iterator(menu.childNodes)) { if (compare(panel.label, arg)) { panel.doCommand(); return; } } liberator.echoerr("No sidebar " + arg + " found"); | function () { if (!document.getElementById("sidebar-box").hidden) window.toggleSidebar(); | function (args) { let arg = args.literalArg; 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)) { document.getElementById("sidebar-box").focus(); return; } let menu = document.getElementById("viewSidebarMenu"); for (let [, panel] in Iterator(menu.childNodes)) { if (compare(panel.label, arg)) { panel.doCommand(); return; } } liberator.echoerr("No sidebar " + arg + " found"); }, |
node.click(function(event) { | return this.each(function() { $this = jQuery(this); if ($this.css('display') == 'none') return; if ($this.attr('id').length == 0) { $this.attr('id', 'AtD_' + parent.id++); } var id = $this.attr('id'); var node = jQuery('<span></span>'); node.attr('id', 'AtD_' + parent.id++); node.html(opts.proofread_content); node.click(function(event) { | node.click(function(event) { if (AtD.current_id != undefined && AtD.current_id != id) { AtD.restoreTextArea(AtD.current_id); } if($this.val() != "") { AtD.checkTextArea(id, node.attr('id'), opts.edit_text_content); AtD.current_id = id; }else{ jAlert( AtD.getLang('message_error_no_text', 'Please enter some text in the post textbox to be checked!' ), AtD.getLang('message_error', 'Error!' ) ); } }); |
$this.wrap('<div></div>'); $this.before('<span class="atd-ajax-load"></span>'); $this.parents('form').submit(function(e) { AtD.restoreTextArea(id); if (AtD.autoproofread != undefined && AtD.autoproofread == 1 && AtD.proofread_click_count <= 0 && $this.val() != ""){ e.preventDefault(); AtD_check( id, node ); } }); $this.before(node); }); | node.click(function(event) { if (AtD.current_id != undefined && AtD.current_id != id) { AtD.restoreTextArea(AtD.current_id); } if($this.val() != "") { AtD.checkTextArea(id, node.attr('id'), opts.edit_text_content); AtD.current_id = id; }else{ jAlert( AtD.getLang('message_error_no_text', 'Please enter some text in the post textbox to be checked!' ), AtD.getLang('message_error', 'Error!' ) ); } }); |
|
this.each(function(value) { results.push(value[property]); }); | 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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | this.each(function(value) { results.push(value[property]); }); |
function (count) { events.onEscape(); }); | function (count) { modes.push(modes.VISUAL); }); | function (count) { events.onEscape(); }); |
let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); | function (args) { let arg = args[0] || ""; let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); dactyl.assert(!arg || titles.indexOf(arg) >= 0, "E475: Invalid argument: " + arg); if (options["usermode"]) options["usermode"] = false; window.stylesheetSwitchAll(buffer.focusedFrame, arg); }, | let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); |
context.filters.push(function (i) !set.has(have, i.text)); | function (args) { args = (args[0] || "").trim(); function fmt(value) (typeof value == "number" ? "#" : typeof value == "function" ? "*" : " ") + value; if (!args || args == "g:") { let str = <table> { template.map(dactyl.globalVariables, function ([i, value]) { return <tr> <td style="width: 200px;">{i}</td> <td>{fmt(value)}</td> </tr>; }) } </table>; if (str.text().length() == str.*.length()) dactyl.echomsg("No variables found"); else dactyl.echo(str, commandline.FORCE_MULTILINE); return; } let matches = args.match(/^([a-z]:)?([\w]+)(?:\s*([-+.])?=\s*(.*)?)?$/); if (matches) { let [, scope, name, op, expr] = matches; let fullName = (scope || "") + name; dactyl.assert(scope == "g:" || scope == null, "E461: Illegal variable name: " + scope + name); dactyl.assert(dactyl.globalVariables.hasOwnProperty(name) || (expr && !op), "E121: Undefined variable: " + fullName); if (!expr) dactyl.echo(fullName + "\t\t" + fmt(dactyl.globalVariables[name])); else { try { var newValue = dactyl.userEval(expr); } catch (e) {} dactyl.assert(newValue !== undefined, "E15: Invalid expression: " + expr); let value = newValue; if (op) { value = dactyl.globalVariables[name]; if (op == "+") value += newValue; else if (op == "-") value -= newValue; else if (op == ".") value += String(newValue); } dactyl.globalVariables[name] = value; } } else dactyl.echoerr("E18: Unexpected characters in :let"); }, | context.filters.push(function (i) !set.has(have, i.text)); |
return str.replace(/<((?:q-)?)([a-zA-Z]+)?>/g, function (match, quote, token) { if (token == "lt") return "<"; let res = tokens[token]; if (res === undefined) res = "<" + token + ">"; if (res === null) res = ""; if (quote && typeof res != "number") return Commands.quoteArg['"'](res); return res; }); | ArgType("no arg", function (arg) !arg || null), | return str.replace(/<((?:q-)?)([a-zA-Z]+)?>/g, function (match, quote, token) { if (token == "lt") // Don't quote, as in Vim (but, why so in Vim? You'd think people wouldn't say <q-lt> if they didn't want it) return "<"; let res = tokens[token]; if (res === undefined) // Ignore anything undefined res = "<" + token + ">"; if (res === null) res = ""; if (quote && typeof res != "number") return Commands.quoteArg['"'](res); return res; }); |
select.append($(document.createElement("option")).attr({selected: repo.id == json.default, title: repo.description, value:repo.id}).text(repo.title)); | select.append($(document.createElement("option")).attr({selected: repo.id == json['default'], title: repo.description, value:repo.id}).text(repo.title)); | $.each(json.results, function (i, repo) { select.append($(document.createElement("option")).attr({selected: repo.id == json.default, title: repo.description, value:repo.id}).text(repo.title)); }); |
function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); }, | function (count) { tabs.select("+" + (count || 1), true); }, | function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); }, |
$$(".ddu_button").each( function(e) { e.disabled = false; }); | $$(".ddu_button").each( function(e) { e.disabled = true; }); | $$(".ddu_button").each( function(e) { e.disabled = false; }); |
let arg = args.literalArg; let items = Dactyl.getMenuItems(); | let arg = args[0]; | function (args) { let arg = args.literalArg; let items = Dactyl.getMenuItems(); dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); } }, { |
dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); | try { dactyl.assert(args[0] in config.dialogs, "E475: Invalid argument: " + arg); config.dialogs[args[0]][1](); } catch (e) { dactyl.echoerr("Error opening " + arg.quote() + ": " + e); | function (args) { let arg = args.literalArg; let items = Dactyl.getMenuItems(); dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); } }, { |
function () { tabs.stop(config.browser.mCurrentTab); }, | function (args) { let doc = window.content.document; let chosenData = null; let filename = args[0]; if (filename) { let file = io.File(filename); liberator.assert(!file.exists() || args.bang, "E13: File exists (add ! to override)"); chosenData = { file: file, uri: window.makeURI(doc.location.href, doc.characterSet) }; } options.setPref("browser.download.lastDir", io.getCurrentDirectory().path); try { var contentDisposition = window.content .QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIDOMWindowUtils) .getDocumentMetadata("content-disposition"); } catch (e) {} window.internalSave(doc.location.href, doc, null, contentDisposition, doc.contentType, false, null, chosenData, doc.referrer ? window.makeURI(doc.referrer) : null, true); }, | function () { tabs.stop(config.browser.mCurrentTab); }, |
let str = CommandLine.echoArgumentToString(args[0], true); | let str = CommandLine.echoArgumentToString(args[0] || "", true); | ].forEach(function (command) { commands.add([command.name], command.description, function (args) { let str = CommandLine.echoArgumentToString(args[0], true); if (str != null) command.action(str); }, { completer: function (context) completion.javascript(context), literal: 0 }); }); |
if (AtD.autoproofread == 1 && AtD.proofread_click_count == 0 && $this.val() != ""){ | if (AtD.autoproofread != undefined && AtD.autoproofread == 1 && AtD.proofread_click_count <= 0 && $this.val() != ""){ | $this.parents('form').submit(function(e) { AtD.restoreTextArea(id); if (AtD.autoproofread == 1 && AtD.proofread_click_count == 0 && $this.val() != ""){ e.preventDefault(); AtD_check( id, node, AtD_submit_check_callback ); } }); |
AtD_check( id, node, AtD_submit_check_callback ); | AtD_check( id, node ); | $this.parents('form').submit(function(e) { AtD.restoreTextArea(id); if (AtD.autoproofread == 1 && AtD.proofread_click_count == 0 && $this.val() != ""){ e.preventDefault(); AtD_check( id, node, AtD_submit_check_callback ); } }); |
this.values().forEach(function(val){ check[val] = true; | this.candidates.forEach(function(cand){ delete check[cand.value]; | this.values().forEach(function(val){ check[val] = true; }); |
function (count) { modes.set(modes.VISUAL, modes.TEXTAREA | modes.LINE); editor.executeCommand("cmd_beginLine", 1); editor.executeCommand("cmd_selectLineNext", 1); }); | function (count) { events.onEscape(); }); | function (count) { modes.set(modes.VISUAL, modes.TEXTAREA | modes.LINE); editor.executeCommand("cmd_beginLine", 1); editor.executeCommand("cmd_selectLineNext", 1); }); |
array.nth(this._exCommands, function (cmd) cmd.user && cmd.hasName(name), 0) || null, | if (Array.concat(cmd.domains(args)).some(function (domain) util.isSubdomain(domain, host))) | array.nth(this._exCommands, function (cmd) cmd.user && cmd.hasName(name), 0) || null, |
function () { commandline.open(":", "mail -subject=", modes.EX); }); | function () { commandline.open("", "mail -subject=", modes.EX); }); | function () { commandline.open(":", "mail -subject=", modes.EX); }); |
return tokens.every(function (token) indexOf(linkText, token) >= 0); | return function (linkText) { if (hintStrings.length == 1 && hintStrings[0].length == 0) return true; let words = tokenize(wordSplitRegex, linkText); if (hintStrings.length == 1) return charsAtBeginningOfWords(hintStrings[0], words, allowWordOverleaping); else return stringsAtBeginningOfWords(hintStrings, words, allowWordOverleaping); }; | return tokens.every(function (token) indexOf(linkText, token) >= 0); |
function (count) { tabs.select("$"); }); | ["TabMove", "TabOpen", "TabClose"].forEach(function (event) { events.addSessionListener(tabContainer, event, this.closure._updateTabCount, false); }, this); | function (count) { tabs.select("$"); }); |
res.__defineGetter__(k, function () Class.replaceProperty(this, k, v.call(this, this.item))); | res.__defineGetter__(k, function () Class.replaceProperty(this, k, this.item[v])); | res.__defineGetter__(k, function () Class.replaceProperty(this, k, v.call(this, this.item))); |
let arg = args.literalArg; | let arg = args[0] || ""; | function (args) { let arg = args.literalArg; let items = Dactyl.getMenuItems(); dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); } }, { |
host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host)))); | commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || !item.domains && !item.privateData || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host)))); | host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host)))); |
remove:function(a,b){for(var d in W)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),W[d]);return ga.test(this.nodeName)}};var W=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d, f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){thisObject=e;e=f;f=w}var j=b==="one"?c.proxy(e,function(o){c(this).unbind(o,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e,thisObject):this.each(function(){c.event.add(this,d,j,f)})}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault){for(var d in a)this.unbind(d,a[d]);return this}return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a, | "_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&& | remove:function(a,b){for(var d in W)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),W[d]);return ga.test(this.nodeName)}};var W=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){thisObject=e;e=f;f=w}var j=b==="one"?c.proxy(e,function(o){c(this).unbind(o,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e,thisObject):this.each(function(){c.event.add(this,d,j,f)})}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault){for(var d in a)this.unbind(d,a[d]);return this}return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a, |
function (args) { let arg = args[0] || ""; let items = Dactyl.getMenuItems(); dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); } }, { | dactyl.assert(items.some(function (i) i.fullMenuPath == arg), | function (args) { let arg = args[0] || ""; let items = Dactyl.getMenuItems(); dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); } }, { |
let arg = args[0]; | let arg = args.literalArg; let items = Liberator.getMenuItems(); | function (args) { let arg = args[0]; try { // TODO: why are these sorts of properties arrays? --djk let dialogs = config.dialogs; for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCase(arg, dialog[0]) == 0) { dialog[2](); return; } } liberator.echoerr("E475: Invalid argument: " + arg); } catch (e) { liberator.echoerr("Error opening " + arg.quote() + ": " + e); } }, { |
try { let dialogs = config.dialogs; | liberator.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); | function (args) { let arg = args[0]; try { // TODO: why are these sorts of properties arrays? --djk let dialogs = config.dialogs; for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCase(arg, dialog[0]) == 0) { dialog[2](); return; } } liberator.echoerr("E475: Invalid argument: " + arg); } catch (e) { liberator.echoerr("Error opening " + arg.quote() + ": " + e); } }, { |
for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCase(arg, dialog[0]) == 0) { dialog[2](); return; } } liberator.echoerr("E475: Invalid argument: " + arg); } catch (e) { liberator.echoerr("Error opening " + arg.quote() + ": " + e); | for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); | function (args) { let arg = args[0]; try { // TODO: why are these sorts of properties arrays? --djk let dialogs = config.dialogs; for (let [, dialog] in Iterator(dialogs)) { if (util.compareIgnoreCase(arg, dialog[0]) == 0) { dialog[2](); return; } } liberator.echoerr("E475: Invalid argument: " + arg); } catch (e) { liberator.echoerr("Error opening " + arg.quote() + ": " + e); } }, { |
return new DeferredHash(ds).addCallback(function(ress){ values(ress).forEach(function(pair){ var success = pair[0], res = pair[1]; if(!success) throw res; }); var res = ress.suggestions[1]; res.tags = ress.tags[1]; return res; }); | return Object.keys(tags).reduce(function(memo, tag){ if(tag){ memo.push({ name : tag, frequency : tags[tag] }); } return memo; }, []); | return new DeferredHash(ds).addCallback(function(ress){ // エラーチェック values(ress).forEach(function(pair){ var success = pair[0], res = pair[1]; if(!success) throw res; }); var res = ress.suggestions[1]; res.tags = ress.tags[1]; return res; }); |
function (count) { tabs.select("+" + (count || 1), true); }, | function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); }, | function (count) { tabs.select("+" + (count || 1), true); }, |
liberator.forceNewWindow = true; liberator.execute(args.string, null, true); liberator.forceNewWindow = false; | let arg = args.literalArg; function compare(a, b) util.compareIgnoreCase(a, b) == 0 if (compare(document.getElementById("sidebar-title").value, arg)) { document.getElementById("sidebar-box").focus(); return; } let menu = document.getElementById("viewSidebarMenu"); for (let [, panel] in Iterator(menu.childNodes)) { if (compare(panel.label, arg)) { panel.doCommand(); return; } } liberator.echoerr("No sidebar " + arg + " found"); | function (args) { liberator.forceNewWindow = true; liberator.execute(args.string, null, true); liberator.forceNewWindow = false; }, |
$this.parents('form').submit(function(e) { AtD.restoreTextArea(id); if (AtD.autoproofread != undefined && AtD.autoproofread == 1 && AtD.proofread_click_count <= 0 && $this.val() != ""){ e.preventDefault(); AtD_check( id, node ); | node.click(function(event) { if (AtD.current_id != undefined && AtD.current_id != id) { AtD.restoreTextArea(AtD.current_id); } if($this.val() != "") { AtD.checkTextArea(id, node.attr('id'), opts.edit_text_content); AtD.current_id = id; }else{ jAlert( AtD.getLang('message_error_no_text', 'Please enter some text in the post textbox to be checked!' ), AtD.getLang('message_error', 'Error!' ) ); | $this.parents('form').submit(function(e) { AtD.restoreTextArea(id); if (AtD.autoproofread != undefined && AtD.autoproofread == 1 && AtD.proofread_click_count <= 0 && $this.val() != ""){ e.preventDefault(); AtD_check( id, node ); } }); |
this.each(function(value, index) { if (!iterator.call(context, value, index)) results.push(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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | this.each(function(value, index) { if (!iterator.call(context, value, index)) results.push(value); }); |
function (count) { modes.push(modes.VISUAL, modes.LINE); editor.executeCommand("cmd_beginLine", 1); editor.executeCommand("cmd_selectLineNext", 1); }); | function (count) { events.onEscape(); }); | function (count) { modes.push(modes.VISUAL, modes.LINE); editor.executeCommand("cmd_beginLine", 1); editor.executeCommand("cmd_selectLineNext", 1); }); |
function (context) { context.generate = function () option.values.map(function (o) [o, ""]); }); | template.map(dactyl.globalVariables, function ([i, value]) { return <tr> <td style="width: 200px;">{i}</td> <td>{fmt(value)}</td> </tr>; }) | function (context) { context.generate = function () option.values.map(function (o) [o, ""]); }); |
function fixEscapes(str) str.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4}|(.))/g, function (m, n1) n1 || m); | ArgType("string", function (val) val), | function fixEscapes(str) str.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4}|(.))/g, function (m, n1) n1 || m); |
let res = this._generate.call(this) || []; | let res = this._generate.call(this); | get generate() !this._generate ? null : function () { if (this.offset != this.cache.offset || this.lastActivated != this.top.runCount) { this.itemCache = {}; this.cache.offset = this.offset; this.lastActivated = this.top.runCount; } if (!this.itemCache[this.key]) { let res = this._generate.call(this) || []; if (res != null) this.itemCache[this.key] = res; } return this.itemCache[this.key]; }, |
function (count) { tabs.select("+" + (count || 1), true); }, | function (count) { tabs.select("-" + (count || 1), true); }, | function (count) { tabs.select("+" + (count || 1), true); }, |
$$(".ddu_button").each( function(e) { e.disabled = true; }); | $$(".ddu_checkbox").each(function(element) { element.observe("change", function(el) { var totalChecked = 0; $$(".ddu_checkbox").each(function(el2) { if (el2.checked) totalChecked++; }); if (totalChecked) { $$(".ddu_button").each( function(e) { e.disabled = false; }); } else { $$(".ddu_button").each( function(e) { e.disabled = true; }); } }); }); | $$(".ddu_button").each( function(e) { e.disabled = true; }); |
dactyl.assert(items.some(function (i) i.fullMenuPath == arg), | function (args) { let arg = args.literalArg; let items = Dactyl.getMenuItems(); dactyl.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); } }, { | dactyl.assert(items.some(function (i) i.fullMenuPath == arg), |
].forEach(function (start, stop, val) { if (typeof a[2] != "string") for (i=start; i <= stop; i++) table[String.fromCharCode(i)] = val[(i - start) % val.length]; else { let n = val.charCodeAt(0); for (i=start; i <= stop; i++) table[String.fromCharCode(i)] = String.fromCharCode(n + i - start); } }); | a[3] = function (chr) String.fromCharCode(this[2].charCodeAt(0) + chr - this[0]); | ].forEach(function (start, stop, val) { if (typeof a[2] != "string") for (i=start; i <= stop; i++) table[String.fromCharCode(i)] = val[(i - start) % val.length]; else { let n = val.charCodeAt(0); for (i=start; i <= stop; i++) table[String.fromCharCode(i)] = String.fromCharCode(n + i - start); } }); |
function (args) { buffer.viewSource(args[0], args.bang); }, | function () { tabs.stop(config.browser.mCurrentTab); }, | function (args) { buffer.viewSource(args[0], args.bang); }, |
function (args) { | ].forEach(function (command) { commands.add([command.name], command.description, function (args) { | function (args) { let str = CommandLine.echoArgumentToString(args[0] || "", true); if (str != null) command.action(str); }, { |
completer: function (context) completion.javascript(context), literal: 0 }); }); | function (args) { let str = CommandLine.echoArgumentToString(args[0] || "", true); if (str != null) command.action(str); }, { |
|
let str = CommandLine.echoArgumentToString(args[0], true); | let str = CommandLine.echoArgumentToString(args[0] || "", true); | function (args) { let str = CommandLine.echoArgumentToString(args[0], true); if (str != null) command.action(str); }, { |
this.candidates.forEach(function(cand){ delete check[cand.value]; }); | setTimeout(function(){ this.tags.selectionStart = this.tags.selectionEnd = index; }, 0); | this.candidates.forEach(function(cand){ delete check[cand.value]; }); |
dactyl.assert(modes.extended & modes.TEXTAREA); editor.executeCommand("cmd_cut"); modes.set(modes.INSERT, modes.TEXTAREA); | modes.set(modes.VISUAL, modes.TEXTAREA | modes.LINE); editor.executeCommand("cmd_beginLine", 1); editor.executeCommand("cmd_selectLineNext", 1); | function (count) { dactyl.assert(modes.extended & modes.TEXTAREA); editor.executeCommand("cmd_cut"); modes.set(modes.INSERT, modes.TEXTAREA); }); |
return this._exCommands.filter(function (cmd) cmd.user); | completeOpts = options.filter(function (opt) opt.multiple || !set.has(args, opt.names[0])); | return this._exCommands.filter(function (cmd) cmd.user); |
commandline.open(":", "mail " + to + " -subject=", modes.EX); | commandline.open("", "mail " + to + " -subject=", modes.EX); | function () { try { let to = mail._escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor); commandline.open(":", "mail " + to + " -subject=", modes.EX); } catch (e) { liberator.beep(); } }); |
function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); }, | function (count) { tabs.select(0); }); | function (count) { if (count != null) tabs.select(count - 1, false); else tabs.select("+1", true); }, |
res.__defineGetter__(k, function () Class.replaceProperty(this, k, this.item[v])); | res.__defineSetter__(k, function (val) Class.replaceProperty(this, k, val)); | res.__defineGetter__(k, function () Class.replaceProperty(this, k, this.item[v])); |
].forEach(function (command) { commands.add([command.name], command.description, function (args) { | function (args) { | ].forEach(function (command) { commands.add([command.name], command.description, function (args) { let str = CommandLine.echoArgumentToString(args[0] || "", true); if (str != null) command.action(str); }, { completer: function (context) completion.javascript(context), literal: 0 }); }); |
completer: function (context) completion.javascript(context), literal: 0 }); }); | ].forEach(function (command) { commands.add([command.name], command.description, function (args) { let str = CommandLine.echoArgumentToString(args[0] || "", true); if (str != null) command.action(str); }, { completer: function (context) completion.javascript(context), literal: 0 }); }); |
|
commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host)))); | host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host)))); | commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host)))); |
f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){thisObject=e;e=f;f=w}var j=b==="one"?c.proxy(e,function(o){c(this).unbind(o,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e,thisObject):this.each(function(){c.event.add(this,d,j,f)})}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault){for(var d in a)this.unbind(d,a[d]);return this}return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a, | d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&& | f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){thisObject=e;e=f;f=w}var j=b==="one"?c.proxy(e,function(o){c(this).unbind(o,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e,thisObject):this.each(function(){c.event.add(this,d,j,f)})}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault){for(var d in a)this.unbind(d,a[d]);return this}return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a, |
dactyl.assert(items.some(function (i) i.fullMenuPath == arg), | function (args) { try { let cmd = dactyl.userEval(args[0] || ""); dactyl.execute(cmd, null, true); } catch (e) { dactyl.echoerr(e); } }, { | dactyl.assert(items.some(function (i) i.fullMenuPath == arg), |
function (args) { let arg = args.literalArg; let items = Liberator.getMenuItems(); liberator.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); } }, { | liberator.assert(items.some(function (i) i.fullMenuPath == arg), | function (args) { let arg = args.literalArg; let items = Liberator.getMenuItems(); liberator.assert(items.some(function (i) i.fullMenuPath == arg), "E334: Menu not found: " + arg); for (let [, item] in Iterator(items)) { if (item.fullMenuPath == arg) item.doCommand(); } }, { |
function (count) { tabs.select("-" + (count || 1), true); }, | function (count) { tabs.select("+" + (count || 1), true); }, | function (count) { tabs.select("-" + (count || 1), true); }, |
function () { window.close(); }, | function (args) { liberator.forceNewWindow = true; liberator.execute(args.string, null, true); liberator.forceNewWindow = false; }, | function () { window.close(); }, |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.