rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
.addCallback(function(res){ var doc = createHTML(res.responseText); if($X('descendant::span[child::a[@href="http: throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return $X('descendant::input[contains(concat(" ",normalize-space(@name)," ")," at ")]/@value', doc)[0]; });
return d.addCallback(function(){ return self.getToken(); }).addCallback(function(token){
.addCallback(function(res){ var doc = createHTML(res.responseText); if($X('descendant::span[child::a[@href="http://friendfeed.com/account/login"]]', doc)[0]){ throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return $X('descendant::input[contains(concat(" ",normal...
commandline.runSilently(function () commands.execute(args[0] || "", null, true));
function () { events.onEscape(); });
commandline.runSilently(function () commands.execute(args[0] || "", null, true));
return '#<Hash:{' + this.map(function(pair) { return pair.map(Object.inspect).join(': '); }).join(', ') + '}>';
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 '#<Hash:{' + this.map(function(pair) { return pair.map(Object.inspect).join(': '); }).join(', ') + '}>';
storage["history-command"].mutate("filter", function (item) !(timespan.contains(item.timestamp) && (!host || commands.hasDomain(item.value, host))));
function () { dactyl.assert(commandline._lastMowOutput, "No previous command output"); commandline._echoMultiline(commandline._lastMowOutput, commandline.HL_NORMAL); });
storage["history-command"].mutate("filter", function (item) !(timespan.contains(item.timestamp) && (!host || commands.hasDomain(item.value, host))));
function (count) { buffer._scrollByScrollSize(count, false); },
function (count) { buffer._scrollByScrollSize(count, true); },
function (count) { buffer._scrollByScrollSize(count, false); },
dactyl.echoerr("Exxx: No extension matching \"" + filter + "\"");
dactyl.echoerr("Exxx: No extension matching " + filter.quote());
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.lo...
$$(".dcc_registers_checkbox").each(function(element) {
$$(".ddu_registers_checkbox").each(function(element) {
$$(".dcc_registers_checkbox").each(function(element) { element.checked = true; });
function () { editor.expandAbbreviation(modes.COMMAND_LINE); });
function () { commandline.resetCompletions(); editor.expandAbbreviation(modes.COMMAND_LINE); return true; },
function () { editor.expandAbbreviation(modes.COMMAND_LINE); });
function (args) { events.feedkeys(args.string, args.bang); },
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) { liberator.dump(extensions); if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); liberator.dump(extensions); if (extensions.length > 0) { let list = template.tabular( ["Name", "Vers...
function (args) { events.feedkeys(args.string, args.bang); },
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); if (extensions.length > 0) { let list = template.tabular(...
context.filters.push(function ({ item: e }) e.isActive && e.optionsURL);
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.lo...
function (count) { liberator.assert(count > 0 && count <= 100); buffer.scrollToPercent(buffer.scrollXPercent, count); },
function (count) { buffer.scrollToPercent(buffer.scrollXPercent, count != null ? count : 100); },
function (count) { liberator.assert(count > 0 && count <= 100); buffer.scrollToPercent(buffer.scrollXPercent, count); },
['recommended', 'popular'].forEach(function(prop){ res[prop].forEach(function(cand){
res[prop].forEach(function(cand){
['recommended', 'popular'].forEach(function(prop){ res[prop].forEach(function(cand){ var upCand = cand.toUpperCase(); if(!(upCand in suggestions)){ suggestions[upCand] = true; if(upCand in memo){ cand = memo[upCand]; var sug = $N('p', { class: ...
});
['recommended', 'popular'].forEach(function(prop){ res[prop].forEach(function(cand){ var upCand = cand.toUpperCase(); if(!(upCand in suggestions)){ suggestions[upCand] = true; if(upCand in memo){ cand = memo[upCand]; var sug = $N('p', { class: ...
AddonManager.getAddonsByTypes(["extension"], dactyl.wrapCallback(function (list) { if (!args.bang) list = list.filter(function (extension) extension.name == name); if (!args.bang && !list.every(ok)) return dactyl.echoerr("Permission denied"); if (command.actions) command.actions(list); else list.forEach(command.action)...
list = list.filter(function (extension) extension.name == name);
AddonManager.getAddonsByTypes(["extension"], dactyl.wrapCallback(function (list) { if (!args.bang) list = list.filter(function (extension) extension.name == name); if (!args.bang && !list.every(ok)) r...
indicator = "%"
indicator = "%";
context.fork(id, 0, this, function (context, [name, browsers]) { context.title = [name || "Buffers"]; context.generate = function () util.map(array.iterValues(browsers), function ([i, browser]) { let indicator = " ";...
chrome.bookmarks.getTree(function(tree){ var top = tree[0].children[1]; var ex; if(top.children.some(function(obj){
if(top.children.some(function(obj){
chrome.bookmarks.getTree(function(tree){ var top = tree[0].children[1]; var ex; if(top.children.some(function(obj){ if(obj.title === 'TBRL'){ ex = obj; return true; } else { return false; } })){ ret.callback(ex); } else { chrome....
ret.callback(ex); } else { chrome.bookmarks.create({ parentId: top.id, title : 'TBRL' }, function(obj){ ret.callback(obj); }); } });
chrome.bookmarks.getTree(function(tree){ var top = tree[0].children[1]; var ex; if(top.children.some(function(obj){ if(obj.title === 'TBRL'){ ex = obj; return true; } else { return false; } })){ ret.callback(ex); } else { chrome....
context.fork("additional", 0, this, function (context) { context.title[0] += " (additional)"; context.filter = context.parent.filter; context.completions = context.parent.completions; let match = context.filters[0]; context.filters[0] = function (item) !match.call(this, item); let tokens = context.filter.split(/\s+...
every(function (tag) (item.tags || []). some(function (t) !compare(tag, t))));
context.fork("additional", 0, this, function (context) { context.title[0] += " (additional)"; context.filter = context.parent.filter; // FIXME context.completions = context.parent.completions; // For items whose URL doesn't exactly match the filter, // acce...
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,k,m){if(typeof k...
if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAl...
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,k,m){if(typeof k...
context.filters.push(function ({ item }) item.isActive && item.optionsURL);
function (args) { function addonExtra(e) { let extra; if (e.pendingOperations & AddonManager.PENDING_UNINSTALL) extra = ["Disabled", "uninstalled"]; else if (e.pendingOperations & AddonManager.PENDING_DISABLE) extra = ["Disabled", "disabled"]; else if (e.pendingOperations & AddonManager.PENDING_INSTALL) extra = ["Enabl...
context.filters.push(function ({ item }) item.isActive && item.optionsURL);
function (args) { if (args.bang) { liberator.open("chrome: { from: "javascript" }); } else { try { liberator.eval(args.string); } catch (e) { liberator.echoerr(e); } } }, {
function () { liberator.loadPlugins(); },
function (args) { if (args.bang) { // open JavaScript console liberator.open("chrome://global/content/console.xul", { from: "javascript" }); } else { try { liberator.eval(args.str...
return this.getToken().addCallback(function(token){ return request('https: sendContent : { at : token, link : ps.pageUrl, title : ps.page, image0 : ps.type === 'photo'? ps.itemUrl : '', comment : joinText([ps.body, ps.description], ' ', true) }
}).addCallback(function(token){ return request(self.POST_URL, { redirectionLimit : 0, sendContent : update(token, { saveQuicknote : 'save', format : 'microclip', url : ps.itemUrl || 'no url', title : ps.item || 'no title', comment : ps.description, body : getFlavor(ps, 'html'), tags : joinText(...
return this.getToken().addCallback(function(token){ return request('https://friendfeed.com/a/bookmarklet', { //denyRedirection: true, sendContent : { at : token, link : ps.pageUrl, title : ps.page, image0 : ps.type === 'photo'? ps.itemUrl : '', ...
extensions.sort(function (a, b) String.localeCompare(a.name, b.name));
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); if (extensions.length > 0) { ...
function () { events.onEscape(); });
function () { commandline.resetCompletions(); editor.expandAbbreviation(modes.COMMAND_LINE); return true; },
function () { events.onEscape(); });
function() {return new XMLHttpRequest()},
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(...
function() {return new XMLHttpRequest()},
liberator.dump(extensions);
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) { liberator.dump(extensions); if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); ...
storage["history-command"].mutate("filter", function (item) !(timespan.contains(item.timestamp) && (host ? commands.hasDomain(item.value, host) : item.privateData)));
storage["history-search"].mutate("filter", function (item) !timespan.contains(item.timestamp));
storage["history-command"].mutate("filter", function (item) !(timespan.contains(item.timestamp) && (host ? commands.hasDomain(item.value, host) : item.privateData)));
function (count) { buffer.scrollPages(-Math.max(count, 1)); },
function (count) { buffer._scrollByScrollSize(count, false); },
function (count) { buffer.scrollPages(-Math.max(count, 1)); },
dactyl.echoerr("Exxx: No extension matching \"" + filter + "\"");
dactyl.echoerr("Exxx: No extension matching " + filter.quote());
AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name));...
$("no_dcc_registers").observe("click", function(ev) { $$(".dcc_registers_checkbox").each(function(element) {
$("no_ddu_registers").observe("click", function(ev) { $$(".ddu_registers_checkbox").each(function(element) {
$("no_dcc_registers").observe("click", function(ev) { $$(".dcc_registers_checkbox").each(function(element) { element.checked = false; }); });
function (args) { Liberator.showHelpIndex("option-index", options, args.bang); }, {
AddonManager.getAddonsByTypes(["extension"], function (extensions) { liberator.dump(extensions); if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); liberator.dump(extensions); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "D...
function (args) { Liberator.showHelpIndex("option-index", options, args.bang); }, {
AddonManager.getAddonsByTypes(["extension"], function (extensions) {
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) {
AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name));...
},
AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name));...
function (count) { buffer._scrollByScrollSize(count, true); },
function (count) { liberator.assert(count > 0 && count <= 100); buffer.scrollToPercent(buffer.scrollXPercent, count); },
function (count) { buffer._scrollByScrollSize(count, true); },
res[prop].forEach(function(cand){ var upCand = cand.toUpperCase(); if(!(upCand in suggestions)){ suggestions[upCand] = true; if(upCand in memo){ cand = memo[upCand]; var sug = $N('p', { class: 'suggestion listed' }, cand); } else { var sug = $N('p', { class: 'suggestion' }, cand); } self.elmTags[cand] = sug; connect(su...
connect(sug, 'onclick', cand, function(ev){
res[prop].forEach(function(cand){ var upCand = cand.toUpperCase(); if(!(upCand in suggestions)){ suggestions[upCand] = true; if(upCand in memo){ cand = memo[upCand]; var sug = $N('p', { class: 'suggestion listed' }, cand); } el...
df.appendChild(sug); } });
res[prop].forEach(function(cand){ var upCand = cand.toUpperCase(); if(!(upCand in suggestions)){ suggestions[upCand] = true; if(upCand in memo){ cand = memo[upCand]; var sug = $N('p', { class: 'suggestion listed' }, cand); } el...
indicator = "%"
indicator = "%";
util.map(array.iterValues(browsers), function ([i, browser]) { let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i == tabs.index(tabs.alternate)) ...
function () { commandline.open(":", "goto ", modes.EX); });
function () { commandline.open("", "goto ", modes.EX); });
function () { commandline.open(":", "goto ", modes.EX); });
if(top.children.some(function(obj){ if(obj.title === 'TBRL'){ ex = obj; return true; } else { return false; } })){
}, function(obj){ ret.callback(obj); });
if(top.children.some(function(obj){ if(obj.title === 'TBRL'){ ex = obj; return true; } else { return false; } })){
host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
this.timeout(function () { this._container.height -= commandline.getSpaceNeeded(); }, 0);
host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
context.filters[0] = function (item) !match.call(this, item);
some(function (t) !compare(tag, t))));
context.filters[0] = function (item) !match.call(this, item);
cb=/,/;R=Array.prototype.slice;var Fa=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,i){return!!b.call(e,i,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Pa.test(b))return c.filter(b,f,!d);else ...
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l...
cb=/,/;R=Array.prototype.slice;var Fa=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,i){return!!b.call(e,i,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Pa.test(b))return c.filter(b,f,!d);else ...
function (args) { function addonExtra(e) { let extra; if (e.pendingOperations & AddonManager.PENDING_UNINSTALL) extra = ["Disabled", "uninstalled"]; else if (e.pendingOperations & AddonManager.PENDING_DISABLE) extra = ["Disabled", "disabled"]; else if (e.pendingOperations & AddonManager.PENDING_INSTALL) extra = ["Enabl...
AddonManager.getAddonsByTypes(["extension"], function (extensions) {
function (args) { function addonExtra(e) { let extra; if (e.pendingOperations & AddonManager.PENDING_UNINSTALL) extra = ["Disabled", "uninstalled"]; else if (e.pendingOperations & AddonManager.PENDING_DISABLE) ...
},
function (args) { function addonExtra(e) { let extra; if (e.pendingOperations & AddonManager.PENDING_UNINSTALL) extra = ["Disabled", "uninstalled"]; else if (e.pendingOperations & AddonManager.PENDING_DISABLE) ...
function () { liberator.loadPlugins(); },
function (args) { events.feedkeys(args.string, args.bang); },
function () { liberator.loadPlugins(); },
).addCallback(function(status){ return Twitter.getToken().addCallback(function(token){ token.status = status; return request(self.URL + '/status/update', update({ sendContent : token })); }).addCallback(function(res){ var msg = res.responseText.extract(/notification.setMessage\("(.*?)"\)/); if(msg) throw unescapeHTML(...
}).addCallback(function(res){ var doc = createHTML(res.responseText); if($X('id("login_form")', doc)[0]) throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); return { _sourcePage : $X(' __fp : $X(' noteBookGuide : $X(' };
).addCallback(function(status){ return Twitter.getToken().addCallback(function(token){ // FIXME: 403が発生することがあったため redirectionLimit:0 を外す token.status = status; return request(self.URL + '/status/update', update({ sendContent : token })); }).addCallback(function(res){ ...
var haystack = sortStringValues(a);
var haystack = sortStringValues(this, a);
.define("not-equals", t.BOOLEAN, [ t.NODE_SET, t.NODE_SET ], function(a, b) { var haystack = sortStringValues(a); return !eachAsString(this, b, function() { if (haystack[binarySearch(haystack, this)] != this) return false; }); })
extensions.sort(function (a, b) String.localeCompare(a.name, b.name));
AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); if (extensions.length > 0) { let list = templat...
function () { commandline.resetCompletions(); editor.expandAbbreviation(modes.COMMAND_LINE); return true; },
function () { editor.expandAbbreviation(modes.COMMAND_LINE); });
function () { commandline.resetCompletions(); editor.expandAbbreviation(modes.COMMAND_LINE); return true; },
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
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(...
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
liberator.dump(extensions);
AddonManager.getAddonsByTypes(["extension"], function (extensions) { liberator.dump(extensions); if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); liberator.dump(extensio...
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))));
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))));
BOOL: ArgType("boolean", function (val) Commands.parseBool(val)),
this.longNames = parsedSpecs.map(function (n) n[0]);
BOOL: ArgType("boolean", function (val) Commands.parseBool(val)),
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(false, title, url, keyword, tags, args.bang)) { let extra = (title == url) ? "" : " (...
return dactyl.open(items.map(function (i) i.url), dactyl.NEW_TAB);
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...
function (args) { completion.listCompleter("macro", args[0]); }, {
this.timeout(function () { dactyl.echomsg("Canceled playback of macro '" + this._lastMacro + "'"); }, 100);
function (args) { completion.listCompleter("macro", args[0]); }, {
!freshnessLifetimeGreaterThan(headers, msInAMonth);
!freshnessLifetimeGreaterThan(headers, msInAMonth - 1);
function(url, headers, type) { // Its not reasonable to suggest that the favicon be a year // in the future because sometimes the path cannot be // controlled. However, it is very reasonable to suggest a // month. ...
function (args) { liberator.assert( args.bang || args.string, "E471: Argument required"); liberator.assert(!args.bang || !args.string, "E474: Invalid argument"); if (args.bang) quickmarks.removeAll(); else quickmarks.remove(args.string); },
let numberMarks = marks.filter(function (x) /[0-9]/.test(x)).sort();
function (args) { // TODO: finish arg parsing - we really need a proper way to do this. :) // assert(args.bang ^ args.string) liberator.assert( args.bang || args.string, "E471: Argument required"); liberator.assert(!args.bang || !args.string, "E47...
equals(view.$('.sc-inner').css("width"), "100%", 'width should be 100%');
equals(view.$('.sc-inner')[0].style.width, "100%", 'width should be 100%');
test("basic value 100", function() { var view = pane.view('progress basic value 100'); ok(!view.$().hasClass('disabled'), 'should NOT have disabled class'); ok(view.$('.sc-inner'), 'should have sc-inner class'); equals(view.$('.sc-inner').css("width"), "100%", 'width should be 100%'); equals(view.$('.sc-inner'...
equals(cq.hasClass("mixed"), NO, "should not all have mixed class");
var allHaveMixed = YES; cq.each(function(el){ if (!SC.$(el).hasClass('mixed')) allHaveMixed = NO; }); equals(allHaveMixed, NO, "should not all have mixed class");
test("setClass(mixed, YES) should work across multiple", function() { var cq = SC.$('<div class="root">\ <div class="mixed match"></div>\ <div class="match"></div>\ </div>').find('.match'); equals(cq.length, 2, 'should have two items'); equals(cq.hasClass("mixed"), NO, "should not all have mixed class"); c...
allHaveMixed = YES; cq.each(function(el){ if (!SC.$(el).hasClass('mixed')) allHaveMixed = NO; });
test("setClass(mixed, YES) should work across multiple", function() { var cq = SC.$('<div class="root">\ <div class="mixed match"></div>\ <div class="match"></div>\ </div>').find('.match'); equals(cq.length, 2, 'should have two items'); equals(cq.hasClass("mixed"), NO, "should not all have mixed class"); c...
bt_create_security_group.target.bind('click',function(){ bt_create_security_group.open();
c_pagenate.element.bind('dcmgrGUI.updatePagenate',function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh');
bt_create_security_group.target.bind('click',function(){ bt_create_security_group.open(); });
SC.RunLoop.end();
test("handles timing function string", function(){ view.animate('left', 100, { duration: 1, timing: 'ease-in' }); equals(transitionFor(view), 'left 1s ease-in', 'uses ease-in timing'); });
cls.prototype = new proto(parent ? function(context, method, args) { var args = args || []; var target = proto; while(target = target.prototype) { if(target[method]) { return target[method].apply(context, args);
var Logger = exports.Class(function() { this.init = function(name, level) { this._name = name; this._level = level || logging.LOG; this._listener = exports.log; } this.setLevel = function(level) { this._level = level; } function makeLogFunction(level, type) { return function() { if (!production && level >= this._leve...
cls.prototype = new proto(parent ? function(context, method, args) { var args = args || []; var target = proto; while(target = target.prototype) { if(target[method]) { return target[method].apply(context, args); } } throw new Error('method ' + method + ' does not exist'); } : null);
throw new Error('method ' + method + ' does not exist'); } : null);
this.setListener = function(listener) { log = listener; } this.debug = makeLogFunction(logging.DEBUG, "DEBUG"); this.log = makeLogFunction(logging.LOG, "LOG"); this.info = makeLogFunction(logging.INFO, "INFO"); this.warn = makeLogFunction(logging.WARN, "WARN"); this.error = makeLogFunction(logging.ERROR, "ERROR"); });
cls.prototype = new proto(parent ? function(context, method, args) { var args = args || []; var target = proto; while(target = target.prototype) { if(target[method]) { return target[method].apply(context, args); } } throw new Error('method ' + method + ' does not exist'); } : null);
bt_instance_reboot.target.bind('click',function(){ bt_instance_reboot.open(c_list.getCheckedInstanceIds());
bt_instance_terminate.target.bind('click',function(){ bt_instance_terminate.open(c_list.getCheckedInstanceIds());
bt_instance_reboot.target.bind('click',function(){ bt_instance_reboot.open(c_list.getCheckedInstanceIds()); });
let alternate = tabs.alternate;
function (args) { let alternate = tabs.alternate; try { dactyl.execute(args[0], null, true); } finally { tabs.updateSelectionHistory([tabs.getTab(), alternate]); } }, {
tabs.updateSelectionHistory([tabs.getTab(), alternate]);
dactyl.forceNewTab = force;
function (args) { let alternate = tabs.alternate; try { dactyl.execute(args[0], null, true); } finally { tabs.updateSelectionHistory([tabs.getTab(), alternate]); } }, {
ok(!r[0].hasClass('active'), 'radio button should no longer be active');
ok(!r.first().hasClass('active'), 'radio button should no longer be active');
test("pressing mouseDown and then mouseUp anywhere in a radio button should toggle the selection", function() { var elem = view.get('layer'), r = view.$('.sc-radio-button'); SC.Event.trigger(r[0], 'mousedown'); equals(view.get('value'), 'Red', 'value should not change yet'); ok(r.first().hasClass('active'), '...
let msg = Array.map(arguments, function (msg) { if (typeof msg == "object") msg = util.objectToString(msg); return msg; }).join(", ");
setTimeout(function () { popup.hidePopup(); }, 20);
let msg = Array.map(arguments, function (msg) { if (typeof msg == "object") msg = util.objectToString(msg); return msg; }).join(", ");
}, function(){},_charts[i]);
this.Data.ajax_getData_sync('chartData_'+i, _charts[i].dataURL, _charts[i].dataURL_params(this.Data), getData, function(){},_charts[i]);
}, function(){},_charts[i]);
delayedCommandTimeout = null; },
createCompletionListPending = false; if (createCompletionListQueued) { createCompletionListQueued = false; delayedCommandTimeout = setTimeout(arguments.callee, options.displayDelayTime); } }, options.displayDelayTime);
function () { createCompletionList(); delayedCommandTimeout = null; },
ok(dataSource.isView, "Render delegate should get passed a view for its data source");
ok(dataSource.isViewRenderDelegateProxy, "Render delegate should get passed a view's proxy for its data source");
test("Views that do not override render should render their child views", function() { var newStyleCount = 0, oldStyleCount = 0, renderDelegateCount = 0; var parentView = SC.View.design({ childViews: 'newStyle oldStyle renderDelegateView'.w(), newStyle: SC.View.design({ render: function(context) { ...
command = "cd /D " + this._cwd.path + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path;
command = "cd /D " + this.cwd + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path;
return this.withTempFiles(function (stdin, stdout, cmd) { if (input) stdin.write(input); // TODO: implement 'shellredir' if (dactyl.has("WINNT")) { command = "cd /D " + this._cwd.path + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdi...
cmd.write("cd " + escape(this._cwd.path) + "\n" +
cmd.write("cd " + escape(this.cwd) + "\n" +
return this.withTempFiles(function (stdin, stdout, cmd) { if (input) stdin.write(input); // TODO: implement 'shellredir' if (dactyl.has("WINNT")) { command = "cd /D " + this._cwd.path + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdi...
return this.withTempFiles(function (stdin, stdout, cmd) { if (input instanceof File) stdin = input; else if (input) stdin.write(input);
this.withSavedValues(["sourcing"], function () { this.sourcing = null; try { var file = io.File(filename);
return this.withTempFiles(function (stdin, stdout, cmd) { if (input instanceof File) stdin = input; else if (input) stdin.write(input); let shell = File.expandPath(options["shell"]); // TODO: implement 'shellredir' if (util.OS....
let shell = File.expandPath(options["shell"]); if (util.OS.isWindows && !/sh/.test(options["shell"])) { command = "cd /D " + this.cwd + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path; var res = this.run(shell, options["shellcmdflag"].split(/\s+/).concat(command), true);
if (!file.exists() || !file.isReadable() || file.isDirectory()) { if (!silent) dactyl.echoerr("E484: Can't open file " + filename.quote()); return; } dactyl.echomsg("sourcing " + filename.quote(), 2); let uri = services.io.newFileURI(file); if (/\.js$/.test(filename)) { try { dactyl.loadScript(uri.spec, Script(file...
return this.withTempFiles(function (stdin, stdout, cmd) { if (input instanceof File) stdin = input; else if (input) stdin.write(input); let shell = File.expandPath(options["shell"]); // TODO: implement 'shellredir' if (util.OS....
else { cmd.write("cd " + escape(this.cwd) + "\n" + ["exec", ">" + escape(stdout.path), "2>&1", "<" + escape(stdin.path), escape(shell), options["shellcmdflag"], escape(command)].join(" ")); res = this.run("/bin/sh", ["-e", cmd.path], true);
catch (e) { if (!(e instanceof FailedAssertion)) dactyl.reportError(e); let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e); if (!silent) dactyl.echoerr(message);
return this.withTempFiles(function (stdin, stdout, cmd) { if (input instanceof File) stdin = input; else if (input) stdin.write(input); let shell = File.expandPath(options["shell"]); // TODO: implement 'shellredir' if (util.OS....
let output = stdout.read(); if (res > 0) output += "\nshell returned " + res; else if (output) output = output.replace(/^(.*)\n$/, "$1"); return output; }) || "";
finally { defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms"); } });
return this.withTempFiles(function (stdin, stdout, cmd) { if (input instanceof File) stdin = input; else if (input) stdin.write(input); let shell = File.expandPath(options["shell"]); // TODO: implement 'shellredir' if (util.OS....
[function (aIndex) { if (aIndex >= 0) { command.setClipboardText(collection[aIndex][HB_COMMENT]); } },
return uniq(tag.split(" ").filter(function (s) !!s)).map(function (t) "[" + t + "]").join("");
[function (aIndex) { if (aIndex >= 0) { command.setClipboardText(collection[aIndex][HB_COMMENT]); } },
Event.observe(dragger, 'mouseup', function() {
Event.observe(dragger, 'mousedown', function(evt) { offSet = resizedObj.getHeight()-Event.pointerY(evt); mouseMoveHandler = evtHandler.mouseMove.bindAsEventListener(evtHandler); Event.observe(dragger, 'mouseup', function() {
Event.observe(dragger, 'mouseup', function() { // unregister mouse move event handler Event.stopObserving(dragger, 'mousemove', mouseMoveHandler); });
Event.observe(dragger, 'mouseout', function() { Event.stopObserving(dragger, 'mousemove', mouseMoveHandler); }); Event.observe(dragger, 'mousemove', mouseMoveHandler); });
Event.observe(dragger, 'mouseup', function() { // unregister mouse move event handler Event.stopObserving(dragger, 'mousemove', mouseMoveHandler); });
$('#dataTable_0_paginate input').keyup( function() { _config.fnContentChange(this); if (_config.expandableRows) _expandClick(dTable); } );
$('#dataTable_'+elCnt+'_paginate input,#dataTable_'+elCnt+'_filter input').keyup( function() { _config.fnContentChange(this); if (_config.expandableRows) _expandClick(dTable); } );
$('#dataTable_0_paginate input').keyup( function() { _config.fnContentChange(this); if (_config.expandableRows) _expandClick(dTable); } );
function (args) { liberator.assert(!args.bang || !args.string, "E474: Invalid argument"); if (args.bang) events.deleteMacros(); else if (args.string) events.deleteMacros(args.string); else liberator.echoerr("E471: Argument required"); }, {
liberator.trapErrors(function () { commandline.onEvent(event); });
function (args) { liberator.assert(!args.bang || !args.string, "E474: Invalid argument"); if (args.bang) events.deleteMacros(); else if (args.string) events.deleteMacros(args.string); else li...
if (_charts[i].ajax) thisRef.Data.ajax_getData_charts(_charts[i].dataURL, _charts[i].dataURL_params(thisRef.Data), function(data, chart){getData(data, chart);}, function(){},_charts[i]);}
}, function(){},_charts[i]);
if (_charts[i].ajax) thisRef.Data.ajax_getData_charts(_charts[i].dataURL, _charts[i].dataURL_params(thisRef.Data), function(data, chart){getData(data, chart);}, function(){},_charts[i]);}
c_pagenate.element.bind('dcmgrGUI.updatePagenate',function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh');
bt_launch_instance.target.bind('click',function(){ var id = c_list.currentChecked(); if( id ){ bt_launch_instance.open(id); } return false;
c_pagenate.element.bind('dcmgrGUI.updatePagenate',function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh'); });
test("isSelected should alter sel classname and sync with value property", function() { ok(view.get('isSelected'), 'isSelected should match value'); ok(view.$().hasClass('sel'), 'should have sel class');
test("isEnabled=NO should add disabled class", function() {
test("isSelected should alter sel classname and sync with value property", function() { // check initial render state ok(view.get('isSelected'), 'isSelected should match value'); ok(view.$().hasClass('sel'), 'should have sel class'); // update value -- make sure isSelected changes. SC.RunLoop.begin(); view.set(...
view.set('value', 0);
view.set('isEnabled', NO);
test("isSelected should alter sel classname and sync with value property", function() { // check initial render state ok(view.get('isSelected'), 'isSelected should match value'); ok(view.$().hasClass('sel'), 'should have sel class'); // update value -- make sure isSelected changes. SC.RunLoop.begin(); view.set(...
ok(!view.get('isSelected'), 'isSelected should now be NO'); ok(!view.$().hasClass('sel'), 'should no longer have sel class'); equals(view.$().attr('aria-checked'), 'false', 'input should not be checked'); SC.RunLoop.begin(); view.set('isSelected', YES); SC.RunLoop.end(); ok(view.get('isSelected'), 'isSelected should...
ok(view.$().hasClass('disabled'), 'should have disabled class');
test("isSelected should alter sel classname and sync with value property", function() { // check initial render state ok(view.get('isSelected'), 'isSelected should match value'); ok(view.$().hasClass('sel'), 'should have sel class'); // update value -- make sure isSelected changes. SC.RunLoop.begin(); view.set(...
this._walk(container_nodes, function(n) { if (n.nodeType == 3 && !parent.isMarkedNode(n)) nl.push(n);
this.map(this.ignore_types, function(type) { types[type] = 1;
this._walk(container_nodes, function(n) { if (n.nodeType == 3 && !parent.isMarkedNode(n)) nl.push(n); });
equals(context.classNames(), result, "should reuse same instance thereafter");
test("extracts class names from element on first retrieval", function() { var elem = document.createElement('div'); SC.$(elem).attr('class', 'foo bar'); context = SC.RenderContext(elem); var result = context.classNames(); same(result, ['foo', 'bar'], 'extracted class names'); equals(context.classNames(), resu...
url:DcmgrGUI.Util.getPagePath('/volumes/list/',check_id)
url:DcmgrGUI.Util.getPagePath('/volumes/show/',check_id)
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ c_list.page = c_pagenate.current_page; list_request.url = DcmgrGUI.Util.getPagePath('/volumes/list/',c_list.page); list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page,c_list.maxrow) c_list.element.trigger('dcmgrGUI.updateList',{request:list_...
var CSPError = Class(AssertionError, function (supr) { this.name = 'CSPError' this.init = function (code) { supr(this, 'init', args); this.code = code; var args = Array.prototype.slice.call(arguments, 1); }; });
.addCallback(function(content){ response.sendHeader(200, {'Content-Type' : 'text/plain', 'Content-Length' : content.length}); response.sendBody(content); response.finish(); })
var CSPError = Class(AssertionError, function (supr) { this.name = 'CSPError' this.init = function (code/*, other args */) { supr(this, 'init', args); this.code = code; var args = Array.prototype.slice.call(arguments, 1); }; });
$.each(c_list.checked_list,function(check_id,obj){
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ list_request.url = DcmgrGUI.Util.getPagePath('/volumes/show/',c_pagenate.current_page); c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) $.each(c_list.checked_list,function(check_id,obj){
$.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('/volumes/detail/',check_id) },true); });
});
$.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('/volumes/detail/',check_id) },true); });
if (dactyl.has("Win32")) {
if (dactyl.has("WINNT")) {
return this.withTempFiles(function (stdin, stdout, cmd) { if (input) stdin.write(input); // TODO: implement 'shellredir' if (dactyl.has("Win32")) { command = "cd /D " + this._cwd.path + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdi...
if (!el.hasClassName("broadcast")) el.disabled = false;
if (!el.hasClassName("broadcast")) el.enable();
$$("input[chip=\"" + ev.element().readAttribute("chip") + "\"]").each(function(el) { if (!el.hasClassName("broadcast")) el.disabled = false; });
}, function(res){ d.callback(res);
connect(window, 'onDOMContentLoaded', window, function(ev){ getSelected().addCallback(function(tab){ if(isPopup && background.TBRL.Popup.contents[tab.url]){ main.callback(background.TBRL.Popup.contents[tab.url]); } else if(isPopup){ getPsInfo(tab).addCallback(function(ps){ main.callback(ps); }); } else { main.callback(...
}, function(res){ d.callback(res); });
});
}, function(res){ d.callback(res); });
var binding = this.bindings.results.bindings.filter(function(el) { return el.binding.value == variables[i].binding.value; } )[0];
var bindingType = Report.bindingTypes.results.bindings.filter(function(el) { return el.type.value == variables[i].bindingType.value; } )[0];
var binding = this.bindings.results.bindings.filter(function(el) { return el.binding.value == variables[i].binding.value; } )[0];
io.withSavedValues(["sourcing"], function () { io.sourcing = sourcing || io.sourcing; command.execute(args, modifiers); });
let files = findHelpFile("all").map(function (doc) [f.value for (f in util.evaluateXPath("
io.withSavedValues(["sourcing"], function () { io.sourcing = sourcing || io.sourcing; command.execute(args, modifiers); });