rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
this.setPath = function(path) { this.path.__default__ = typeof path == 'string' ? [path] : path; } | this.setPath = function(path) { this.__path.__default__ = typeof path == 'string' ? [path] : path; } | this.setPath = function(path) { this.path.__default__ = typeof path == 'string' ? [path] : path; } |
setRequestHeaders: function() { var headers = { 'X-Requested-With': 'XMLHttpRequest', 'X-Prototype-Version': Prototype.Version, 'Accept': 'text/javascript, text/html, application/xml, text/xml, */*' }; if (this.method == 'post') { headers['Content-type'] = this.options.contentType + (this.options.encoding ? '; charset... | 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(... | setRequestHeaders: function() { var headers = { 'X-Requested-With': 'XMLHttpRequest', 'X-Prototype-Version': Prototype.Version, 'Accept': 'text/javascript, text/html, application/xml, text/xml, */*' }; if (this.method == 'post') { headers['Content-type'] = this.options.contentType + ... |
c,a){this.editor.replaceChars(e,c,a)},getSearchCursor:function(e,c,a){return this.editor.getSearchCursor(e,c,a)},undo:function(){this.editor.history.undo()},redo:function(){this.editor.history.redo()},historySize:function(){return this.editor.history.historySize()},clearHistory:function(){this.editor.history.clear()},g... | b,c){this.editor.replaceChars(a,b,c)},getSearchCursor:function(a,b,c){return this.editor.getSearchCursor(a,b,c)},undo:function(){this.editor.history.undo()},redo:function(){this.editor.history.redo()},historySize:function(){return this.editor.history.historySize()},clearHistory:function(){this.editor.history.clear()},g... | c,a){this.editor.replaceChars(e,c,a)},getSearchCursor:function(e,c,a){return this.editor.getSearchCursor(e,c,a)},undo:function(){this.editor.history.undo()},redo:function(){this.editor.history.redo()},historySize:function(){return this.editor.history.historySize()},clearHistory:function(){this.editor.history.clear()},g... |
setStyle: function(element, styles) { element = $(element); var elementStyle = element.style, match; if (Object.isString(styles)) { element.style.cssText += ';' + styles; return styles.include('opacity') ? element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)[1]) : element; } for (var property in styles) if (proper... | 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(... | setStyle: function(element, styles) { element = $(element); var elementStyle = element.style, match; if (Object.isString(styles)) { element.style.cssText += ';' + styles; return styles.include('opacity') ? element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)[1]) : element; } for (... |
e},setStylesheet:function(e){if(typeof e==="string")e=[e];for(var c={},a={},b=this.win.document.getElementsByTagName("link"),d=0,f;f=b[d];d++)if(f.rel.indexOf("stylesheet")!==-1)for(var g=0;g<e.length;g++){var h=e[g];if(f.href.substring(f.href.length-h.length)===h){c[f.href]=true;a[h]=true}}for(d=0;f=b[d];d++)if(f.rel.... | a},setStylesheet:function(a){if(typeof a==="string")a=[a];for(var b={},c={},e=this.win.document.getElementsByTagName("link"),g=0,d;d=e[g];g++)if(d.rel.indexOf("stylesheet")!==-1)for(var f=0;f<a.length;f++){var m=a[f];if(d.href.substring(d.href.length-m.length)===m){b[d.href]=true;c[m]=true}}for(g=0;d=e[g];g++)if(d.rel.... | e},setStylesheet:function(e){if(typeof e==="string")e=[e];for(var c={},a={},b=this.win.document.getElementsByTagName("link"),d=0,f;f=b[d];d++)if(f.rel.indexOf("stylesheet")!==-1)for(var g=0;g<e.length;g++){var h=e[g];if(f.href.substring(f.href.length-h.length)===h){c[f.href]=true;a[h]=true}}for(d=0;f=b[d];d++)if(f.rel.... |
memo[tag.toUpperCase()] = tag; | if(tag) memo[tag.toUpperCase()] = tag; | setSuggestions: function(res){ var self = this; var memo = res.tags.reduce(function(memo, tag){ memo[tag.toUpperCase()] = tag; return memo; }, {}); var sg = $('suggestions'); var df = $DF(); var suggestions = {}; ['recommended', 'popular'].forEach(function(prop){ res[prop].forEach(... |
if (value) services.get("debugger").on(); | if (value) { if (!services.get("debugger").isOn) services.get("debugger").asyncOn(null); } | setter: function (value) { if (value) services.get("debugger").on(); else services.get("debugger").off(); }, |
setter: function (value) { options.safeSetPref("accessibility.typeaheadfind.enablesound", !value, "See 'visualbell' option"); return value; | setter: function (opts) { let classes = [v[1] for ([k, v] in Iterator(this.opts)) if (opts.indexOf(k) < 0)]; styles.addSheet(true, "taboptions", "chrome: classes.length ? classes.join(",") + "{ display: none; }" : ""); tabs.tabBinding.enabled = Array.some(opts, function (k) k in this.opts, this); statusline.updateTab... | setter: function (value) { options.safeSetPref("accessibility.typeaheadfind.enablesound", !value, "See 'visualbell' option"); return value; } |
let [open, restriction] = [1, 0]; | let open = 1, restriction = 0; | setter: function (values) { let [open, restriction] = [1, 0]; for (let [, opt] in Iterator(values)) { if (opt == "tab") open = 3; else if (opt == "window") ... |
val instanceof Number){ | val instanceof Number || val === null){ | function setter(key, def, target){ var val = def[key]; var res = typeof(val); if(Array.isArray(val)){ if(!(target[key])) target[key] = []; for(var i = 0, l = val.length; i < l; ++i){ setter(i, val, target[key]); } } else { switch(res){ case ... |
el = $.id(el); text = String(text); if ('textContent' in el) { el.textContent = text; } else if ('innerText' in el) { el.innerText = text.replace(/\n/g, ' '); } else { el.innerHTML = ''; el.appendChild(document.createTextNode(text)); | el = $.id(el); text = String(text); if ('textContent' in el) { el.textContent = text; } else if ('innerText' in el) { el.innerText = text.replace(/\n/g, ' '); } else { el.innerHTML = ''; el.appendChild(document.createTextNode(text)); } | $.setText = function(el, text) { el = $.id(el); text = String(text); if ('textContent' in el) { el.textContent = text; } else if ('innerText' in el) { el.innerText = text.replace(/\n/g, ' '); } else { el.innerHTML = ''; el.appendChild(document.createTextNode(text)); }} |
} | $.setText = function(el, text) { el = $.id(el); text = String(text); if ('textContent' in el) { el.textContent = text; } else if ('innerText' in el) { el.innerText = text.replace(/\n/g, ' '); } else { el.innerHTML = ''; el.appendChild(document.createTextNode(text)); }} | |
setup: function(){ jQuery.event.add( this, orig, withinElement, fix ); }, | event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy=proxy||function(){return fn.apply(this,arguments);};proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:bindReady,teardown:function(){}}},specialAll:{live:{setup:func... | setup: function(){ jQuery.event.add( this, orig, withinElement, fix ); }, |
statechart = Ki.Statechart.create({ | statechart = SC.Statechart.create({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'x', x: Ki.State.design({ substatesAreConcurrent: YES, a: Ki.State.design({ initialSubstat... |
rootState: Ki.State.design({ | rootState: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'x', x: Ki.State.design({ substatesAreConcurrent: YES, a: Ki.State.design({ initialSubstat... |
x: Ki.State.design({ | x: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'x', x: Ki.State.design({ substatesAreConcurrent: YES, a: Ki.State.design({ initialSubstat... |
a: Ki.State.design({ | a: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'x', x: Ki.State.design({ substatesAreConcurrent: YES, a: Ki.State.design({ initialSubstat... |
c: Ki.State.design({ | c: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'x', x: Ki.State.design({ substatesAreConcurrent: YES, a: Ki.State.design({ initialSubstat... |
d: Ki.State.design({ | d: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'x', x: Ki.State.design({ substatesAreConcurrent: YES, a: Ki.State.design({ initialSubstat... |
b: Ki.State.design({ | b: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'x', x: Ki.State.design({ substatesAreConcurrent: YES, a: Ki.State.design({ initialSubstat... |
e: Ki.State.design({ | e: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'x', x: Ki.State.design({ substatesAreConcurrent: YES, a: Ki.State.design({ initialSubstat... |
f: Ki.State.design({ | f: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'x', x: Ki.State.design({ substatesAreConcurrent: YES, a: Ki.State.design({ initialSubstat... |
y: Ki.State.design() | y: SC.State.design() | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'x', x: Ki.State.design({ substatesAreConcurrent: YES, a: Ki.State.design({ initialSubstat... |
rect1 = elem.getBoundingClientRect(); | rect1 = boundingRect(elem); | setup: function() { SC.RunLoop.begin(); pane = SC.MainPane.create({ childViews: [ SC.SegmentedView.extend({ items: [ { value: "Item1", icon: iconURL }, { value: "Item2", icon: iconURL }, { value: "Item3", icon: iconURL }], itemTitleKey: 'value', ... |
rect2 = elem.getBoundingClientRect(); | rect2 = boundingRect(elem); | setup: function() { SC.RunLoop.begin(); pane = SC.MainPane.create({ childViews: [ SC.SegmentedView.extend({ items: [ { value: "Item1", icon: iconURL }, { value: "Item2", icon: iconURL }, { value: "Item3", icon: iconURL }], itemTitleKey: 'value', ... |
rect3 = elem.getBoundingClientRect(); | rect3 = boundingRect(elem); | setup: function() { SC.RunLoop.begin(); pane = SC.MainPane.create({ childViews: [ SC.SegmentedView.extend({ items: [ { value: "Item1", icon: iconURL }, { value: "Item2", icon: iconURL }, { value: "Item3", icon: iconURL }], itemTitleKey: 'value', ... |
statechart = Ki.Statechart.create({ | statechart = SC.Statechart.create({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'b', b: Ki.State.design({ eventC: funct... |
rootState: Ki.State.design({ | rootState: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'b', b: Ki.State.design({ eventC: funct... |
a: Ki.State.design({ | a: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'b', b: Ki.State.design({ eventC: funct... |
b: Ki.State.design({ | b: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'b', b: Ki.State.design({ eventC: funct... |
c: Ki.State.design({ | c: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'b', b: Ki.State.design({ eventC: funct... |
d: Ki.State.design({ | d: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'b', b: Ki.State.design({ eventC: funct... |
e: Ki.State.design({ | e: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'b', b: Ki.State.design({ eventC: funct... |
f: Ki.State.design(), | f: SC.State.design(), | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'b', b: Ki.State.design({ eventC: funct... |
g: Ki.State.design({ | g: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'b', b: Ki.State.design({ eventC: funct... |
x: Ki.State.design({ | x: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'b', b: Ki.State.design({ eventC: funct... |
h: Ki.State.design() | h: SC.State.design() | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'b', b: Ki.State.design({ eventC: funct... |
z: Ki.State.design() | z: SC.State.design() | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'b', b: Ki.State.design({ eventC: funct... |
viewSettingsWithChildren = { childViews: "child1 child2 child3 child4".w(), child1: SC.View.extend({ classNames: "test-child test-1".w() }), child2: SC.View.extend({ classNames: "test-child test-2".w(), render: function(context, firstTime) { if (firstTime) { context.push("<a class='test-2-content'>content</a>"); } } }... | setup: function() { testRenderer = SC.Renderer.extend({ render: function(context) { this.didRender = YES; context.attr("alt", "test"); context.push("<a class='test'>Hello</a>"); }, update: function() { this.didUpdate = YES; this.$().attr("title", "test"); th... | |
mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ca:Ba,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ca:Ba)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(a,b,d){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"c... | {setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="te... | mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ca:Ba,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ca:Ba)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(a,b,d){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"c... |
statechart = Ki.Statechart.create({ | statechart = SC.Statechart.create({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'c', c: Ki.State.design({ initialSubstate: 'g', ... |
rootState: Ki.State.design({ | rootState: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'c', c: Ki.State.design({ initialSubstate: 'g', ... |
a: Ki.State.design({ | a: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'c', c: Ki.State.design({ initialSubstate: 'g', ... |
c: Ki.State.design({ | c: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'c', c: Ki.State.design({ initialSubstate: 'g', ... |
g: Ki.State.design(), h: Ki.State.design() | g: SC.State.design(), h: SC.State.design() | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'c', c: Ki.State.design({ initialSubstate: 'g', ... |
d: Ki.State.design({ | d: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'c', c: Ki.State.design({ initialSubstate: 'g', ... |
i: Ki.State.design(), j: Ki.State.design() | i: SC.State.design(), j: SC.State.design() | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'c', c: Ki.State.design({ initialSubstate: 'g', ... |
b: Ki.State.design({ | b: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'c', c: Ki.State.design({ initialSubstate: 'g', ... |
e: Ki.State.design({ | e: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'c', c: Ki.State.design({ initialSubstate: 'g', ... |
k: Ki.State.design(), l: Ki.State.design() | k: SC.State.design(), l: SC.State.design() | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'c', c: Ki.State.design({ initialSubstate: 'g', ... |
f: Ki.State.design({ | f: SC.State.design({ | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'c', c: Ki.State.design({ initialSubstate: 'g', ... |
m: Ki.State.design(), n: Ki.State.design() | m: SC.State.design(), n: SC.State.design() | setup: function() { statechart = Ki.Statechart.create({ monitorIsActive: YES, rootState: Ki.State.design({ initialSubstate: 'a', a: Ki.State.design({ initialSubstate: 'c', c: Ki.State.design({ initialSubstate: 'g', ... |
context = SC.RenderContext().styles({ foo: 'foo' }) ; | context = SC.RenderContext() ; | setup: function() { context = SC.RenderContext().styles({ foo: 'foo' }) ; } |
setValue: function(element, value) { element = $(element); var method = element.tagName.toLowerCase(); Form.Element.Serializers[method](element, value); return element; }, | 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(... | setValue: function(element, value) { element = $(element); var method = element.tagName.toLowerCase(); Form.Element.Serializers[method](element, value); return element; }, |
TBRL.Service.open(tab, ps); | TBRL.Popup.open(tab, ps); | share: function(req, sender, func){ getSelected().addCallback(function(tab){ var ps = req.content; if(req.show){ TBRL.Service.open(tab, ps); } else { var posters = Models.getDefaults(ps); if(!posters.length){ TBRL.Service.alertPreference(ps.type); } else { ... |
maybeDeferred(ext.extract(ctx)) | return maybeDeferred(ext.extract(ctx)) | share: function(ctx, ext, show){ maybeDeferred(ext.extract(ctx)) .addCallback(function(ps){ chrome.extension.sendRequest(TBRL.id, { request: "share", show : show, content: update({ page : document.title, pageUrl : location.href }, ps) }, function(res)... |
page : document.title, pageUrl : location.href | page : ctx.title, pageUrl : ctx.href | share: function(ctx, ext, show){ maybeDeferred(ext.extract(ctx)) .addCallback(function(ps){ chrome.extension.sendRequest(TBRL.id, { request: "share", show : show, content: update({ page : document.title, pageUrl : location.href }, ps) }, function(res)... |
let dirNames = services.get("environment").get("PATH").split(RegExp(dactyl.has("Win32") ? ";" : ":")); | let dirNames = services.get("environment").get("PATH").split(RegExp(dactyl.has("WINNT") ? ";" : ":")); | completion.shellCommand = function shellCommand(context) { context.title = ["Shell Command", "Path"]; context.generate = function () { let dirNames = services.get("environment").get("PATH").split(RegExp(dactyl.has("Win32") ? ";" : ":")); let commands = []; ... |
let frames = []; (function (frame) { if (frame.document.body instanceof HTMLBodyElement) frames.push(frame); Array.forEach(frame.frames, arguments.callee); })(window.content); | let frames = buffer.allFrames; | shiftFrameFocus: function (count, forward) { if (!(window.content.document instanceof HTMLDocument)) return; count = Math.max(count, 1); let frames = []; // find all frames - depth-first search (function (frame) { if (frame.document.body instanceof HTMLBodyEl... |
if (!(window.content.document instanceof HTMLDocument)) | if (!(content.document instanceof HTMLDocument)) | shiftFrameFocus: function (count) { if (!(window.content.document instanceof HTMLDocument)) return; let frames = buffer.allFrames(); if (frames.length == 0) // currently top is always included return; // remove all hidden frames frames = frames.filter(functio... |
if (frames[next] != window.content) | if (frames[next] != content) | shiftFrameFocus: function (count) { if (!(window.content.document instanceof HTMLDocument)) return; let frames = buffer.allFrames(); if (frames.length == 0) // currently top is always included return; // remove all hidden frames frames = frames.filter(functio... |
frames[next].focus(); | dactyl.focus(frames[next]); | shiftFrameFocus: function (count) { if (!(content.document instanceof HTMLDocument)) return; let frames = buffer.allFrames(); if (frames.length == 0) // currently top is always included return; // remove all hidden frames frames = frames.filter(function (fram... |
shiftFrameFocus: function (count, forward) { | shiftFrameFocus: function (count) { | shiftFrameFocus: function (count, forward) { if (!(window.content.document instanceof HTMLDocument)) return; count = Math.max(count, 1); let frames = buffer.allFrames(); if (frames.length == 0) // currently top is always included return; // remove all unfocus... |
count = Math.max(count, 1); | shiftFrameFocus: function (count, forward) { if (!(window.content.document instanceof HTMLDocument)) return; count = Math.max(count, 1); let frames = buffer.allFrames(); if (frames.length == 0) // currently top is always included return; // remove all unfocus... | |
let start = document.commandDispatcher.focusedWindow; frames = frames.filter(function (frame) { frame.focus(); return document.commandDispatcher.focusedWindow == frame; }); start.focus(); | frames = frames.filter(function (frame) !(frame.document.body instanceof HTMLFrameSetElement)) .filter(function (frame) !frame.frameElement || let (rect = frame.frameElement.getBoundingClientRect()) rect.width && rect.height); | shiftFrameFocus: function (count, forward) { if (!(window.content.document instanceof HTMLDocument)) return; count = Math.max(count, 1); let frames = buffer.allFrames(); if (frames.length == 0) // currently top is always included return; // remove all unfocus... |
let current = frames.indexOf(document.commandDispatcher.focusedWindow); | let current = Math.max(0, frames.indexOf(buffer.focusedFrame)); | shiftFrameFocus: function (count, forward) { if (!(window.content.document instanceof HTMLDocument)) return; count = Math.max(count, 1); let frames = buffer.allFrames(); if (frames.length == 0) // currently top is always included return; // remove all unfocus... |
let next = current; if (forward) { next = current + count; if (next > frames.length - 1) { if (current == frames.length - 1) dactyl.beep(); next = frames.length - 1; } } else { next = current - count; if (next < 0) { if (current == 0) dactyl.beep(); next = 0; } } | let next = current + count; if (next < 0 || next >= frames.length) dactyl.beep(); next = Math.constrain(next, 0, frames.length - 1); util.dump(current, count, next, String(frames[next])); | shiftFrameFocus: function (count, forward) { if (!(window.content.document instanceof HTMLDocument)) return; count = Math.max(count, 1); let frames = buffer.allFrames(); if (frames.length == 0) // currently top is always included return; // remove all unfocus... |
doc.body.appendChild(indicator); | (doc.body || doc.documentElement || doc).appendChild(indicator); | shiftFrameFocus: function (count, forward) { if (!(window.content.document instanceof HTMLDocument)) return; count = Math.max(count, 1); let frames = buffer.allFrames(); if (frames.length == 0) // currently top is always included return; // remove all unfocus... |
Report.shit = function(dataTypes) | Report.shit = function(bindingTypes, dataTypes) | Report.shit = function(dataTypes) // static types (classes){ //alert(dataTypes.toSource()); Report.dataTypes = dataTypes;} |
Report.bindingTypes = bindingTypes; | Report.shit = function(dataTypes) // static types (classes){ //alert(dataTypes.toSource()); Report.dataTypes = dataTypes;} | |
if(/\/\/bit\.ly/.test(url)) | if(/\/\/(?:bit\.ly|j\.mp)/.test(url)) | shorten : function(url){ var self = this; if(/\/\/bit\.ly/.test(url)) return succeed(url); return this.callMethod('shorten', { longUrl : url }).addCallback(function(res){ return res[url].shortUrl; }); }, |
var reUrl = /https?[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+/g; | var reUrl = /https?[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#\^]+/g; | function shortenUrls(text, model){ var reUrl = /https?[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+/g; if(!reUrl.test(text)) return; var urls = text.match(reUrl); return gatherResults(urls.map(function(url){ return model.shorten(url); })).addCallback(function(ress){ zip(urls, ress).forEach(function(pair){ va... |
return; | return text; | function shortenUrls(text, model){ var reUrl = /https?[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#\^]+/g; if(!reUrl.test(text)) return; var urls = text.match(reUrl); return gatherResults(urls.map(function(url){ return model.shorten(url); })).addCallback(function(ress){ zip(urls, ress).forEach(function(pair){ ... |
shouldUseSelectorsAPI: function() { if (!Prototype.BrowserFeatures.SelectorsAPI) return false; if (!Selector._div) Selector._div = new Element('div'); try { Selector._div.querySelector(this.expression); } catch(e) { return false; } return true; }, | 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(... | shouldUseSelectorsAPI: function() { if (!Prototype.BrowserFeatures.SelectorsAPI) return false; if (!Selector._div) Selector._div = new Element('div'); // Make sure the browser treats the selector as valid. Test on an // isolated element to minimize cost of this check. try { Selector._div.querySele... |
show: function(){ this.onBeforeLoad(); }, | show : function(){ this.onFocus(); }, | show: function(){ this.onBeforeLoad(); }, |
this._top = win || content; this._top.addEventListener("resize", this._resizeTimer.closure.tell, true); | show: function (minor, filter, win) { this._hintMode = this._hintModes[minor]; dactyl.assert(this._hintMode); commandline.input(this._hintMode.prompt + ": ", null, { onChange: this.closure._onInput }); modes.extended = modes.HINTS; this.hintKeys = events.fromString(options["hintke... | |
commandline.input(this._hintMode.prompt + ": ", null, { onChange: this.closure._onInput }); | commandline.input(this._hintMode.prompt + ": ", null, { extended: modes.HINTS, leave: function () { hints.hide(); }, onChange: this.closure._onInput }); | show: function (minor, filter, win) { this._hintMode = this._hintModes[minor]; dactyl.assert(this._hintMode); commandline.input(this._hintMode.prompt + ": ", null, { onChange: this.closure._onInput }); modes.extended = modes.HINTS; this.hintKeys = events.fromString(options["hintke... |
null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(i){return e.step(i)}this.startTime=K();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=thi... | this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.opt... | null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(i){return e.step(i)}this.startTime=K();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=thi... |
commandline.input(this._hintMode.prompt + ": ", null, { onChange: this.closure._onInput }); | commandline.input(this._hintMode.prompt, null, { onChange: this.closure._onInput }); | show: function (minor, filter, win) { this._hintMode = this._hintModes[minor]; liberator.assert(this._hintMode); commandline.input(this._hintMode.prompt + ": ", null, { onChange: this.closure._onInput }); modes.extended = modes.HINTS; this._submode = minor; this._hintString... |
this._prevInput = ""; | this.prevInput = ""; | show: function (minor, filter, win) { this._hintMode = this._hintModes[minor]; dactyl.assert(this._hintMode); commandline.input(this._hintMode.prompt + ": ", null, { onChange: this.closure._onInput }); modes.extended = modes.HINTS; this._submode = minor; this._hintString = ... |
show: function(element) { element = $(element); element.style.display = ''; return element; }, | 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(... | show: function(element) { element = $(element); element.style.display = ''; return element; }, |
modes.reset(); | modes.pop(); | show: function (minor, filter, win) { this._hintMode = this._hintModes[minor]; dactyl.assert(this._hintMode); commandline.input(this._hintMode.prompt + ": ", null, { onChange: this.closure._onInput }); modes.extended = modes.HINTS; this.hintKeys = events.fromString(options["hintke... |
window.getSelection().empty(); | this.showCanvas = function (x, y, parent_node) { if (!parent_node) { return; } if (parent_node.lastChild != this.html_canvas) { parent_node.appendChild(this.html_canvas); this.setCanvasStyle("blue", "white", 5); } window.getSelection().empty(); this.ctx.beginPath(); this.ctx.moveTo... | |
var expectRE = new RegExp('^' + expectedLines[i] + '$'); | try { var expectRE = new RegExp('^' + expectedLines[i] + '$'); } catch (e) { result.push('regex match failed: ' + repr(gotLine) + ' (' + expectedLines[i] + ')'); continue; } | doctest.JSRunner.prototype.showCheckDifference = function (got, expectedRegex) { if (expectedRegex.charAt(0) != '^') { throw 'Unexpected regex, no leading ^'; } if (expectedRegex.charAt(expectedRegex.length-1) != '$') { throw 'Unexpected regex, no trailing $'; } expectedRegex = expectedRegex.substr(1, expect... |
var updateForced = (aArg !== null); | var updateForced = typeof aArg === "number"; | function showFollowersStatus(aArg) { self.currentFilter = self.filterNameTimeline; var updateForced = (aArg !== null); if (updateForced || !share.twitterStatusesJSONCache) { if (twitterStatusesPending) { display... |
var url = "/dxr/getinfo.cgi?virtroot=" + virtroot + "&tree=" + tree + "&div=" + infoDivID++ | var url = virtroot + sep + "getinfo.cgi?virtroot=" + virtroot + "&tree=" + tree + "&div=" + infoDivID++ | function showInfo(node) { var type = node.className; var name = node.innerHTML; var line = node.parentNode.id.replace('l', ''); var file = location.pathname.replace(virtroot + '/' + tree + '/', '').replace('.html', ''); var url = "/dxr/getinfo.cgi?virtroot=" + virtroot + "&tree=" + tree + "&div=" + infoDivID++ if... |
var join_message_ar = ["<message from='"+nick+"' to='4@dev.speeqe.com/3' id='1' type='groupchat'><x xmlns='jabber:x:event'><composing/></x></message>"]; var join_message_jq = $(join_message_ar.join("")); var body_elem = document.createElement("body"); var body_text = document.createTextNode("/me has "+status+" the room... | var join_message_ar = ["<message from='", nick, "' to='4@dev.speeqe.com/3' id='1' type='groupchat'><x xmlns='jabber:x:event'><composing/></x><body>/me has ", status, " the room.</body></message>"]; try { var join_message_jq = Speeqe.text_to_xml(join_message_ar.join("")); app.messageView().displayMessage(nick, room_avat... | showJoinLeave: function(nick,status) { //test if we are to display message along with chat messages. var chatwindow = $("#chatWindow_chatpane"); if (chatwindow.hasClass('joinleave')) { var room_avatar = '/avatar-service/lookup/?sha1=f2f8ab835b10d66f9233518d1047f3014b3857cf'; var join_message_ar = ["<messag... |
var blocker = $('blocker'); if (!blocker) { $(document.body).insert('<div id="blocker"></div>'); blocker = $('blocker'); } blocker.setStyle({top: 0, left: 0, width: '100%', height: screen.height+'px', position: 'fixed'}); | var showLoading = function() { var blocker = $('blocker'); if (!blocker) { $(document.body).insert('<div id="blocker"></div>'); blocker = $('blocker'); } blocker.setStyle({top: 0, left: 0, width: '100%', height: screen.height+'px', position: 'fixed'}); $$('.loader').invoke('addClassName', '... | |
this._picker.set("contentView", this.get("masterView")); this._picker.set("extraRightOffset", this.get("pointerDistanceFromEdge")); | showMasterPicker: function(view) { if (this._picker && this._picker.get("isVisibleInWindow")) return; if (!this._picker) { var pp = this.get("pickerPane"); this._picker = pp.create({ }); this._picker.set("contentView", this.get("masterView")); this._picker.set("extraRightOffset", this.get("p... | |
this._picker.set("contentView", this.get("masterView")); this._picker.set("extraRightOffset", this.get("pointerDistanceFromEdge")); | showMasterPicker: function(view) { if (this._picker && this._picker.get("isVisibleInWindow")) return; if (!this._picker) { var pp = this.get("pickerPane"); this._picker = pp.create({ }); this._picker.set("contentView", this.get("masterView")); this._picker.set("extraRightOffset", this.get("p... | |
let file = window.content.document.location.pathname.split("/").pop() || "[No Name]"; let title = window.content.document.title || "[No Title]"; | let file = content.document.location.pathname.split("/").pop() || "[No Name]"; let title = content.document.title || "[No Title]"; | showPageInfo: function (verbose, sections) { // Ctrl-g single line output if (!verbose) { let file = window.content.document.location.pathname.split("/").pop() || "[No Name]"; let title = window.content.document.title || "[No Title]"; let info = template.map("gf", ... |
dojo.addClass(node, "highlighted"); | dojo.addClass(node, 'highlighted'); | function showPopup(node) { var name = node.innerHTML; var type = node.className; var line = node.parentNode.id.replace('l', ''); var file = location.pathname.replace(virtroot + '/' + tree + '/', '').replace('.html', ''); var url = virtroot + "/getinfo.cgi?virtroot=" + virtroot + "&tree=" + tree // put back the to... |
services.observer.notifyObservers(null, "dactyl-cleanup", null); | function shutdown(data, reason) { dump("dactyl: bootstrap: shutdown\n"); for (let factory in values(components)) // TODO: Categories; factory.unregister(); services.observer.notifyObservers(null, "dactyl-cleanup", null);} | |
function shutdown(data, reason) { dump("dactyl: bootstrap: shutdown\n") } | function shutdown(data, reason) { dump("dactyl: bootstrap: shutdown\n"); for (let factory in values(components)) factory.unregister(); services.observer.notifyObservers(null, "dactyl-cleanup", null); } | function shutdown(data, reason) { dump("dactyl: bootstrap: shutdown\n") } |
services.observer.notifyObservers(null, "dactyl-cleanup-modules", null); | function shutdown(data, reason) { dump("dactyl: bootstrap: shutdown " + reasonToString(reason) + "\n"); if (reason != APP_SHUTDOWN) { if ([ADDON_UPGRADE, ADDON_DOWNGRADE, ADDON_UNINSTALL].indexOf(reason) >= 0) services.observer.notifyObservers(null, "dactyl-purge", null); services.observe... | |
1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ga=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,db=/(<([\w:]+)[^>]*?)\/>/g,eb=/^(?:area|br|col|embed|hr|... | 1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|... | 1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ga=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,db=/(<([\w:]+)[^>]*?)\/>/g,eb=/^(?:area|br|col|embed|hr|... |
siblings: function(element) { element = $(element); return element.previousSiblings().reverse().concat(element.nextSiblings()); }, | 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(... | siblings: function(element) { element = $(element); return element.previousSiblings().reverse().concat(element.nextSiblings()); }, |
SC.platform.bounceOnScroll = YES; | simulateTouchEvents: function() { // Touch events are supported natively, no need for this. if (this.touch) { //@ if (debug) SC.Logger.info("Can't simulate touch events in an environment that supports them."); //@ endif return; } // Tell the app that we now "speak" touch SC.platform... | |
"url": '/volumes/create', | "url": '/volumes', | DcmgrGUI.prototype.snapshotPanel = function(){ var total = 0; var maxrow = 10; var page = 1; var list_request = { "url" : DcmgrGUI.Util.getPagePath('/snapshots/list/',page), "data" : DcmgrGUI.Util.getPagenateData(page,maxrow) }; DcmgrGUI.List.prototype.getEmptyData = function(){ return [{ "uuid... |
list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page,c_list.maxrow) | list_request.data = DcmgrGUI.Util.getPagenateData(c_pagenate.start,c_pagenate.row); | DcmgrGUI.prototype.snapshotPanel = function(){ var total = 0; var maxrow = 10; var page = 1; var list_request = { "url" : DcmgrGUI.Util.getPagePath('/snapshots/list/',page), "data" : DcmgrGUI.Util.getPagenateData(page,maxrow) }; DcmgrGUI.List.prototype.getEmptyData = function(){ return [{ "uuid... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.