rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
for (var i in this.variables)
for (var i = 0; i < this.variables.length; i++)
function Binding(report, visualization, variables){ var binding = this;//alert(Report.bindingTypes.toSource()); this.report = report; this.visualization = visualization; //this.control = control; var bindingType = Report.bindingTypes.filter(function(bindingType) { return bindingType.type.value == binding...
for ([k, v] in iter(params.apply(this, args)))])
for ([k, v] in iter(params.apply(self, args)))])
bindMacro: function (args, default_, params) { let process = util.identity; if (callable(params)) function makeParams(self, args) array.toObject([[k, process(v)] for ([k, v] in iter(params.apply(this, args)))]) else if (params) ...
rhs = events.canonicalKeys(rhs);
rhs = events.canonicalKeys(rhs, true);
bindMacro: function (args, default_, params) { let makeParams = function makeParams() let (args = arguments) params.map(function (name, i) [name, args[i]]).toObject(); if (callable(params)) makeParams = params; else params = array(params); ...
let makeParams = function makeParams() let (args = arguments) params.map(function (name, i) [name, process(args[i])]).toObject();
bindMacro: function (args, default_, params) { let process = util.identity; let makeParams = function makeParams() let (args = arguments) params.map(function (name, i) [name, process(args[i])]).toObject(); if (callable(params)) makeParams = function makePara...
makeParams = function makeParams(args) array(Iterator(params.apply(this, arguments))).map(function ([k, v]) [k, process(v)]).toObject();
function makeParams(self, args) array.toObject([[k, process(v)] for ([k, v] in iter(params.apply(this, args)))])
bindMacro: function (args, default_, params) { let process = util.identity; let makeParams = function makeParams() let (args = arguments) params.map(function (name, i) [name, process(args[i])]).toObject(); if (callable(params)) makeParams = function makePara...
params = array(params);
function makeParams(self, args) array.toObject([[name, process(args[i])] for ([i, name] in Iterator(params))]);
bindMacro: function (args, default_, params) { let process = util.identity; let makeParams = function makeParams() let (args = arguments) params.map(function (name, i) [name, process(args[i])]).toObject(); if (callable(params)) makeParams = function makePara...
var action = function action(args) events.feedkeys(action.macro(args), noremap, silent);
var action = function action() events.feedkeys(action.macro(makeParams(this, arguments)), noremap, silent);
bindMacro: function (args, default_, params) { let process = util.identity; let makeParams = function makeParams() let (args = arguments) params.map(function (name, i) [name, process(args[i])]).toObject(); if (callable(params)) makeParams = function makePara...
action = function action() commands.execute(action.macro, makeParams.apply(this, arguments),
action = function action() commands.execute(action.macro, makeParams(this, arguments),
bindMacro: function (args, default_, params) { let process = util.identity; let makeParams = function makeParams() let (args = arguments) params.map(function (name, i) [name, process(args[i])]).toObject(); if (callable(params)) makeParams = function makePara...
action = dactyl.userEval("(function action() { with (action.makeParams.apply(this, arguments)) {" + args.literalArg + "} })");
action = dactyl.userEval("(function action() { with (action.makeParams(this, arguments)) {" + args.literalArg + "} })");
bindMacro: function (args, default_, params) { let process = util.identity; let makeParams = function makeParams() let (args = arguments) params.map(function (name, i) [name, process(args[i])]).toObject(); if (callable(params)) makeParams = function makePara...
let macro = util.compileMacro(rhs, true); var action = function action(count) events.feedkeys(macro({ count: count }),
var action = function action(count) events.feedkeys(action.macro({ count: count || "" }),
bindMacro: function (args, default_, params) { let process = util.identity; let makeParams = function makeParams() let (args = arguments) params.map(function (name, i) [name, process(args[i])]).toObject(); if (callable(params)) makeParams = function makePara...
macro = util.compileMacro(rhs, true); action = function action() commands.execute(macro, makeParams.apply(this, arguments),
action = function action() commands.execute(action.macro, makeParams.apply(this, arguments),
bindMacro: function (args, default_, params) { let process = util.identity; let makeParams = function makeParams() let (args = arguments) params.map(function (name, i) [name, process(args[i])]).toObject(); if (callable(params)) makeParams = function makePara...
action.macro = util.compileMacro(rhs, true);
bindMacro: function (args, default_, params) { let process = util.identity; let makeParams = function makeParams() let (args = arguments) params.map(function (name, i) [name, process(args[i])]).toObject(); if (callable(params)) makeParams = function makePara...
action = dactyl.userEval("(function action() { with (action.makeParams.apply(this, arguments)) {" + args.literalArg + "} })")
action = dactyl.userEval("(function action() { with (action.makeParams.apply(this, arguments)) {" + args.literalArg + "} })");
bindMacro: function (args, default_, params) { let process = util.identity; let makeParams = function makeParams() let (args = arguments) params.map(function (name, i) [name, process(args[i])]).toObject(); if (callable(params)) makeParams = function makePara...
o}return a};c.extend({noConflict:function(a){A.$=Na;if(a)A.jQuery=Ma;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;i...
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHan...
o}return a};c.extend({noConflict:function(a){A.$=Na;if(a)A.jQuery=Ma;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;i...
blank: function() { return /^\s*$/.test(this); },
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(...
blank: function() { return /^\s*$/.test(this); },
completion.bookmark = function bookmark(context, tags, extra) {
completion.bookmark = function bookmark(context, args, tags, extra) {
completion.bookmark = function bookmark(context, tags, extra) { context.title = ["Bookmark", "Title"]; context.format = bookmarks.format; forEach(iter(extra || {}), function ([k, v]) { if (v != null) context.filters.push(function (item) item.ite...
completion.urls(context, tags);
completion.urls(context, args, tags);
completion.bookmark = function bookmark(context, tags, extra) { context.title = ["Bookmark", "Title"]; context.format = bookmarks.format; forEach(iter(extra || {}), function ([k, v]) { if (v != null) context.filters.push(function (item) item.ite...
if (v) context.filters.push(function (item) this.matchString(v, item[k]));
if (v != null) context.filters.push(function (item) item.item[k] != null && this.matchString(v, item.item[k]));
completion.bookmark = function bookmark(context, tags, extra) { context.title = ["Bookmark", "Title"]; context.format = bookmarks.format; forEach(iter(extra || {}), function ([k, v]) { if (v) context.filters.push(function (item) this.matchString...
let matchCase = !(options["ignorecase"] || options["smartcase"] && !/[A-Z]/.test(str));
let matchCase = options["smartcase"] && /[A-Z]/.test(str) || !options["ignorecase"];
bootstrap: function (str, backward) { if (this.rangeFind && this.rangeFind.stale) this.rangeFind = null; let highlighted = this.rangeFind && this.rangeFind.highlighted; let selections = this.rangeFind && this.rangeFind.selections; let regexp = false; let matchCase = !(o...
return str;
return this.lastSearchPattern = str;
bootstrap: function (str, backward) { if (this.rangeFind && this.rangeFind.stale) this.rangeFind = null; let highlighted = this.rangeFind && this.rangeFind.highlighted; let selections = this.rangeFind && this.rangeFind.selections; let regex = false; let matchCase = !(op...
if (!this.rangeFind || this.rangeFind.window.get() != window || linksOnly ^ !!this.rangeFind.elementPath || matchCase ^ this.rangeFind.matchCase || backward ^ this.rangeFind.reverse) {
if (!this.rangeFind || this.rangeFind.window.get() != window || linksOnly != !!this.rangeFind.elementPath || matchCase != this.rangeFind.matchCase || !!backward != this.rangeFind.reverse) {
bootstrap: function (str, backward) { if (this.rangeFind && this.rangeFind.stale) this.rangeFind = null; let highlighted = this.rangeFind && this.rangeFind.highlighted; let matchCase = !(options["ignorecase"] || options["smartcase"] && !/[A-Z]/.test(str)); let linksOnly = opti...
this.rangeFind.selections = selections;
bootstrap: function (str, backward) { if (this.rangeFind && this.rangeFind.stale) this.rangeFind = null; let highlighted = this.rangeFind && this.rangeFind.highlighted; let matchCase = !(options["ignorecase"] || options["smartcase"] && !/[A-Z]/.test(str)); let linksOnly = opti...
|| regexp != this.rangeFind.regex
|| regexp != this.rangeFind.regexp
bootstrap: function (str, backward) { if (this.rangeFind && this.rangeFind.stale) this.rangeFind = null; let highlighted = this.rangeFind && this.rangeFind.highlighted; let selections = this.rangeFind && this.rangeFind.selections; let regexp = false; let matchCase = !(o...
let linksOnly = options["linksearch"];
bootstrap: function (str, backward) { if (this.rangeFind && this.rangeFind.stale) this.rangeFind = null; let highlighted = this.rangeFind && this.rangeFind.highlighted; let selections = this.rangeFind && this.rangeFind.selections; let regexp = false; let matchCase = opt...
bottom: function(element, node) { element.appendChild(node); },
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(...
bottom: function(element, node) { element.appendChild(node); },
Bottom: function(element, content) { return Element.insert(element, {bottom:content}); },
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(...
Bottom: function(element, content) { return Element.insert(element, {bottom:content}); },
this.removeChild(replacement);
this.appendChild(replacement);
bottomToolbarDidChange: function() { var active = this.activeBottomToolbar, replacement = this.get("bottomToolbar"); if (active) { if (this._currentDirection !== null) { active.set("buildDirection", this._currentDirection); this.buildOutChild(active); } else { this.removeChild...
equals(view.$('.branch').size(), 0, 'should not have branch') ;
ok(!cq.hasClass('has-branch'), "should not have has-branch class"); equals(branchCQ.size(), 0, 'should not have branch') ;
function branch(view, visible) { if (visible === null) { equals(view.$('.branch').size(), 0, 'should not have branch') ; } else { var cq = view.$('.branch'); equals(cq.size(), 1, 'should have branch'); equals(cq.hasClass('branch-visible'), visible, 'is visible'); }}
var cq = view.$('.branch'); equals(cq.size(), 1, 'should have branch'); equals(cq.hasClass('branch-visible'), visible, 'is visible');
ok(cq.hasClass('has-branch'), "should have has-branch class"); equals(branchCQ.size(), 1, 'should have branch'); equals(branchCQ.hasClass('branch-visible'), visible, 'is visible');
function branch(view, visible) { if (visible === null) { equals(view.$('.branch').size(), 0, 'should not have branch') ; } else { var cq = view.$('.branch'); equals(cq.size(), 1, 'should have branch'); equals(cq.hasClass('branch-visible'), visible, 'is visible'); }}
this.Data.noreload = false;
this.breadcrumbs_click = function(el) { var _Settings = this.Settings.Application; // Shortcut if ($(el).text() == _Settings.usersListLbl) { this.Data.tid = ''; this.Data.sorting = []; this.Data.uparam = []; this.Data.user = ''; } else if ($(el...
filter = context.filter.toLowerCase(); context.anchored = false; context.title = ["Buffer", "URL"]; context.keys = { text: "text", description: "url", icon: "icon" }; context.compare = CompletionContext.Sort.number; let process = context.process[0]; context.process = [function (item, text) <> <span highlight="Indicator...
let filter = context.filter.toLowerCase(); let defItem = { parent: { getTitle: function () "" } }; let tabGroups = {}; tabs.getGroups(); tabs.allTabs.forEach(function (tab, i) { let group = (tab.tabItem || defItem).parent || defItem.parent; if (!set.has(tabGroups, group.id)) tabGroups[group.id] = [group.getTitle(), []]...
completion.buffer = function buffer(context) { filter = context.filter.toLowerCase(); context.anchored = false; context.title = ["Buffer", "URL"]; context.keys = { text: "text", description: "url", icon: "icon" }; context.compare = CompletionContext.Sort.nu...
context.completions = util.map(tabs.browsers, function ([i, browser]) { let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i == tabs.index(tabs.alternate)) indicator = "#";
let orig = context; for (let [id, [name, browsers]] in Iterator(tabGroups)) { context = orig.fork(id, 0); context.anchored = false; context.title = [name || "Buffers"]; context.keys = { text: "text", description: "url", icon: "icon" }; context.compare = CompletionContext.Sort.number; let process = context.process[0]; c...
completion.buffer = function buffer(context) { filter = context.filter.toLowerCase(); context.anchored = false; context.title = ["Buffer", "URL"]; context.keys = { text: "text", description: "url", icon: "icon" }; context.compare = CompletionContext.Sort.nu...
let tab = tabs.getTab(i); let url = browser.contentDocument.location.href; i = i + 1;
context.completions = util.map(util.Array.itervalues(browsers), function ([i, browser]) { let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i == tabs.index(tabs.alternate)) indicator = "#";
completion.buffer = function buffer(context) { filter = context.filter.toLowerCase(); context.anchored = false; context.title = ["Buffer", "URL"]; context.keys = { text: "text", description: "url", icon: "icon" }; context.compare = CompletionContext.Sort.nu...
return { text: [i + ": " + (tab.label || "(Untitled)"), i + ": " + url], url: template.highlightURL(url), indicator: indicator, icon: tab.image || DEFAULT_FAVICON }; });
let tab = tabs.getTab(i); let url = browser.contentDocument.location.href; i = i + 1; return { text: [i + ": " + (tab.label || "(Untitled)"), i + ": " + url], url: template.highlightURL(url), indicator: indicator, icon: tab.image || DEFAULT_FAVICON }; }); }
completion.buffer = function buffer(context) { filter = context.filter.toLowerCase(); context.anchored = false; context.title = ["Buffer", "URL"]; context.keys = { text: "text", description: "url", icon: "icon" }; context.compare = CompletionContext.Sort.nu...
context.keys = { text: "text", description: "url", icon: "icon" };
context.keys = { text: "text", description: "url", icon: "icon", id: "id", command: function () "tabs.select" };
completion.buffer = function buffer(context) { let filter = context.filter.toLowerCase(); let defItem = { parent: { getTitle: function () "" } }; let tabGroups = {}; tabs.getGroups(); tabs.allTabs.forEach(function (tab, i) { let group = (tab....
id: i - 1,
completion.buffer = function buffer(context) { let filter = context.filter.toLowerCase(); let defItem = { parent: { getTitle: function () "" } }; let tabGroups = {}; tabs.getGroups(); tabs.allTabs.forEach(function (tab, i) { let group = (tab....
if (item.alt) { stringParts.push(' or ', '<a href="', item.value, '" onclick="document.saveLink(this);return false;"', '" type="application/octet-stream"', '> Save as</a>'); }
function buildHtml(formatArray) { var stringParts = []; for (var i = 0, length = formatArray.length; i < length; ++i) { var item = formatArray[i]; if (item.type === "url") { stringParts.push('<a href="', item.value, '" onclick="document.openLink(this);return false;">', ...
getStatistics: function () { return result.stats || {}; }
getStatistics: function () { return result.stats || {}; }, experimental: experimentalRules[result.name] || false,
function buildLintRuleResults(results) { var lintRules = []; if (results) { for (var i = 0; i < results.length; ++i) { var result = results[i]; lintRules.push({ name: buildHtml(result.format), shortName: shortNameTranslationTable[result.name] || result.name, score: result.score, ...
var path = JS.shallowCopy(JSIO.__path); path.__default__ = [];
exports.buildResult = function(opts) { var opts = opts || {}; logger.info('building final output'); if (opts.compress) { logger.info('compressing sources'); compressTable(srcTable, opts); } var path = JS.shallowCopy(JSIO.__path); path.__default__ = []; var jsioSrc = ';(' + jsio.__jsio.__init__.toString(-1) + ')();' ...
+ 'jsio.__path=' + JSON.stringify(path),
+ exports.getPathJS(),
exports.buildResult = function(opts) { var opts = opts || {}; logger.info('building final output'); if (opts.compress) { logger.info('compressing sources'); compressTable(srcTable, opts); } var path = JS.shallowCopy(JSIO.__path); path.__default__ = []; var jsioSrc = ';(' + jsio.__jsio.__init__.toString(-1) + ')();' ...
onClick: function(item, node) { if (item.url) { alert(item.url); } },
onClick: function(item, node) { if (item.url) { p = item.url[0].replace(/\.([^:]+):/, '.$1.html#'); window.location = virtroot + sep + tree + '/' + p; } },
function buildTree(items, id) { var store = new dojo.data.ItemFileReadStore({ data: { label: 'label', items: [items] } }); var treeModel = new dijit.tree.ForestStoreModel({ store: store }); var treeControl = new dijit.Tree({ model: treeModel, showRoot: false, onClick: function(item, node)...
"/");b.nextWhileMatches(/[gi]/);c={type:"regexp",style:"js-string"}}else c=h();return c}else return o.test(l)?h():f()}var n=function(){function c(h,j){return{type:h,style:"js-"+j}}var a=c("keyword a","keyword"),b=c("keyword b","keyword"),d=c("keyword c","keyword"),f=c("operator","keyword"),g=c("atom","atom");return{"if...
y+"px"}}}function b(){i.scrollTop=p.scrollTop||m.documentElement.scrollTop||0}function c(h){var o=j.firstChild.offsetHeight;if(o!=0){o=Math.ceil((50+Math.max(p.offsetHeight,Math.max(d.offsetHeight,p.scrollHeight||0)))/o);for(var r=j.childNodes.length;r<=o;r++){var v=document.createElement("DIV");v.appendChild(document....
"/");b.nextWhileMatches(/[gi]/);c={type:"regexp",style:"js-string"}}else c=h();return c}else return o.test(l)?h():f()}var n=function(){function c(h,j){return{type:h,style:"js-"+j}}var a=c("keyword a","keyword"),b=c("keyword b","keyword"),d=c("keyword c","keyword"),f=c("operator","keyword"),g=c("atom","atom");return{"if...
if (this.disclosureState) classes['has-disclosure'] = YES;
if (!SC.none(this.disclosureState)) classes['has-disclosure'] = YES;
calculateClasses: function() { var classes = {}; classes[(this.contentIndex % 2 === 0) ? 'even' : 'odd'] = YES; if (!SC.none(this.isEnabled) && !this.isEnabled) classes['disabled'] = YES; if (this.disclosureState) classes['has-disclosure'] = YES; if (!SC.none(this.checkbox)) classes['has-checkbox'] = Y...
if (!this.isEnabled) classes['disabled'] = YES; if (this.disclosureState) classes['has-disclosure'];
if (!SC.none(this.isEnabled) && !this.isEnabled) classes['disabled'] = YES; if (this.disclosureState) classes['has-disclosure'] = YES;
calculateClasses: function() { var classes = {}; classes[(this.contentIndex % 2 === 0) ? 'even' : 'odd'] = YES; if (!this.isEnabled) classes['disabled'] = YES; if (this.disclosureState) classes['has-disclosure']; if (!SC.none(this.checkbox)) classes['has-checkbox'] = YES; if (this.icon) classes['has...
if (this.didChange('isTextSelectable')) classNames['allow-select'] = this.isTextSelectable; if (this.didChange('isEnabled')) classNames['disabled'] = !this.isEnabled; if (this.didChange('isVisible')) classNames['hidden'] = !this.isVisible; if (this.didChange('isFirstResponder')) classNames['focus'] = this.isFirstRespon...
classNames['allow-select'] = this.isTextSelectable; classNames['disabled'] = !this.isEnabled; classNames['hidden'] = !this.isVisible; classNames['focus'] = this.isFirstResponder; classNames['sc-static-layout'] = this.hasStaticLayout; if (this.cursor) { classNames[this.cursor.get('className')] = YES; this._lastCursor =...
calculateClassNames: function() { var classNames = this.classNames; if (this.didChange('isTextSelectable')) classNames['allow-select'] = this.isTextSelectable; if (this.didChange('isEnabled')) classNames['disabled'] = !this.isEnabled; if (this.didChange('isVisible')) classNames['hidden'] = !this.isVis...
var size = this.get(size);
var size = this.size;
calculateSize: function() { var size = this.get(size); if (!size) return null; if (typeof size === "string") return size; // note that the calculation won't change unless size changes, // and as such, we can replace size with the calculated string // for caching. var sizes = this.sizes; if (!s...
var idx, len = sizes.length, s;
var idx, len = sizes.length, s, last = undefined;
calculateSize: function() { var size = this.size; if (!size) return null; if (typeof size === "string") return size; // note that the calculation won't change unless size changes, // and as such, we can replace size with the calculated string // for caching. var sizes = this.sizes; if (!sizes)...
if (s.width && size.width > s.width) continue; if (s.height && size.height > s.height) continue;
if (s.width && s.width > size.width) break; if (s.height && s.height > size.height) break;
calculateSize: function() { var size = this.size; if (!size) return null; if (typeof size === "string") return size; // note that the calculation won't change unless size changes, // and as such, we can replace size with the calculated string // for caching. var sizes = this.sizes; if (!sizes)...
this.size = s.name; return s.name;
last = s;
calculateSize: function() { var size = this.size; if (!size) return null; if (typeof size === "string") return size; // note that the calculation won't change unless size changes, // and as such, we can replace size with the calculated string // for caching. var sizes = this.sizes; if (!sizes)...
this.size = last.name; return last.name;
calculateSize: function() { var size = this.size; if (!size) return null; if (typeof size === "string") return size; // note that the calculation won't change unless size changes, // and as such, we can replace size with the calculated string // for caching. var sizes = this.sizes; if (!sizes)...
var testFunc = fixture.runTest;
var testFunc = doh.hitch(fixture, fixture.runTest);
var calibrate = function () { var testFunc = fixture.runTest; //Set the initial state. We have to do this as a loop instead //of a recursive function. Otherwise, it blows the call stack //on some browsers. var iState = { start: new Date(), curIter: 0, iterations: 5 }; var handleIteration = function(stat...
var data = [];
callback: function(){ var data = []; $.ajax({ "type": "GET", "async": false, "url": '/security_groups/all.json', "dataType": "json", "data": "", success: function(json,status){ var results = json.netfilter_group.results; var size = results.length...
"async": false,
"async": true, "url": '/keypairs/all.json', "dataType": "json", "data": "", success: function(json,status){ var results = json.ssh_key_pair.results; var size = results.length; var select_keypair = $(self).find('#ssh_key_pair'); for (var i=0; i < size ; i++) { var name = results[i].result.name; var ssh_keypair_id = resu...
callback: function(){ var data = []; $.ajax({ "type": "GET", "async": false, "url": '/security_groups/all.json', "dataType": "json", "data": "", success: function(json,status){ var results = json.netfilter_group.results; var size = results.length...
"id" : results[i].result.uuid,
"value" : results[i].result.uuid,
callback: function(){ var data = []; $.ajax({ "type": "GET", "async": false, "url": '/security_groups/all.json', "dataType": "json", "data": "", success: function(json,status){ var results = json.netfilter_group.results; var size = results.length...
var security_group = new DcmgrGUI.ItemSelector({ 'left_select_id' : '#left_select_list', 'right_select_id' : "#right_select_list", "data" : data }); $(this).find('#right_button').click(function(){ security_group.leftToRight(); }); $(this).find('#left_button').click(function(){ security_group.rightToLeft(); });
callback: function(){ var data = []; $.ajax({ "type": "GET", "async": false, "url": '/security_groups/all.json', "dataType": "json", "data": "", success: function(json,status){ var results = json.netfilter_group.results; var size = results.length...
var types = {}; var bestType = null; installInfo.installs.forEach(function(aInstall) { if (aInstall.type in types) types[aInstall.type]++; else types[aInstall.type] = 1; if (!bestType || types[aInstall.type] > types[bestType]) bestType = aInstall.type; }); BrowserOpenAddonsMgr("addons: }
clearTimeout(timeoutId); observer.observe(null, responseTopic, Ci.nsIPermissionManager.DENY_ACTION); }
callback: function() { // Calculate the add-on type that is most popular in the list of // installs var types = {}; var bestType = null; installInfo.installs.forEach(function(aInstall) { if (aInstall.type in types) types[aInsta...
mainThread.dispatch({ run: callback.call(self) }, mainThread.DISPATCH_NORMAL);
mainThread.dispatch(Runnable(self, callback), mainThread.DISPATCH_NORMAL);
callInMainThread: function (callback, self) { let mainThread = services.get("threadManager").mainThread; if (!services.get("threadManager").isMainThread) mainThread.dispatch({ run: callback.call(self) }, mainThread.DISPATCH_NORMAL); else callback.call(self); },
camelize: function() { var parts = this.split('-'), len = parts.length; if (len == 1) return parts[0]; var camelized = this.charAt(0) == '-' ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1) : parts[0]; for (var i = 1; i < len; i++) camelized += parts[i].charAt(0).toUpperCase() + parts[i].substring(1); retu...
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(...
camelize: function() { var parts = this.split('-'), len = parts.length; if (len == 1) return parts[0]; var camelized = this.charAt(0) == '-' ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1) : parts[0]; for (var i = 1; i < len; i++) camelized += parts[i].charAt(0).toUpperCase() + p...
}
},
cancel: function () { this.purgeListeners(); this.range.deselect(); this.range.descroll(); }
context.cancel = function () { if (searchRunning) { services.get("autoCompleteSearch").stopSearch(); searchRunning = false; } };
context.cancel = function () { services.get("autoCompleteSearch").stopSearch(); context.completions = []; };
context.cancel = function () { if (searchRunning) { services.get("autoCompleteSearch").stopSearch(); searchRunning = false; } };
this.canvas.hideCanvas();
cancelGesture: function(e) { this.in_gesture = false; },
canonicalKeys: function (keys) { return events.fromString(keys).map(events.closure.toString).join("");
canonicalKeys: function (keys, unknownOk) { return events.fromString(keys, unknownOk).map(events.closure.toString).join("");
canonicalKeys: function (keys) { return events.fromString(keys).map(events.closure.toString).join(""); },
&& xhr instanceof window.XMLHttpRequest
&& (xhr.__proto__ == XMLHttpRequest.prototype || xhr instanceof window.XMLHttpRequest)
function canUseXHR(url) { // always use jsonp for local files if (isLocalFile(url)) { return false; } // try to create an XHR using the same function the XHR transport uses var xhr = createXHR(); if (!xhr) { return false; } // if the URL requested is the same domain as the window, // then we can use same-domain XHRs ...
window.getSelection().empty();
function Canvas() { this.html_canvas = document.createElement("canvas"); this.ctx = this.html_canvas.getContext("2d"); this.setCanvasStyle = function (stroke_style, fill_style, line_width) { this.html_canvas.setAttribute("width", window.innerWidth + "px"); this.html_canvas.setAttribute("height", window.innerHe...
this.hasCanvas = function() { return (this.html_canvas.parentNode && this.html_canvas.parentNode.lastChild == this.html_canvas); }
function Canvas() { this.html_canvas = document.createElement("canvas"); this.ctx = this.html_canvas.getContext("2d"); this.setCanvasStyle = function (stroke_style, fill_style, line_width) { this.html_canvas.setAttribute("width", window.innerWidth + "px"); this.html_canvas.setAttribute("height", window.innerHe...
ret.callback(canvas.toDataURL("image/png", ""));
ret.callback({ contentType: 'image/png', base64: true, height: img.naturalHeight, width : img.naturalWidth, binary: canvas.toDataURL('image/png', '') })
function canvasRequest(url){ var canvas = document.createElement('canvas'), ret = new Deferred(), img = new Image(); img.addEventListener('load', function(res){ img.removeEventListener('load', arguments.callee, false); canvas.width = img.naturalWidth; canvas.height = img.naturalHeight; va...
img.addEventListener('load', function(res){ img.removeEventListener('load', arguments.callee, false);
img.addEventListener('load', function img_load(res){ img.removeEventListener('load', img_load, false);
function canvasRequest(url){ var canvas = document.createElement('canvas'), ret = new Deferred(), img = new Image(); img.addEventListener('load', function(res){ img.removeEventListener('load', arguments.callee, false); canvas.width = img.naturalWidth; canvas.height = img.naturalHeight; va...
};
}
function canvasRequest(url){ var canvas = document.createElement('canvas'), ret = new Deferred(), img = new Image(); img.addEventListener('load', function(res){ img.removeEventListener('load', arguments.callee, false); canvas.width = img.naturalWidth; canvas.height = img.naturalHeight; va...
capitalize: function() { return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase(); },
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(...
capitalize: function() { return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase(); },
canvas.width = size.w = dim.w * scale; canvas.height = size.h = dim.h * scale; ctx.scale(scale, scale);
canvas.width = size.w = dim.w; canvas.height = size.h = dim.h; dim.w *= scale; dim.h *= scale; pos.x *= scale; pos.y *= scale;
capture: function(win, pos, dim, scale){ // Google Chrome doesn't support CanvasRenderingContext2D#drawWindow var ret = new Deferred(); chrome.extension.sendRequest(TBRL.id, { request: "capture" }, function(res){ var img = new Image(); img.addEventListener('load', function(e...
var ctx = canvas.getContext('2d');
capture: function(win, pos, dim, scale){ // Google Chrome doesn't support CanvasRenderingContext2D#drawWindow var ret = new Deferred(); chrome.extension.sendRequest(TBRL.id, { request: "capture" }, function(res){ var img = new Image(); img.addEventListener('load', function(e...
ret.callback(canvas.toDataURL('image/png', ''));
ret.callback({ contentType: 'image/png', base64: true, height: size.h, width : size.w, binary: canvas.toDataURL('image/png', '') });
capture: function(win, pos, dim, scale){ // Google Chrome doesn't support CanvasRenderingContext2D#drawWindow var ret = new Deferred(); chrome.extension.sendRequest(TBRL.id, { request: "capture" }, function(res){ var img = new Image(); img.addEventListener('load', function(e...
activity.xpcom.CCIN = function(cName, ifaceName) { return Components.classes[cName].createInstance( Components.interfaces[ifaceName]);
activity.xpcom.CCIN = function(className, interfaceName) { var classObj = Components.classes[className]; var ifaceObj = Components.interfaces[interfaceName]; if (!classObj || !ifaceObj) { return null; } return classObj.createInstance(ifaceObj);
activity.xpcom.CCIN = function(cName, ifaceName) { return Components.classes[cName].createInstance( Components.interfaces[ifaceName]);};
activity.xpcom.CCSV = function(cName, ifaceName) { return Components.classes[cName].getService( Components.interfaces[ifaceName]);
activity.xpcom.CCSV = function(className, interfaceName) { var classObj = Components.classes[className]; var ifaceObj = Components.interfaces[interfaceName]; if (!classObj || !ifaceObj) { return null; } return classObj.getService(ifaceObj);
activity.xpcom.CCSV = function(cName, ifaceName) { return Components.classes[cName].getService( Components.interfaces[ifaceName]);};
if(WakameGUI.activePanel == 0){ cardPanel.refreshInstance(); } else if(WakameGUI.activePanel == 1){ cardPanel.refreshImage();
switch(no) { case 0: cardPanel.refreshPanel('instancePanel'); break; case 1: cardPanel.refreshPanel('imagePanel'); break; case 2: break; case 3: break;
function ChangePanel(no) { if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; cardPanel.layout.setActiveItem(WakameGUI.activePanel); if(WakameGUI.activePanel == 0){ cardPanel.refreshInstance(); } else if(WakameGUI.activePanel == 1){ cardPanel.refreshImage(); }...
function ChangePanel(md)
function ChangePanel(no)
function ChangePanel(md) { if(panelMode != md){ panelMode = md; centerPanel.layout.setActiveItem(panelMode); } }
if(panelMode != md){ panelMode = md; centerPanel.layout.setActiveItem(panelMode); }
console.debug(no); if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; centerPanel.layout.setActiveItem(WakameGUI.activePanel); if(WakameGUI.activePanel == 0){ } else if(WakameGUI.activePanel == 1){ }else if(WakameGUI.activePanel == 2){ } }
function ChangePanel(md) { if(panelMode != md){ panelMode = md; centerPanel.layout.setActiveItem(panelMode); } }
var controlSizeTuning = 0, customMenuItemHeight = 0 ;
var controlSizeTuning = 0, customMenuItemHeight = 0, customSeparatorHeight = 0, separatorHeightTuning = 0, pos, len;
changeSelectButtonPreferMatrix: function() { var controlSizeTuning = 0, customMenuItemHeight = 0 ; switch (this.get('controlSize')) { case SC.TINY_CONTROL_SIZE: controlSizeTuning = SC.SelectButtonView.TINY_OFFSET_Y; customMenuItemHeight = SC.MenuPane.TINY_MENU_ITEM_HEIGHT; break; ...
pos = this.get('separatorPostion'); len = this.get('objects').length; if(pos > 0 && pos < len && itemIdx >= len-pos) { separatorHeightTuning = customMenuItemHeight - customSeparatorHeight; preferMatrixAttributeTop -= separatorHeightTuning; }
changeSelectButtonPreferMatrix: function() { var controlSizeTuning = 0, customMenuItemHeight = 0 ; switch (this.get('controlSize')) { case SC.TINY_CONTROL_SIZE: controlSizeTuning = SC.SelectButtonView.TINY_OFFSET_Y; customMenuItemHeight = SC.MenuPane.TINY_MENU_ITEM_HEIGHT; break; ...
var preferMatrixAttributeTop = 0 ,
var controlSizeTuning = this.get('controlSize') === SC.SMALL_CONTROL_SIZE ? 0 : -2; var preferMatrixAttributeTop = controlSizeTuning ,
changeSelectButtonPreferMatrix: function() { var preferMatrixAttributeTop = 0 , itemIdx = this.get('_itemIdx') , leftAlign = this.get('leftAlign'), defPreferMatrix, tempPreferMatrix ; if(this.get('positionMenuBelow')) { defPreferMatrix = [leftAlign, 4, 3] ; this.set('preferMatrix', defPrefer...
preferMatrixAttributeTop = itemIdx * this.CUSTOM_MENU_ITEM_HEIGHT ;
preferMatrixAttributeTop = itemIdx * this.CUSTOM_MENU_ITEM_HEIGHT + controlSizeTuning;
changeSelectButtonPreferMatrix: function() { var preferMatrixAttributeTop = 0 , itemIdx = this.get('_itemIdx') , leftAlign = this.get('leftAlign'), defPreferMatrix, tempPreferMatrix ; if(this.get('positionMenuBelow')) { defPreferMatrix = [leftAlign, 4, 3] ; this.set('preferMatrix', defPrefer...
pos = this.get('separatorPostion');
pos = this.get('separatorPosition');
changeSelectButtonPreferMatrix: function() { var controlSizeTuning = 0, customMenuItemHeight = 0, customSeparatorHeight = 0, separatorHeightTuning = 0, pos, len; switch (this.get('controlSize')) { case SC.TINY_CONTROL_SIZE: controlSizeTuning = SC.SelectButtonView.TINY_OFFSET_Y; ...
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_...
function changeShipping() { 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_co...
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' ...
function changeShipping() { 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_co...
if (typeof AtD_proofread_click_count != "undefined") AtD_proofread_click_count++;
if (typeof AtD.proofread_click_count != "undefined") AtD.proofread_click_count++;
AtD.check = function(container_id, callback_f) { /* checks if a global var for click stats exists and increments it if it does... */ if (typeof AtD_proofread_click_count != "undefined") AtD_proofread_click_count++; AtD.callback_f = callback_f; /* remember the callback for later */ AtD.remove(container_id); var con...
timeout : 15000,
AtD.check = function(container_id, callback_f) { /* checks if a global var for click stats exists and increments it if it does... */ if (typeof AtD.proofread_click_count != "undefined") AtD.proofread_click_count++; AtD.callback_f = callback_f; /* remember the callback for later */ AtD.remove(container_id); var con...
var args = arguments;
var args = $A(arguments);
check : function(){ var args = arguments; return this.values.reduce(function(memo, i){ if(i.check && i.check.apply(i, args)) memo.push(i); return memo; }, []); },
if((ps.favorite && ps.favorite.name === (m.typeName || m.name)) || (m.check && m.check(ps))) return true;
return (ps.favorite && ps.favorite.name === (m.typeName || m.name)) || (m.check && m.check(ps));
Models.check = function(ps){ return this.values.filter(function(m){ if((ps.favorite && ps.favorite.name === (m.typeName || m.name)) || (m.check && m.check(ps))) return true; });}
if((ps.favorite && ps.favorite.name === m.name) || (m.check && m.check(ps)))
if((ps.favorite && ps.favorite.name === (m.typeName || m.name)) || (m.check && m.check(ps)))
Models.check = function(ps){ return this.values.filter(function(m){ if((ps.favorite && ps.favorite.name === m.name) || (m.check && m.check(ps))) return true; });}
url : AtD.rpc + '?url=/checkDocument&lang='+AtD.lang, data : 'key=' + AtD.api_key + '&data=' + text,
url : AtD.rpc, data : 'data=' + text,
AtD.check = function(container_id, callback_f) { /* checks if a global var for click stats exists and increments it if it does... */ if (typeof AtD.proofread_click_count != "undefined") AtD.proofread_click_count++; AtD.callback_f = callback_f; /* remember the callback for later */ AtD.remove(container_id); var con...
var text = $this.val(), newHeight, height, usedHeight, usedRows, availableRows; $div.html( text.replace(/\n/g, '&nbsp;<br>').replace(/<(\/?)scrip/g,'<$1scirp') ); height = $this[0].offsetHeight - heightDiff; usedHeight = $div[0].offsetHeight - heightDiff; usedRows = Math.floor(usedHeight / rowSize); availableRows = Mat...
var text = $this.val(), newHeight, height, usedHeight, usedRows, availableRows; $mirror.html( encodeHTML(text).replace(/\n/g, '&nbsp;<br>') ); height = $this[0].offsetHeight - heightDiff; usedHeight = $mirror[0].offsetHeight - heightDiff; usedRows = Math.floor(usedHeight / rowSize); availableRows = Math.floor((heig...
function check() { var text = $this.val(), newHeight, height, usedHeight, usedRows, availableRows; $div.html( text.replace(/\n/g, '&nbsp;<br>').replace(/<(\/?)scrip/g,'<$1scirp') ); height = $this[0].offsetHeight - heightDiff; usedHeight = $div[0].offsetHeight - heightDiff; usedRows = Math.floor(usedH...
equals(view.$('.sc-checkbox-view').size(), 0, 'should not have checkbox');
ok(!cq.hasClass('has-checkbox'), "should not have has-checkbox class"); equals(checkboxCQ.size(), 0, 'should not have checkbox');
function checkbox(view, state) { if (state === null) { equals(view.$('.sc-checkbox-view').size(), 0, 'should not have checkbox'); } else { var cq =view.$('.sc-checkbox-view'); equals(cq.size(), 1, 'should have checkbox element'); equals(cq.hasClass('sel'), state === true, 'expects sel class'); equals(c...
var cq =view.$('.sc-checkbox-view'); equals(cq.size(), 1, 'should have checkbox element'); equals(cq.hasClass('sel'), state === true, 'expects sel class'); equals(cq.hasClass('mixed'), state === SC.MIXED_STATE, 'expects mixed class');
ok(cq.hasClass('has-checkbox'), "should have has-checkbox class"); equals(checkboxCQ.size(), 1, 'should have checkbox element'); equals(checkboxCQ.hasClass('sel'), state === true, 'expects sel class'); equals(checkboxCQ.hasClass('mixed'), state === SC.MIXED_STATE, 'expects mixed class');
function checkbox(view, state) { if (state === null) { equals(view.$('.sc-checkbox-view').size(), 0, 'should not have checkbox'); } else { var cq =view.$('.sc-checkbox-view'); equals(cq.size(), 1, 'should have checkbox element'); equals(cq.hasClass('sel'), state === true, 'expects sel class'); equals(c...
document.commandDispatcher.focusedWindow = content;
checkFocus: function () { if (dactyl.focusedElement) { let rect = dactyl.focusedElement.getBoundingClientRect(); if (!rect.width || !rect.height) { services.focus.clearFocus(window); // onFocusChange needs to die. this.onFocusChange(); ...
services.focusManager.clearFocus(window);
services.focus.clearFocus(window);
checkFocus: function () { if (dactyl.focusedElement) { let rect = dactyl.focusedElement.getBoundingClientRect(); if (!rect.width || !rect.height) { services.focusManager.clearFocus(window); // onFocusChange needs to die. this.onFocusChange();...
if (dactyl.focus) { let rect = dactyl.focus.getBoundingClientRect();
if (dactyl.focusedElement) { let rect = dactyl.focusedElement.getBoundingClientRect();
checkFocus: function () { if (dactyl.focus) { let rect = dactyl.focus.getBoundingClientRect(); if (!rect.width || !rect.height) { dactyl.focus.blur(); // onFocusChange needs to die. this.onFocusChange(); } } },
dactyl.focus.blur();
services.focusManager.clearFocus(window);
checkFocus: function () { if (dactyl.focus) { let rect = dactyl.focus.getBoundingClientRect(); if (!rect.width || !rect.height) { dactyl.focus.blur(); // onFocusChange needs to die. this.onFocusChange(); } } },
setProgressBarClass("hadError")
var checkForCrashedTest = function() { if ($('testsHaveFinished')) { return; } var testContainers = Dom.getElementsByClassName('testcaseOutput'); var lastTestContainer = testContainers[testContainers.length - 1]; lastTestContainer.className = 'testcaseOutput testcaseError'; lastTestContainer.style.display = 'b...
if (elem)
function action() {
function checkFragment() { document.title = document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml", "title")[0].textContent; var frag = document.location.hash.substr(1); var elem = document.getElementById(frag); if (elem) window.content.scrollTo(0, window.content.scrollY + elem.getBoundingCli...
} if (elem) { action(); setTimeout(action, 10); }
function checkFragment() { document.title = document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml", "title")[0].textContent; var frag = document.location.hash.substr(1); var elem = document.getElementById(frag); if (elem) window.content.scrollTo(0, window.content.scrollY + elem.getBoundingCli...