rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
function (resp) { if (resp && resp.match(/^y(es)?$/i)) dactyl.open(urls, params, true); });
dirs.forEach(function (dir) { dactyl.echomsg("Searching for " + (dir.path + "/**/*.{js,vimp}").quote(), 3); sourceDirectory(dir); });
function (resp) { if (resp && resp.match(/^y(es)?$/i)) dactyl.open(urls, params, true); });
getSelected().addCallback(function(tab){ var ps = req.content; if(req.show){ TBRL.Popup.open(tab, ps); } else { var posters = Models.getDefaults(ps); if(!posters.length){ TBRL.Service.alertPreference(ps.type); } else { TBRL.Service.post(ps, posters); } } func({}); }).addErrback(function(e){
Object.keys(log).forEach(function(k){ setter(k, log, TBRL.Config); });
getSelected().addCallback(function(tab){ var ps = req.content; if(req.show){ TBRL.Popup.open(tab, ps); } else { var posters = Models.getDefaults(ps); if(!posters.length){ TBRL.Service.alertPreference(ps.type); } else { TBRL.Service.post(ps, posters); ...
function (args) { if (args.length > 1) dactyl.echoerr("E172: Only one file name allowed"); else io.source(args[0], args.bang); }, {
function () { commandline.commandOutput( template.tabular(["<SNR>", "Filename"], ["text-align: right; padding-right: 1em;"], ([i + 1, file] for ([i, file] in Iterator(io._scriptNames))))); },
function (args) { if (args.length > 1) dactyl.echoerr("E172: Only one file name allowed"); else io.source(args[0], args.bang); }, {
jsio.addCmd(function(context, path, request, opts, imports) {
jsio.addCmd(function(context, request, opts, imports) {
jsio.addCmd(function(context, path, request, opts, imports) { var match = request.match(/^\s*[\w.0-9$\/]+\s*$/); if(match) { var req = match[0], isAbsolute = req.charAt(0) == '/'; req = req.replace(/^\//, '') // leading slash not needed .replace(/\.\.?\//g, '.') // replace relative path indicators with ...
var req = match[0], isAbsolute = req.charAt(0) == '/'; req = req.replace(/^\
var req = match[0] .replace(/^\
jsio.addCmd(function(context, path, request, opts, imports) { var match = request.match(/^\s*[\w.0-9$\/]+\s*$/); if(match) { var req = match[0], isAbsolute = req.charAt(0) == '/'; req = req.replace(/^\//, '') // leading slash not needed .replace(/\.\.?\//g, '.') // replace relative path indicators with ...
imports[0] = { from: isAbsolute ? req : resolveRelativePath(req, path) };
jsio.addCmd(function(context, path, request, opts, imports) { var match = request.match(/^\s*[\w.0-9$\/]+\s*$/); if(match) { var req = match[0], isAbsolute = req.charAt(0) == '/'; req = req.replace(/^\//, '') // leading slash not needed .replace(/\.\.?\//g, '.') // replace relative path indicators with ...
imports[0] = { from: req };
jsio.addCmd(function(context, path, request, opts, imports) { var match = request.match(/^\s*[\w.0-9$\/]+\s*$/); if(match) { var req = match[0], isAbsolute = req.charAt(0) == '/'; req = req.replace(/^\//, '') // leading slash not needed .replace(/\.\.?\//g, '.') // replace relative path indicators with ...
jsio.addCmd(function(context, request, opts, imports) { var match = request.match(/^\s*[\w.0-9$\/]+\s*$/); if(match) { var req = match[0] .replace(/^\ .replace(/\.\.?\ .replace(/\ imports[0] = { from: req }; return true; } });
match[1].replace(/\s*([\w.$]+)(?:\s+as\s+([\w.$]+))?,?/g, function(_, fullPath, as) { imports.push( as ? { from: fullPath, as: as } : { from: fullPath, as: fullPath }); });
jsio.addCmd(function(context, request, opts, imports) { var match = request.match(/^\s*[\w.0-9$\/]+\s*$/); if(match) { var req = match[0] .replace(/^\//, '') // remove any leading slash .replace(/\.\.?\//g, '.') // replace relative path indicators with dots .replace(/\//g, '.'); // any remaining slashes a...
$(this).click(function(){
this.element.find("[type='checkbox']").each(function(key,value){ $(this).click(function(){
$(this).click(function(){ var check_id = $(this).val(); if($(this).is(':checked')){ //step1:onclick checkbox and generate detail object self.checked_list[check_id] = { //+1 is to remove table header element:$(self.element.find('tr')[key+1]), ...
})
$(this).click(function(){ var check_id = $(this).val(); if($(this).is(':checked')){ //step1:onclick checkbox and generate detail object self.checked_list[check_id] = { //+1 is to remove table header element:$(self.element.find('tr')[key+1]), ...
var binding = this.bindings.filter(function(el) { return el.type == this.bindingTypeElements[i].bindingType; } )[0];
var toggle = this.visTypeToggleElements.filter(function(el) { return el.visType == visType.type.value; } )[0];
var binding = this.bindings.filter(function(el) { return el.type == this.bindingTypeElements[i].bindingType; } )[0];
if (!p[r.end]) p[r.end] = [r];
if (!a[r.end]) a[r.end] = [r];
$.each(data[q.ikey.join(" ")] || [], function (i, e) { var r = me._checkEntry(e, q, ctx); if (r) { if (!p[r.end]) p[r.end] = [r]; else ...
p[r.end].push(r);
a[r.end].push(r);
$.each(data[q.ikey.join(" ")] || [], function (i, e) { var r = me._checkEntry(e, q, ctx); if (r) { if (!p[r.end]) p[r.end] = [r]; else ...
$.alerts._show(title, message, null, 'alert', function(result) {
(function($) { $.alerts = { verticalOffset: -75, horizontalOffset: 0, repositionOnResize: true, overlayOpacity: .01, overlayColor: '#FFF', draggable: false, okButton: '&nbsp;' + AtD.getLang('button_ok', "OK") + '&nbsp;', cancelButton: '&nbsp;' + AtD.getLang('button_cancel', "Cancel") + '&nbsp;', dialogClass: null, ...
$.alerts._show(title, message, null, 'alert', function(result) { if( callback ) callback(result); });
}, confirm: function(message, title, callback) { if( title == null ) title = 'Confirm'; $.alerts._show(title, message, null, 'confirm', function(result) { if( callback ) callback(result); }); }, prompt: function(message, value, title, callback) { if( title == null ) title = 'Prompt'; $.alerts._show(title, message, va...
$.alerts._show(title, message, null, 'alert', function(result) { if( callback ) callback(result); });
var visDataTypes = Report.dataTypes.filter(function(dataType) { return dataType.visType.value == visType.type.value; } );
var visBindingTypes = Report.bindingTypes.filter(function(bindingType) { return bindingType.visType.value == visType.type.value; } );
var visDataTypes = Report.dataTypes.filter(function(dataType) { return dataType.visType.value == visType.type.value; } );
let saved = ["range", "lastRange", "lastString"].map(this.closure(function (s) [s, this[s]]));
let saved = ["range", "lastRange", "lastString"].map(function (s) [s, this[s]], this);
let saved = ["range", "lastRange", "lastString"].map(this.closure(function (s) [s, this[s]]));
fileContents = fileContents.replace(/^(\s*this\.)(\w+)(\s*=\s*function)\s*(\(.*)$/mg, function(str, p1, p2, p3, p4){
fileContents = fileContents.replace(/^(\s*)(\w+)(\s*:\s*function)\s*(\(.*)$/mg, function(str, p1, p2, p3, p4){
fileContents = fileContents.replace(/^(\s*this\.)(\w+)(\s*=\s*function)\s*(\(.*)$/mg, function(str, p1, p2, p3, p4){ return p1+p2+p3+" "+buildUtil.generateSym(className+p2)+p4; });
function () { return; });
function (count, arg) { count = Math.max(count, 1); while (count-- && events.playMacro(arg)) ; },
function () { return; });
var bigStr = arguments.shift(),
var bigStr = Array.prototype.shift.call(arguments),
.defineBare("concat", function() { var bigStr = arguments.shift(), context = this; each(arguments, function() { bigStr = context.call("_concat", bigStr, this); }); return bigStr; })
$$("input[chip=\"" + chip + "\"").each(function(ele) { el["slot"].push(ele.readAttribute("slot")); });
board.chips.each(function(chip) { $(chip.name + "_label_" + slot).update(chip.text); if (!percents.get(chip.name) || chip.percent < percents.get(chip)) { percents.set(chip.name, chip.percent); } if (chip.percent == 100) alldone++; });
$$("input[chip=\"" + chip + "\"").each(function(ele) { el["slot"].push(ele.readAttribute("slot")); });
Object.keys(this.savers).forEach(function(key){ this.ps[key] = this.savers[key].body(); }, this);
this.toggles.forEach(function(unit){ unit.toggle(); });
Object.keys(this.savers).forEach(function(key){ this.ps[key] = this.savers[key].body(); }, this);
args = update({ setFrom: this.file }, args || {});
args = update({ setFrom: this.sourcing.file }, args || {});
io.withSavedValues(["readHeredoc", "sourcing"], function () { this.sourcing = update({}, sourcing); args = update({ setFrom: this.file }, args || {}); if (tokens) string = commands.replaceTokens(string, tokens); let lines = string.split(/\r\n|[\r\n]/); ...
function (resp) { if (resp && resp.match(/^y(es)?$/i)) dactyl.open(urls, params, true); });
options.withContext(function () { options.setPref("browser.tabs.loadInBackground", true); browser.loadOneTab(url, null, null, postdata, background); });
function (resp) { if (resp && resp.match(/^y(es)?$/i)) dactyl.open(urls, params, true); });
self.element.live('click',function(){ self.element.trigger('dcmgrGUI.refresh'); })
$(this).click(function(){ var check_id = $(this).val(); if($(this).is(':checked')){ self.checked_list[check_id] = { element:$(self.element.find('tr')[key+1]), c_detail:new DcmgrGUI.Detail({ id:check_id, element_id:$('<div></div>'), template_id:params.template_id }) } self.checked_list[check_id].c_detail.element....
self.element.live('click',function(){ self.element.trigger('dcmgrGUI.refresh'); })
board.chips.each(function(chip) { $(chip.name + "_label_" + slot).update(chip.text); if (!percents.get(chip.name) || chip.percent < percents.get(chip)) { percents.set(chip.name, chip.percent); } if (chip.percent == 100) alldone++;
($("reset")).observe("click", function(event) { event.element().update("Resetting").disabled = true; var url = URL + "/DDUReset"; var params = new Hash(); params.set("crate", crateNumber); new Ajax.Request(url, { method: "get", parameters: params, onSuccess: button.callback.bind(button), onFailure: reportError });
board.chips.each(function(chip) { // Update the text in the table $(chip.name + "_label_" + slot).update(chip.text); // Check to see if this is the smallest % done for all chips of this type if (!percents.get(chip.name) || chip.percent < percents.get(chip)) { percents.set(chip.name, chip.percent); } if...
function () { editor.executeCommand("cmd_endLine", 1); });
function () { editor.executeCommand("cmd_beginLine", 1); });
function () { editor.executeCommand("cmd_endLine", 1); });
function (args) { map(args, mapmodes, true); },
function (args) { map(args, true); },
function (args) { map(args, mapmodes, true); },
return self.selectElement(ctx).addCallback(function(elm){ var rect = elm.getBoundingClientRect(); return self.capture(win, {x: Math.round(rect.left), y: Math.round(rect.top)}, getElementDimensions(elm));
return self.selectRegion(ctx).addCallback(function(region){ return self.capture(win, region.position, region.dimensions);
return self.selectElement(ctx).addCallback(function(elm){ var rect = elm.getBoundingClientRect(); return self.capture(win, {x: Math.round(rect.left), y: Math.round(rect.top)}, getElementDimensions(elm)); });
board.chips.each(function(chip) { $(chip.name + "_label_" + slot).update(chip.text); if (!percents.get(chip.name) || chip.percent < percents.get(chip)) { percents.set(chip.name, chip.percent); } });
$$("input[chip=\"" + chip + "\"").each(function(ele) { el["slot"].push(ele.readAttribute("slot")); });
board.chips.each(function(chip) { // Update the text in the table $(chip.name + "_label_" + slot).update(chip.text); // Check to see if this is the smallest % done for all chips of this type if (!percents.get(chip.name) || chip.percent < percents.get(chip)) { percents.set(chip.name, chip.percent); } });
function () { commandline.commandOutput( template.tabular(["<SNR>", "Filename"], ["text-align: right; padding-right: 1em;"], ([i + 1, file] for ([i, file] in Iterator(io._scriptNames))))); },
function (args) { if (args.length > 1) dactyl.echoerr("E172: Only one file name allowed"); else io.source(args[0], args.bang); }, {
function () { commandline.commandOutput( template.tabular(["<SNR>", "Filename"], ["text-align: right; padding-right: 1em;"], ([i + 1, file] for ([i, file] in Iterator(io._scriptNames))))); // TODO: add colon and remove column titles for pedantic Vim ...
let validEvents = config.autocommands.map(function (e) e[0]);
JavaScript.setCompleter(this.get, [function () Iterator(config.autocommands)]);
let validEvents = config.autocommands.map(function (e) e[0]);
lines.__defineGetter__("last", function () this[this.length - 1]);
function (args) { let runtime = util.OS.isWindows ? "~/vimfiles/" : "~/.vim/"; let file = io.File(runtime + "syntax/" + config.name + ".vim"); if (args.length) file = io.File(args[0]); if (file.exists() && file.isDirectory() || args[0] && /\/$/.test(args[0])) file.append(config.name + ".vim"); dactyl.assert(!file.exis...
lines.__defineGetter__("last", function () this[this.length - 1]);
function (args) { tabs.switchTo(args[0], args.bang, args.count); }, {
function (args) { let count = args.count; let arg = args[0]; if (arg || count > 0) { let index; if (arg) { dactyl.assert(/^\d+$/.test(arg), "E488: Trailing characters"); index = arg - 1; } else index = count - 1; if (index < tabs.count) tabs.select(index, true); else dactyl.beep(); } else tabs.select("+1", true);...
function (args) { tabs.switchTo(args[0], args.bang, args.count); }, {
return function(url){ if (url.match(/^https?:\/\ return url; } else if (url.indexOf("/") === 0) { return top + url; } else { var result = current; if(url.indexOf(".") === 0){ var count = 15; while(url.indexOf(".") === 0 && !(--count === 0)){ if(url.substring(0, 3) === "../") result = result.replace(/\/[^\/]+\/$/,"/"); ...
return new DeferredList(values(ds)).addCallback(function(results){ var res = {}; for (var i = 0, len=results.length; i < len; i++) res[props[i]] = results[i]; return res; });
return function(url){ if (url.match(/^https?:\/\//)) { return url; } else if (url.indexOf("/") === 0) { return top + url; } else { var result = current; if(url.indexOf(".") === 0){ var count = 15;// 無限ループ防止用. 15回も../や./使ってるURLはさすがにないだろということで. while(url.indexOf(".") === 0 && ...
}, function(res){ d.callback(res); });
}, function(res){ });
}, function(res){ d.callback(res); });
}).addCallback(function(image){ console.log(image);
}).addCallback(function(file){
}).addCallback(function(image){ console.log(image); return { type : 'photo', item : ctx.title, file : { contentType: 'image/png', base64: true, binary: image } }; });
file : { contentType: 'image/png', base64: true, binary: image }
file : file
}).addCallback(function(image){ console.log(image); return { type : 'photo', item : ctx.title, file : { contentType: 'image/png', base64: true, binary: image } }; });
function (args) { dactyl.quit(false, args.bang); }, {
function (args) { tabs.list(args.literalArg); }, {
function (args) { dactyl.quit(false, args.bang); }, {
.addCallback(function(ps){ chrome.extension.sendRequest(TBRL.id, { request: "share", show : show, content: update({ page : document.title, pageUrl : location.href }, ps) }, function(res){ });
return function(url, opt){ var id = "request_"+(++ID); var ret = Callbacks[id] = new Deferred(); connection.postMessage({ "type" : "request", "url" : url, "opt" : opt, "id" : id
.addCallback(function(ps){ chrome.extension.sendRequest(TBRL.id, { request: "share", show : show, content: update({ page : document.title, pageUrl : location.href }, ps) }, function(res){ }); });
return ret; }
.addCallback(function(ps){ chrome.extension.sendRequest(TBRL.id, { request: "share", show : show, content: update({ page : document.title, pageUrl : location.href }, ps) }, function(res){ }); });
var escapedString = this.gsub(/[\x00-\x1f\\]/, function(match) { var character = String.specialChar[match[0]]; return character ? character : '\\u00' + match[0].charCodeAt().toPaddedString(2, 16); });
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(...
var escapedString = this.gsub(/[\x00-\x1f\\]/, function(match) { var character = String.specialChar[match[0]]; return character ? character : '\\u00' + match[0].charCodeAt().toPaddedString(2, 16); });
$.each(keyCodes, function (i, keyCode) {
(function () { var keyCodes = [ 192, 49, 50, 51, 52, 53, 54, 55, 56, 57, 48, 109, 189, 107, 187, 81, 87, 69, 82, 84, 89, 85, 73, 79, 80, 219, 221, 220, 65, 83, 68, 70, 71, 72, 74, 75, 76, 59, 186, 222, 90, 88, 67, 86, 66, 78, 77, 188, 190, 191, 32 ]; var lowerCase = "`1234567890--==qwertyuiop[]\\asdfghjkl;;\'zxcvbnm,./...
$.each(keyCodes, function (i, keyCode) { table[keyCode] = [lowerCase.charAt(i), upperCase.charAt(i)]; });
KeyEvent._table = table; })();
$.each(keyCodes, function (i, keyCode) { table[keyCode] = [lowerCase.charAt(i), upperCase.charAt(i)]; });
return frames.filter(function (f) f === buffer.focusedFrame).concat(
buffer.allFrames().forEach(function (frame) frame.document.pageIsFullyLoaded = val),
return frames.filter(function (f) f === buffer.focusedFrame).concat(
res = context.allItems.items.map(function (item) [item.text]);
return Array.concat(values).every(function (value) res.some(function (item) item[0] == value));
res = context.allItems.items.map(function (item) [item.text]);
function (count, arg) { count = Math.max(count, 1); while (count-- && events.playMacro(arg)) ; },
function () { modes.push(modes.QUOTE); });
function (count, arg) { count = Math.max(count, 1); while (count-- && events.playMacro(arg)) ; },
$.each(pending, function (i, e) { if (e == index) { pos = i; return false;
$.each(queries[index], function (i, q) { var p = phrase[q.start]; if (!p) { p = phrase[q.start] = [];
$.each(pending, function (i, e) { if (e == index) { pos = i; return false; } });
$.each(data[q.ikey.join(" ")] || [], function (i, e) { var r = me._checkEntry(e, q, ctx); if (r) { if (!p[r.end]) p[r.end] = [r]; else p[r.end].push(r); } });
$.each(pending, function (i, e) { if (e == index) { pos = i; return false; } });
function (arg) /^(up|down)$/.test(arg),
return this._exMap[name] || !full && this._exCommands.filter(function (cmd) cmd.hasName(name))[0] || null;
function (arg) /^(up|down)$/.test(arg),
function () { window.openOptionsDialog(); },
function () { window.BrowserOpenFileWindow(); }],
function () { window.openOptionsDialog(); },
["mousedown", "mouseup", "click"].forEach(function (event) {
options.withContext(function () { options.setPref("browser.tabs.loadInBackground", true); ["mousedown", "mouseup", "click"].forEach(function (event) {
["mousedown", "mouseup", "click"].forEach(function (event) { elem.dispatchEvent(events.create(doc, event, { screenX: offsetX, screenY: offsetY, ctrlKey: ctrlKey, shiftKey: shiftKey, metaKey: ctrlKey })); });
});
["mousedown", "mouseup", "click"].forEach(function (event) { elem.dispatchEvent(events.create(doc, event, { screenX: offsetX, screenY: offsetY, ctrlKey: ctrlKey, shiftKey: shiftKey, metaKey: ctrlKey })); });
function (args) { dactyl.quit(false, args.bang); }, {
function (args) { tabs.reloadAll(args.bang); }, {
function (args) { dactyl.quit(false, args.bang); }, {
$.each(fuzzyMap[c[i]], function (i_, t) {
$.each(seg.a, function (j, c) { if (c && c[i]) { var found = false; $.each(fuzzyMap[c[i]], function (i_, t) {
$.each(fuzzyMap[c[i]], function (i_, t) { if (k[0] == t) { found = true; return false; } });
if (found) { var r = me._matchKey(k.slice(1), j, seg, fuzzyMap); if (r) { result = r; return false; } } } });
$.each(fuzzyMap[c[i]], function (i_, t) { if (k[0] == t) { found = true; return false; } });
options.withContext(function () { options.setPref("browser.tabs.loadInBackground", true); browser.loadOneTab(url, null, null, postdata, background); });
return urls.map(function (url) { if (/^(\.{0,2}|~)\ try { let file = io.File(url); if (file.exists() && file.isReadable()) return services.get("io").newFileURI(file).spec; } catch (e) {} } url = url.trim(); let proto = url.match(/^([-\w]+):/); if (proto && Cc["@mozilla.org/network/protocol;1?name=" + proto[1]]) r...
options.withContext(function () { options.setPref("browser.tabs.loadInBackground", true); browser.loadOneTab(url, null, null, postdata, background); });
$.get($(this).attr("rel"), {}, function (data) { $(trgt).parent().parent().after(getForm(addAnchor, data, $(trgt).attr("rel"))); $(trgt).parent().parent().hide();
$("a.inline-save").live("click", function () { trgt = this; action = $(trgt).attr("rel"); params = $(this).parent().find(":input").serialize(); selector = '[rel="' + action + '"]'; $.post(action, params, function (data) { errors = data['errors']; if (errors) { $(trgt).parent().find(":input").each(function () { if (erro...
$.get($(this).attr("rel"), {}, function (data) { $(trgt).parent().parent().after(getForm(addAnchor, data, $(trgt).attr("rel"))); $(trgt).parent().parent().hide(); }, "json");
return false; });
$.get($(this).attr("rel"), {}, function (data) { $(trgt).parent().parent().after(getForm(addAnchor, data, $(trgt).attr("rel"))); $(trgt).parent().parent().hide(); }, "json");
options.withContext(function () { options.setPref("browser.tabs.loadInBackground", true); browser.loadOneTab(url, null, null, postdata, background); });
function (resp) { if (resp && resp.match(/^y(es)?$/i)) dactyl.open(urls, params, true); });
options.withContext(function () { options.setPref("browser.tabs.loadInBackground", true); browser.loadOneTab(url, null, null, postdata, background); });
}).addErrback(function(e){
getSelected().addCallback(function(tab){ TBRL.Popup.open(tab, req.content);
}).addErrback(function(e){ });
let arg = args[0] || ""; if (args.bang) arg = "!" + arg; if (options["banghist"]) { dactyl.assert(!/((^|[^\\])(\\\\)*)!/.test(arg) || io._lastRunCommand, "E34: No previous command"); arg = arg.replace(/(\\)*!/g, function (m) /^\\(\\\\)*!$/.test(m) ? m.replace("\\!", "!") : m.replace("!", io._lastRunCommand) ...
if (args.length > 1) dactyl.echoerr("E172: Only one file name allowed"); else io.source(args[0], args.bang);
function (args) { let arg = args[0] || ""; // :!! needs to be treated specially as the command parser sets the // bang flag but removes the ! from arg if (args.bang) arg = "!" + arg; // NOTE: Vim doesn't replace ! ...
self.checked_list[check_id].c_detail.element.bind('dcmgrGUI.contentChange',function(event,params){
$(this).click(function(){ var check_id = $(this).val(); if($(this).is(':checked')){ self.checked_list[check_id] = { element:$(self.element.find('tr')[key+1]), c_detail:new DcmgrGUI.Detail({ id:check_id, element_id:$('<div></div>'), template_id:params.template_id }) } self.checked_list[check_id].c_detail.element....
self.checked_list[check_id].c_detail.element.bind('dcmgrGUI.contentChange',function(event,params){ if(self.checked_list[check_id]){ //step4:marge data in template var data = { item:params.data } //initialize if(!params.da...
self.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath(params.detail_path,check_id) },true); }else{ if(self.checked_list[check_id]){ $($('#detail').find('#'+check_id)).remove(); delete self.checked_list[check_id] } } });
self.checked_list[check_id].c_detail.element.bind('dcmgrGUI.contentChange',function(event,params){ if(self.checked_list[check_id]){ //step4:marge data in template var data = { item:params.data } //initialize if(!params.da...
var variables = this.variables.results.bindings.filter(function(el) { return el.binding.value == report.bindings.results.bindings[i].binding.value; } );
var binding = this.bindings.filter(function(el) { return el.type == this.bindingTypeElements[i].bindingType; } )[0];
var variables = this.variables.results.bindings.filter(function(el) { return el.binding.value == report.bindings.results.bindings[i].binding.value; } );
$.each(pending, function (i, e) { if (e == index) {
$.each(pending, function (i, p) { if (p.index == index) {
$.each(pending, function (i, e) { if (e == index) { pos = i; return false; } });
$.alerts._show(title, message, null, 'confirm', function(result) {
$.alerts._show(title, message, null, 'alert', function(result) {
$.alerts._show(title, message, null, 'confirm', function(result) { if( callback ) callback(result); });
var bindDataTypes = this.dataTypes.filter(function(dataType) { return dataType.bindingType.value == bindingType.type.value; } );
var visDataTypes = Report.dataTypes.filter(function(dataType) { return dataType.visType.value == visType.type.value; } );
var bindDataTypes = this.dataTypes.filter(function(dataType) { return dataType.bindingType.value == bindingType.type.value; } );
fileContents = fileContents.replace(/^(\s*)([\w\.]+)(\s*=\s*function)\s*(\(.*)/mg, function(str, p1, p2, p3, p4){ return p1+p2+p3+" "+buildUtil.generateSym(p2.replace(/\./g, "_"))+p4; });
fileContents = fileContents.replace(/^(\s*this\.)(\w+)(\s*=\s*function)\s*(\(.*)$/mg, function(str, p1, p2, p3, p4){ return p1+p2+p3+" "+buildUtil.generateSym(className+p2)+p4; });
fileContents = fileContents.replace(/^(\s*)([\w\.]+)(\s*=\s*function)\s*(\(.*)/mg, function(str, p1, p2, p3, p4){ return p1+p2+p3+" "+buildUtil.generateSym(p2.replace(/\./g, "_"))+p4; });
function (arg) { events.startRecording(arg); },
if (re.test(url) && re.result.some(function (k) k === key))
function (arg) { events.startRecording(arg); },
dactyl.echoerr("Exxx: Could not add bookmark `" + title + "'", commandline.FORCE_SINGLELINE);
dactyl.echoerr("Exxx: Could not add bookmark " + title.quote(), commandline.FORCE_SINGLELINE);
function (args) { let url = args.length == 0 ? buffer.URL : args[0]; let title = args["-title"] || (args.length == 0 ? buffer.title : null); let keyword = args["-keyword"] || null; let tags = args["-tags"] || []; if (bookmarks.add...
data.boards.each(function(board) {
percents.each(function(it) {
data.boards.each(function(board) { var slot = board.slot; // Loop through the returned chips board.chips.each(function(chip) { // Update the text in the table $(chip.name + "_label_" + slot).update(chip.text); // Check to see if this is the smallest % done for all chips of this type if (!percents.get(chip.n...
var slot = board.slot; board.chips.each(function(chip) { $(chip.name + "_label_" + slot).update(chip.text); if (!percents.get(chip.name) || chip.percent < percents.get(chip)) { percents.set(chip.name, chip.percent); } });
if (uploading && it.value == 100) { $(it.key + "_upload").update("Uploading...").disabled = true; } else if (it.value == 100) { $(it.key + "_upload").update("Upload and install").disabled = disable; } else { $(it.key + "_upload").update("Installing " + it.value + "%").disabled = true; uploading = false; }
data.boards.each(function(board) { var slot = board.slot; // Loop through the returned chips board.chips.each(function(chip) { // Update the text in the table $(chip.name + "_label_" + slot).update(chip.text); // Check to see if this is the smallest % done for all chips of this type if (!percents.get(chip.n...
this.toggles.forEach(function(unit){ unit.toggle();
connect(this.image, 'onload', this.image, function(){ var width = this.naturalWidth; var height = this.naturalHeight; var resizedHeight = this.width / width * height; if(resizedHeight > 300){ this.setAttribute('style', 'height:300px !important;width:'+(height/300*width)+' !important;'); this.setAttribute('style', 'heig...
this.toggles.forEach(function(unit){ unit.toggle(); });
});
this.toggles.forEach(function(unit){ unit.toggle(); });
percents.each(function(it) { if (uploading && it.value == 100) { $(it.key + "_upload").update("Uploading...").disabled = true; } else if (it.value == 100) { $(it.key + "_upload").update("Upload and install").disabled = disable; } else { $(it.key + "_upload").update("Installing " + it.value + "%").disabled = true; uplo...
data.boards.each(function(board) { var slot = board.slot; board.chips.each(function(chip) { var name = chip.chip; $(name + "_label_" + slot).update(chip.version); }); });
percents.each(function(it) { if (uploading && it.value == 100) { $(it.key + "_upload").update("Uploading...").disabled = true; } else if (it.value == 100) { $(it.key + "_upload").update("Upload and install").disabled = disable; } else { $(it.key + "_upload").update("Installing " + it.value + "%").disabled = t...
function () { events.feedkeys("<BS>", true); });
function () { editor.executeCommand("cmd_endLine", 1); });
function () { events.feedkeys("<BS>", true); });
$.each(queries[index], function (i, q) {
(function (index) { pending.push(index); $.getJSON(me.DATA_DIR + prefix + me.SEPARATOR + files[index] + me.JSON, null, function (data) { if (me._queries !== queries) return; $.each(queries[index], function (i, q) {
$.each(queries[index], function (i, q) { var p = phrase[q.start]; if (!p) { p = phrase[q.start] = []; } // filter results $.each(data[q.ikey.join(" ")] || [],...
var pos = -1; $.each(pending, function (i, e) { if (e == index) { pos = i; return false; } }); if (pos == -1) { Logger.error("index '" + index + "' lost trace in pending lookups."); return; } pending.splice(pos, 1); if (pending.length == 0) { me._queries = null; ctx.phrase = phrase; ctx.prediction = me._makePrediction...
$.each(queries[index], function (i, q) { var p = phrase[q.start]; if (!p) { p = phrase[q.start] = []; } // filter results $.each(data[q.ikey.join(" ")] || [],...
}).addCallback(function(file){ return { type : 'photo', item : ctx.title, file : file }; });
return self.selectElement(ctx).addCallback(function(elm){ var rect = elm.getBoundingClientRect(); return self.capture(win, {x: Math.round(rect.left), y: Math.round(rect.top)}, getElementDimensions(elm)); });
}).addCallback(function(file){ return { type : 'photo', item : ctx.title, file : file }; });
var binding = this.bindings.filter(function(el) { return el.type == this.bindingTypeElements[i].bindingType; } )[0];
var binding = this.bindings.results.bindings.filter(function(el) { return el.type.value == element.bindingType; } )[0];
var binding = this.bindings.filter(function(el) { return el.type == this.bindingTypeElements[i].bindingType; } )[0];
percents.each(function(it) {
data.boards.each(function(board) {
percents.each(function(it) { if (it.value == 100) { $(it.key + "_upload").update("Upload and install").disabled = false; } else { $(it.key + "_upload").update(it.value + "%").disabled = true; } });
if (it.value == 100) { $(it.key + "_upload").update("Upload and install").disabled = false; } else { $(it.key + "_upload").update(it.value + "%").disabled = true; }
var slot = board.slot; board.chips.each(function(chip) { $(chip.name + "_label_" + slot).update(chip.text); if (!percents.get(chip.name) || chip.percent < percents.get(chip)) { percents.set(chip.name, chip.percent); } });
percents.each(function(it) { if (it.value == 100) { $(it.key + "_upload").update("Upload and install").disabled = false; } else { $(it.key + "_upload").update(it.value + "%").disabled = true; } });
if (args.length > 1) dactyl.echoerr("E172: Only one file name allowed"); else io.source(args[0], args.bang);
let arg = args.literalArg; if (args.bang) arg = "!" + arg; dactyl.assert(!/((^|[^\\])(\\\\)*)!/.test(arg) || io._lastRunCommand, "E34: No previous command"); if (options["banghist"]) arg = arg.replace(/(\\)*!/g, function (m) /^\\(\\\\)*!$/.test(m) ? m.replace("\\!", "!") : m.replace("!", io._lastRunCommand) ...
function (args) { if (args.length > 1) dactyl.echoerr("E172: Only one file name allowed"); else io.source(args[0], args.bang); }, {
YUI().use('node', function(Y) { if (Y.Node.get('#shipping-checkbox').get('checked')) { Y.Node.get('#shippinginfo').setStyle('display', 'none'); } else { Y.Node.get('#shippinginfo').setStyle('display', 'block'); if (document.register.company_name) { document.register.s_company_name.value = document.register.company_name...
YUI().use( 'node', function(Y) { if (Y.Node.get( '#shipping-checkbox' ).get( 'checked' ) ) { Y.Node.get( '#shippinginfo' ).setStyle( 'display', 'none' ); } else { Y.Node.get( '#shippinginfo' ).setStyle('display', 'block' ); if ( Y.Node.get( '#s_company_name' ) && Y.Node.get( '#company_name' ) && Y.Node.get( '#company_...
YUI().use('node', function(Y) { if (Y.Node.get('#shipping-checkbox').get('checked')) { Y.Node.get('#shippinginfo').setStyle('display', 'none'); } else { Y.Node.get('#shippinginfo').setStyle('display', 'block'); if (document.register.company_name) { document.register.s_company_name.value = document...
document.register.s_zip.value = document.register.zip.value; document.register.s_phone.value = document.register.phone.value; if (Y.Node.get('#fax') && Y.Node.get('#s_fax')) { document.register.s_fax.value = document.register.fax.value; } document.register.s_email.value = document.register.email.value; document.registe...
if ( Y.Node.get( '#s_company_additional' ) && Y.Node.get( '#company_additional' ) && Y.Node.get( '#company_additional' ).get( 'value' ) != '' ) { Y.Node.get( '#s_company_additional' ).set( 'value', Y.Node.get( '#company_additional' ).get( 'value' ) ); } if ( Y.Node.get( '#s_first_name' ) && Y.Node.get( '#first_name' ...
YUI().use('node', function(Y) { if (Y.Node.get('#shipping-checkbox').get('checked')) { Y.Node.get('#shippinginfo').setStyle('display', 'none'); } else { Y.Node.get('#shippinginfo').setStyle('display', 'block'); if (document.register.company_name) { document.register.s_company_name.value = document...
function () { editor.executeCommand("cmd_deleteCharBackward", 1); });
function () { events.feedkeys("<BS>", true); });
function () { editor.executeCommand("cmd_deleteCharBackward", 1); });
return lines.map(function (l) l.join("")).join("\n").replace(/\s+\n/gm, "\n");
lines.__defineGetter__("last", function () this[this.length - 1]);
return lines.map(function (l) l.join("")).join("\n").replace(/\s+\n/gm, "\n");
function (args) { tabs.list(args[0] || ""); }, {
function () { tabs.select(0, false); },
function (args) { tabs.list(args[0] || ""); }, {
if (!events.feedingKeys && self._completions && options["autocomplete"].length) { self._completions.complete(true, false); if (self._completions) self._completions.itemList.show(); }
if (self._completions) self._completions.tab(event.shiftKey, event.altKey && options["altwildmode"]);
dactyl.trapErrors(function () { if (!events.feedingKeys && self._completions && options["autocomplete"].length) { self._completions.complete(true, false); if (self._completions) self._completions.itemList.show(); } ...
let arg = args.literalArg;
let arg = args[0] || "";
function (args) { let arg = args.literalArg; // :!! needs to be treated specially as the command parser sets the // bang flag but removes the ! from arg if (args.bang) arg = "!" + arg; // replaceable bang and no pr...
args = args.map(function(arg){ return JSON.stringify(arg); }).join(',')
}, function(res){ d.callback(res); });
args = args.map(function(arg){ return JSON.stringify(arg); }).join(',')
return request('http: if(res.responseText.match(/\srkm\s*:\s*['"](.+?)['"]/)) return self.token = RegExp.$1;
return request(Hatena.JSON).addCallback(function(res){ var data = JSON.parse(res.responseText); if(!data["login"]){ delete self['data']; throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } self.data = data; return self.data;
return request('http://d.hatena.ne.jp/edit').addCallback(function(res){ if(res.responseText.match(/\srkm\s*:\s*['"](.+?)['"]/)) return self.token = RegExp.$1; });
ret.callback(canvas.toDataURL('image/png', ''));
ret.callback({ contentType: 'image/png', base64: true, height: size.h, width : size.w, binary: canvas.toDataURL('image/png', '') });
}, function(res){ var img = new Image(); img.addEventListener('load', function(ev){ img.removeEventListener('load', arguments.callee, false); var canvas = document.createElement('canvas'); var size = {w: 0, h: 0}; if(scale){ scale = scale.w? scale.w/di...
function (args) { tabs.reloadAll(args.bang); }, {
function (args) { dactyl.quit(false, args.bang); }, {
function (args) { tabs.reloadAll(args.bang); }, {
}, function(res){ });
var post = (function(){ var ID = 0; return function(ps){ var id = "post_"+(++ID); var ret = Callbacks[id] = new Deferred(); connection.postMessage({ "type" : "post", "ps" : ps, "id" : id }); return ret; } })();
}, function(res){ });
return function(match) { return template.evaluate(match) };
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(...
return function(match) { return template.evaluate(match) };
frames.filter(function (f) f !== buffer.focusedFrame))
return frames.filter(function (f) f === buffer.focusedFrame).concat(
frames.filter(function (f) f !== buffer.focusedFrame))
return Array.concat(values).every(function (re) res.some(function (item) item[0] == re.result));
return Array.concat(values).every(function (value) res.some(function (item) item[0] == value));
return Array.concat(values).every(function (re) res.some(function (item) item[0] == re.result));
if (re.test(url) && re.result.some(function (k) k === key))
function () { return; });
if (re.test(url) && re.result.some(function (k) k === key))