rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
'class': 'taberareloo_button' | 'class': 'taberareloo_button', 'style': TBRL.styles.button | general: function(ev){ // fix stack overflow => reset stack callLater(0, function(){ if(TBRL.field_shown){ TBRL.field_delete(); } else { if(!TBRL.field){ TBRL.field = $N('div', { id: 'taberareloo_background' }); TBRL.ol = $N('ol', { id: 't... |
src: ext.ICON }), $N('span', null, ext.name)]); | src: ext.ICON, 'style': TBRL.styles.img }), $N('span', { 'style': TBRL.styles.span }, ext.name)]); | general: function(ev){ // fix stack overflow => reset stack callLater(0, function(){ if(TBRL.field_shown){ TBRL.field_delete(); } else { if(!TBRL.field){ TBRL.field = $N('div', { id: 'taberareloo_background' }); TBRL.ol = $N('ol', { id: 't... |
'class': 'taberareloo_item' | 'class': 'taberareloo_item', 'style': TBRL.styles.li | general: function(ev){ // fix stack overflow => reset stack callLater(0, function(){ if(TBRL.field_shown){ TBRL.field_delete(); } else { if(!TBRL.field){ TBRL.field = $N('div', { id: 'taberareloo_background' }); TBRL.ol = $N('ol', { id: 't... |
if(TBRL.field_shown){ TBRL.field_delete(); } else { if(!TBRL.field){ TBRL.field = $N('div', { id: 'taberareloo_background' | callLater(0, function(){ if(TBRL.field_shown){ TBRL.field_delete(); } else { if(!TBRL.field){ TBRL.field = $N('div', { id: 'taberareloo_background' }); TBRL.ol = $N('ol', { id: 'taberareloo_list' }); TBRL.field.appendChild(TBRL.ol); } TBRL.field_shown = true; TBRL.field.addEventListener('click', TBRL.field_clicked, tru... | general: function(ev){ if(TBRL.field_shown){ TBRL.field_delete(); } else { if(!TBRL.field){ TBRL.field = $N('div', { id: 'taberareloo_background' }); TBRL.ol = $N('ol', { id: 'taberareloo_list' }); TBRL.field.appendChild(TBRL.ol); } TBRL.f... |
TBRL.ol = $N('ol', { id: 'taberareloo_list' }); TBRL.field.appendChild(TBRL.ol); | (document.body || document.documentElement).appendChild(TBRL.field); TBRL.buttons[0].focus(); | general: function(ev){ if(TBRL.field_shown){ TBRL.field_delete(); } else { if(!TBRL.field){ TBRL.field = $N('div', { id: 'taberareloo_background' }); TBRL.ol = $N('ol', { id: 'taberareloo_list' }); TBRL.field.appendChild(TBRL.ol); } TBRL.f... |
TBRL.field_shown = true; TBRL.field.addEventListener('click', TBRL.field_clicked, true); var ctx = TBRL.createContext(); var exts = Extractors.check(ctx); TBRL.ctx = ctx; TBRL.exts = exts; TBRL.buttons = exts.map(function(ext, index){ var button = $N('button', { 'type' : 'button', 'class': 'taberareloo_button' }, [$N... | }); | general: function(ev){ if(TBRL.field_shown){ TBRL.field_delete(); } else { if(!TBRL.field){ TBRL.field = $N('div', { id: 'taberareloo_background' }); TBRL.ol = $N('ol', { id: 'taberareloo_list' }); TBRL.field.appendChild(TBRL.ol); } TBRL.f... |
context.generate = function () { let [begin, end] = item.url.split("%s"); return history.get({ uri: window.makeURI(begin), uriIsPrefix: true }).map(function (item) { let rest = item.url.length - end.length; let query = item.url.substring(begin.length, rest); if (item.url.substr(rest) == end && query.indexOf("&") == -1... | context.generate = function () array(b.tags for (b in bookmarkcache) if (b.tags)).flatten().uniq().array; context.keys = { text: function (tag) prefix + tag, description: util.identity }; context.filters.push(function (tag) have.indexOf(tag) < 0); }, | context.generate = function () { let [begin, end] = item.url.split("%s"); return history.get({ uri: window.makeURI(begin), uriIsPrefix: true }).map(function (item) { let rest = item.url.length - end.length; ... |
item.url = decodeURIComponent(query.replace(/#.*/, "")); return item; | try { item.url = decodeURIComponent(query.replace(/#.*/, "")); return item; } catch (e) {} | context.generate = function () { let [begin, end] = item.url.split("%s"); return history.get({ uri: window.makeURI(begin), uriIsPrefix: true }).map(function (item) { let rest = item.url.length - end.length; ... |
let dirNames = services.get("environment").get("PATH").split(RegExp(dactyl.has("Win32") ? ";" : ":")); | let dirNames = services.get("environment").get("PATH").split(RegExp(dactyl.has("WINNT") ? ";" : ":")); | context.generate = function () { let dirNames = services.get("environment").get("PATH").split(RegExp(dactyl.has("Win32") ? ";" : ":")); let commands = []; for (let [, dirName] in Iterator(dirNames)) { let dir = io.File(dirName); ... |
context.generate = function () self.objectKeys(obj, !recurse); | context.generate = function () self.objectKeys(args.obj, !recurse); | context.generate = function () self.objectKeys(obj, !recurse); |
indicator = "%" | indicator = "%"; | context.generate = function () util.map(array.iterValues(browsers), function ([i, browser]) { let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i =... |
id: i - 1, | context.generate = function () util.map(array.iterValues(browsers), function ([i, browser]) { let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i =... | |
util.dump(String(file), file && file.path); | context.generate = function generate_file() { try { util.dump(String(file), file && file.path); return io.File(file || dir).readDirectory(); } catch (e) { util.reportError(e); ... | |
catch (e) { util.reportError(e); } | catch (e) {} | context.generate = function generate_file() { try { util.dump(String(file), file && file.path); return io.File(file || dir).readDirectory(); } catch (e) { util.reportError(e); ... |
let uri = channel.URI.QueryInterface(Ci.nsIJARURI); | context.generate = function generate_jar() { let uri = channel.URI.QueryInterface(Ci.nsIJARURI); let file = util.getFile(uri.JARFile); if (file) { // let jar = services.zipReader.getZip(file); Crashes. ... | |
let path = decodeURI(getDir(uri.JAREntry)); | let filter = RegExp("^" + util.regexp.escape(decodeURI(getDir(uri.JAREntry))) + "[^/]*/?$"); | context.generate = function generate_jar() { let uri = channel.URI.QueryInterface(Ci.nsIJARURI); let file = util.getFile(uri.JARFile); if (file) { // let jar = services.zipReader.getZip(file); Crashes. ... |
for (s in iter(jar.findEntries("*"))) if (s.indexOf(path) == 0) | for (s in iter(jar.findEntries("*"))) if (filter.test(s)) | context.generate = function generate_jar() { let uri = channel.URI.QueryInterface(Ci.nsIJARURI); let file = util.getFile(uri.JARFile); if (file) { // let jar = services.zipReader.getZip(file); Crashes. ... |
YUI().use('node', 'overlay', 'imageloader', function(Y) { var xy = Y.one(node).getXY(); imageNode = Y.Node.create('<img />'); imageNode.set('id', Y.guid()); var overlay = new Y.Overlay( { headerContent : 'Popup: Click to close.', bodyContent : imageNode, width : 'auto', height : 'auto', centered : node, visible : false... | YUI().use('node', 'overlay', 'imageloader', function(Y) { var xy = Y.one(node).getXY(); imageNode = Y.Node.create('<img />'); imageNode.set('id', Y.guid()); var overlay = new Y.Overlay( { headerContent : 'Popup: Click to close.', bodyContent : imageNode, width : 'auto', height : 'auto', centered : node, visible : false... | function generatePopup(node, image, imagetext, doubleclick) { YUI().use('node', 'overlay', 'imageloader', function(Y) { var xy = Y.one(node).getXY(); imageNode = Y.Node.create('<img />'); imageNode.set('id', Y.guid()); var overlay = new Y.Overlay( { headerContent : 'Popup: Click to close.', bodyContent : ima... |
Y.on('click', Y.bind(overlay.hide, overlay), overlay.get('contentBox')); if (doubleclick) { Y.on('dblclick', function(e) { overlay.show(); }, node); } else { Y.on('click', function(e) { overlay.show(); }, node); } }); | overlay.render(); Y.on('click', Y.bind(overlay.hide, overlay), overlay.get('contentBox')); if (doubleclick) { Y.on('dblclick', function(e) { overlay.show(); }, node); } else { Y.on('click', function(e) { overlay.show(); }, node); } }); | function generatePopup(node, image, imagetext, doubleclick) { YUI().use('node', 'overlay', 'imageloader', function(Y) { var xy = Y.one(node).getXY(); imageNode = Y.Node.create('<img />'); imageNode.set('id', Y.guid()); var overlay = new Y.Overlay( { headerContent : 'Popup: Click to close.', bodyContent : ima... |
name = name.replace(/-/g, "__"); | buildUtil.generateSym = function(/*String*/name){ var m = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; var len = m.length; var s; if(buildUtil.symctr < len*len){ s = m.charAt(Math.floor(buildUtil.symctr/len)) +m.charAt(buildUtil.symctr%len); }else{ s = m.charAt(Math.floor(buildUtil.symctr/(len*... | |
get: function () { if (desc.get) var val = desc.get.call(this, value); return val === undefined ? value : val; }, | get pref() prefs.get("accessibility.browsewithcaret"), | get: function () { if (desc.get) var val = desc.get.call(this, value); return val === undefined ? value : val; }, |
get: function () { let buffers = []; for (let [i, browser] in this.browsers) { let title = browser.contentTitle || "(Untitled)"; let uri = browser.currentURI.spec; let number = i + 1; buffers.push([number, title, uri]); } return buffers; }, | get closedTabs() services.get("json").decode(services.get("sessionStore").getClosedTabData(window)), | get: function () { let buffers = []; for (let [i, browser] in this.browsers) { let title = browser.contentTitle || "(Untitled)"; let uri = browser.currentURI.spec; let number = i + 1; buffers.push([number, title, uri]); } return buffers; }, |
get: function(name) { var value = null; if (document.cookie && document.cookie.length) { var _cookie = document.cookie; var cookies = _cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var _cookie = cookies[i].strip(); if (_cookie.startsWith(name + '=')) { value = decodeURIComponent(_cookie.substr(name.le... | document.cookie=result;},get:function(name) {var value=null;if(document.cookie&&document.cookie.length) {var _cookie=document.cookie;var cookies=_cookie.split(';');for(var i=0;i<cookies.length;i++) {var _cookie=cookies[i].strip();if(_cookie.startsWith(name+'=')) {value=decodeURIComponent(_cookie.substr(name.length+1)).... | get: function(name) { var value = null; if (document.cookie && document.cookie.length) { var _cookie = document.cookie; var cookies = _cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var _cookie = cookies[i].strip(); if (_cookie.startsWith(name + '=')) ... |
var _cookie = cookies[i]; var valuePos = name.length + 1; if (_cookie.substr(0, valuePos + 1).strip() == (name + '=')) | var _cookie = cookies[i].strip(); if (_cookie.startsWith(name + '=')) | get: function(name) { var value = null; if (document.cookie && document.cookie.length) { var _cookie = document.cookie; var cookies = _cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var _cookie = cookies[i]; var valuePos = name.length + 1; if (_cookie.... |
value = decodeURIComponent(_cookie.substr(valuePos + 1)).strip(); | value = decodeURIComponent(_cookie.substr(name.length + 1)).strip(); | get: function(name) { var value = null; if (document.cookie && document.cookie.length) { var _cookie = document.cookie; var cookies = _cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var _cookie = cookies[i]; var valuePos = name.length + 1; if (_cookie.... |
this.context=a.context}return c.isArray(a)?this.setArray(a):c.makeArray(a,this)},selector:"",jquery:"1.4",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){a=c(a||null);a.prevObject... | a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a... | this.context=a.context}return c.isArray(a)?this.setArray(a):c.makeArray(a,this)},selector:"",jquery:"1.4",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){a=c(a||null);a.prevObject... |
} else { throw "RenderDelegate expected property '" + property + "', but the view " + "does not have this property as a displayProperty."; | get: function(property) { if (this[property] !== undefined) return this[property]; var displayProperty = 'display' + property.capitalize(); if (this._displayPropertiesLookup[displayProperty]) { return this.view.get(displayProperty); } else if (this._displayPropertiesLookup[property]) { r... | |
get pref() prefs.get("accessibility.browsewithcaret"), | get mask() this }, { | get pref() prefs.get("accessibility.browsewithcaret"), |
get rangeFind() buffer.localStore.rangeFind, | get selection() { try { return this.selectionController.getSelection(Ci.nsISelectionController.SELECTION_NORMAL) } catch (e) { return null; }} | get rangeFind() buffer.localStore.rangeFind, |
dump("dactyl: bootstrap: create module: " + this.contractID + "\n"); | get module() { try { Object.defineProperty(this, "module", { value: {}, enumerable: true }); JSMLoader.load(this.url, this.module); JSMLoader.registerGlobal(this.url, this.module.global); return this.module; } catch (e) { delete this.module... | |
JSMLoader.registerGlobal(this.url, this.module.NSGetFactory); | JSMLoader.registerGlobal(this.url, this.module.global); | get module() { Object.defineProperty(this, "module", { value: {}, enumerable: true }); JSMLoader.load(this.url, this.module); JSMLoader.registerGlobal(this.url, this.module.NSGetFactory); return this.module; }, |
get scripts() this.isComposeWindow ? ["compose/compose.js"] : [ "addressbook.js", "mail.js", "tabs.js", ], | get visualbellWindow() document.getElementById(this.mainWindowId), | get scripts() this.isComposeWindow ? ["compose/compose.js"] : [ "addressbook.js", "mail.js", "tabs.js", ], |
get WORD () { return 2; } | get rows() { return options.listboxMaxRows; }, | get WORD () { return 2; } |
get selectionController() config.browser.docShell .QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsISelectionDisplay) .QueryInterface(Ci.nsISelectionController), | get focusedWindow() this.getForcusedWindow(), | get selectionController() config.browser.docShell .QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsISelectionDisplay) .QueryInterface(Ci.nsISelectionController), |
get content() window.content, | get content() this.config.browser.contentWindow || window.content, | get content() window.content, |
rtp = "~/" + (dactyl.has("Win32") ? "" : ".") + config.name; | rtp = "~/" + (dactyl.has("WINNT") ? "" : ".") + config.name; | get runtimePath() { const rtpvar = config.idname + "_RUNTIME"; let rtp = services.get("environment").get(rtpvar); if (!rtp) { rtp = "~/" + (dactyl.has("Win32") ? "" : ".") + config.name; services.get("environment").set(rtpvar, rtp); } return rtp; }, |
get session() { let sh = window.getWebNavigation().sessionHistory; let obj = []; obj.index = sh.index; obj.__iterator__ = function () array.iterItems(this); for (let i in util.range(0, sh.count)) { obj[i] = update(Object.create(sh.getEntryAtIndex(i, false)), { index: i }); memoize(obj[i], "icon", function () services.f... | get: function get(filter, maxItems) { let query = services.get("history").getNewQuery(); let options = services.get("history").getNewQueryOptions(); if (typeof filter == "string") filter = { searchTerms: filter }; for (let [k, v] in Iterator(filter)) query[k] = v; options.sortingMode = options.SORT_BY_DATE_DESCENDING... | get session() { let sh = window.getWebNavigation().sessionHistory; let obj = []; obj.index = sh.index; obj.__iterator__ = function () array.iterItems(this); for (let i in util.range(0, sh.count)) { obj[i] = update(Object.create(sh.getEntryAtIndex(i, false)), ... |
var substrings = [text.substring(filter.length)]; | var substrings = [text]; | get substrings() { let items = this.items; if (items.length == 0 || !this.hasItems) return []; if (this._substrings) return this._substrings; let fixCase = this.ignoreCase ? String.toLowerCase : util.identity; let text = fixCase(items[0].text); // Exce... |
len = i + m; | len = i + m - 1; | get substrings() { let items = this.items; if (items.length == 0 || !this.hasItems) return []; if (this._substrings) return this._substrings; let fixCase = this.ignoreCase ? String.toLowerCase : util.identity; let text = fixCase(items[0].text); // Exce... |
return len == list.length ? list : list.substr(0, len); | return len == list.length ? list : list.substr(0, Math.max(len, 0)); | get substrings() { let items = this.items; if (items.length == 0 || !this.hasItems) return []; if (this._substrings) return this._substrings; let fixCase = this.ignoreCase ? String.toLowerCase : util.identity; let text = fixCase(items[0].text); // Exce... |
return list = [[mode, left, right] for ([left, [mode, right]] in this.abbrevs()) if (searchFilter.indexOf(mode) >= 0 && left.indexOf(lhs || "") == 0)]; | return [[mode, left, right] for ([left, [mode, right]] in this.abbrevs()) if (searchFilter.indexOf(mode) >= 0 && left.indexOf(lhs || "") == 0)]; | getAbbreviations: function (filter, lhs) { // ! -> list all, on c or i ! matches too let searchFilter = (filter == "!") ? "!ci" : filter + "!"; return list = [[mode, left, right] for ([left, [mode, right]] in this.abbrevs()) if (searchFilter.indexOf(mode) >= 0 && left.i... |
addon.__defineGetter__("userDisabled", function () getRdfProperty("userDisabled") == "true"); | addon.__defineGetter__("userDisabled", function () getRdfProperty(addon, "userDisabled") == "true"); | getAddonByID: function (id, callback) { callback = callback || util.identity; let addon = id; if (!isobject(addon)) addon = services.get("extensionManager").getItemForID(id); if (!addon) ... |
addon.__defineGetter__("userDisabled", function () getRdfProperty(addon, "userDisabled") == "true"); | addon.__defineGetter__("userDisabled", function () getRdfProperty(addon, "userDisabled") === "true"); | getAddonByID: function (id, callback) { callback = callback || util.identity; let addon = id; if (!isObject(addon)) addon = services.get("extensionManager").getItemForID(id); if (!addon) ... |
services.get("extensionManager")[val ? "enableItem" : "disableItem"](this.id); | services.get("extensionManager")[val ? "disableItem" : "enableItem"](this.id); | getAddonByID: function (id, callback) { callback = callback || util.identity; let addon = id; if (!isObject(addon)) addon = services.get("extensionManager").getItemForID(id); if (!addon) ... |
res.append(this.getAddonById(item)); return res; | res.push(this.getAddonByID(item)); callback(res); | getAddonsByTypes: function (types, callback) { let res = []; for (let [,type] in Iterator(types)) for (let [,item] in Iterator(services.get("extensionManager") .getItemList(Ci.nsIUpdateItem["TYPE_" + type.toU... |
getAllHeaders: function() { try { return this.getAllResponseHeaders(); } catch (e) { return null } }, | 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(... | getAllHeaders: function() { try { return this.getAllResponseHeaders(); } catch (e) { return null } }, |
getAllResponseHeaders: function() { return this.transport.getAllResponseHeaders(); }, | 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(... | getAllResponseHeaders: function() { return this.transport.getAllResponseHeaders(); }, |
function getBindingVariables(bindingElement, bindingType) | function getBindingVariables(bindingElement, binding) | function getBindingVariables(bindingElement, bindingType){ var variables = new Array(); for (var i = 0; i < bindingElement.options.length; i++) if (bindingElement.options[i].selected) { var variable = { }; variable.variable = Number(bindingElement.options[... |
for (var i = 0; i < bindingElement.options.length; i++) | for (var i in bindingElement.options) | function getBindingVariables(bindingElement, bindingType){ var variables = new Array(); for (var i = 0; i < bindingElement.options.length; i++) if (bindingElement.options[i].selected) { var variable = { }; variable.variable = Number(bindingElement.options[... |
variable.bindingType = bindingType; | variable.binding = binding.binding; variable.bindingType = binding.type; variable.visType = binding.visType; | function getBindingVariables(bindingElement, bindingType){ var variables = new Array(); for (var i = 0; i < bindingElement.options.length; i++) if (bindingElement.options[i].selected) { var variable = { }; variable.variable = Number(bindingElement.options[... |
this.getCachedSrc = function(filePath) { return sourceCache[filePath]; } | this.getCachedSrc = function(path) { return sourceCache[path]; } | this.getCachedSrc = function(filePath) { return sourceCache[filePath]; } |
this.getCachedSrc = function(pkg) { return sourceCache[pkg]; } | this.getCachedSrc = function(filePath) { return sourceCache[filePath]; } | this.getCachedSrc = function(pkg) { return sourceCache[pkg]; } |
filename: services.io.newFileURI(File(io.sourcing.file)).spec, | filename: io.sourcing.file[0] == "[" ? io.sourcing.file : services.io.newFileURI(File(io.sourcing.file)).spec, | getCaller: function (frame) { if (io.sourcing) return { __proto__: frame, filename: services.io.newFileURI(File(io.sourcing.file)).spec, lineNumber: io.sourcing.line }; return frame; }, |
if(!~values.indexOf(pair.cand.value)){ | if(pair && !~values.indexOf(pair.cand.value)){ | getCandidates: function(hint){ var cands = []; this.candidates.forEach(function(cand){ var score = this.scoreFor(cand.reading, hint); if(score > this.score) cands.push({ score: score, cand : cand }); }, this); var values = this.values(); var index = values.inde... |
}; | } | function getCharset(text){ var matched = text.match(/charset\s*=\s*(\S+)/); return (matched && !matched[1].match(/UTF-8/i) && matched[1]);}; |
character:this.pos.from.offset}}};e.prototype={importCode:function(a){this.history.push(null,null,i(a));this.history.reset()},getCode:function(){if(!this.container.firstChild)return"";var a=[];select.markSelection();forEach(k(this.container.firstChild),method(a,"push"));webkitLastLineHack(this.container);select.selectM... | activeTokens:null,cursorActivity:null,lineNumbers:false,firstLineNumber:1,indentUnit:2,domain:null,noScriptCaching:false});var G=document.selection&&window.ActiveXObject&&/MSIE/.test(navigator.userAgent);s.prototype={init:function(){this.options.initCallback&&this.options.initCallback(this);this.options.lineNumbers&&th... | character:this.pos.from.offset}}};e.prototype={importCode:function(a){this.history.push(null,null,i(a));this.history.reset()},getCode:function(){if(!this.container.firstChild)return"";var a=[];select.markSelection();forEach(k(this.container.firstChild),method(a,"push"));webkitLastLineHack(this.container);select.selectM... |
var c = Models.getPostConfig(TBRL.Config['services'], poster.name, ps); | var c = Models.getPostConfig(TBRL.Config['services'], poster.name, ps, poster); | Models.getConfig = function(ps, poster){ var c = Models.getPostConfig(TBRL.Config['services'], poster.name, ps); if(c === 'default'){ return 'default'; } else if(c === undefined || 'enabled' === c){ return 'enabled'; } else { return 'disabled'; }} |
let ed = dactyl.focus; | let ed = dactyl.focusedElement; | getController: function () { let ed = dactyl.focus; if (!ed || !ed.controllers) return null; return ed.controllers.getControllerForCommand("cmd_beginLine"); } |
let ed = Editor.getEditor(); | let ed = dactyl.focus; | getController: function () { let ed = Editor.getEditor(); if (!ed || !ed.controllers) return null; return ed.controllers.getControllerForCommand("cmd_beginLine"); } |
let selection = window.content.getSelection(); | let win = tabs.localStore.focusedFrame || content; let selection = win.getSelection(); if (selection.rangeCount == 0) return ""; | getCurrentWord: function () { let selection = window.content.getSelection(); let range = selection.getRangeAt(0); if (selection.isCollapsed) { let selController = this.selectionController; let caretmode = selController.getCaretEnabled(); selController.setCaretEn... |
let selController = this.selectionController; let caretmode = selController.getCaretEnabled(); selController.setCaretEnabled(true); | let controller = util.selectionController(win); let caretmode = controller.getCaretEnabled(); controller.setCaretEnabled(true); | getCurrentWord: function () { let selection = window.content.getSelection(); let range = selection.getRangeAt(0); if (selection.isCollapsed) { let selController = this.selectionController; let caretmode = selController.getCaretEnabled(); selController.setCaretEn... |
selController.wordMove(false, false); | controller.wordMove(false, false); | getCurrentWord: function () { let selection = window.content.getSelection(); let range = selection.getRangeAt(0); if (selection.isCollapsed) { let selController = this.selectionController; let caretmode = selController.getCaretEnabled(); selController.setCaretEn... |
selController.wordMove(true, true); selController.setCaretEnabled(caretmode); | controller.wordMove(true, true); controller.setCaretEnabled(caretmode); | getCurrentWord: function () { let selection = window.content.getSelection(); let range = selection.getRangeAt(0); if (selection.isCollapsed) { let selController = this.selectionController; let caretmode = selController.getCaretEnabled(); selController.setCaretEn... |
let win = buffer.focusedFrame || window.content; | let win = buffer.focusedFrame || content; | getCurrentWord: function () { let win = buffer.focusedFrame || window.content; let selection = win.getSelection(); if (selection.rangeCount == 0) return ""; let range = selection.getRangeAt(0); if (selection.isCollapsed) { let controller = util.selectionContr... |
let selController = this.selectionController; | let selController = buffer.selectionController; | getCurrentWord: function () { function _getCurrentWord (win) { let selection = win.getSelection(); if (selection.rangeCount <= 0) return; let range = selection.getRangeAt(0); if (selection.isCollapsed) { let selController = this.select... |
hint : text.slice(start, caret) | hint : text.substring(start, caret) | getCurrentWord: function(){ var text = this.tags.value; var caret = this.tags.selectionStart; var start = text.lastIndexOf(this.delimiter, caret - 1) + 1; return { start : start, caret : caret, hint : text.slice(start, caret) }; }, |
this.measure.appendChild($T(this.tags.value.substr(0, pos))); | this.measure.appendChild($T(this.tags.value.substring(0, pos))); | getCursorLeft: function(pos){ this.measure.style.visibility = 'visible'; $D(this.measure); this.measure.appendChild($T(this.tags.value.substr(0, pos))); var x = this.measure.getBoundingClientRect(); //this.measure.style.visibility = 'collapse'; return x.width; }, |
var location = window.location.toString(); | var location = window.location.toString().split('#')[0]; | this.getCwd = function() { if(!cwd) { var location = window.location.toString(); cwd = location.substring(0, location.lastIndexOf('/') + 1); } return cwd; } |
thisRef.generateUserDropdownOptions(); | var getData = function(data) { thisRef.Data.mem.users = _Settings.translateData(data); if (!(this.Data.user || $.bbq.getState('user'))) thisRef.drawUsers(); } | |
return Models.getPostConfig(config, m.name, ps) === 'default'; | return Models.getPostConfig(config, m.name, ps, m) === 'default'; | Models.getDefaults = function(ps){ var config = TBRL.Config['services']; return this.check(ps).filter(function(m){ return Models.getPostConfig(config, m.name, ps) === 'default'; });} |
getDimensions: function() { var dimensions = { }, B = Prototype.Browser; $w('width height').each(function(d) { var D = d.capitalize(); if (B.WebKit && !document.evaluate) { dimensions[d] = self['inner' + D]; } else if (B.Opera && parseFloat(window.opera.version()) < 9.5) { dimensions[d] = document.body['client' + D] ... | 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(... | getDimensions: function() { var dimensions = { }, B = Prototype.Browser; $w('width height').each(function(d) { var D = d.capitalize(); if (B.WebKit && !document.evaluate) { // Safari <3.0 needs self.innerWidth/Height dimensions[d] = self['inner' + D]; } else if (B.Opera && parseFloa... |
if (selection && (selection.baseNode.baseURI == e.srcElement.baseURI) && | if (selection && selection.baseNode && (selection.baseNode.baseURI == e.srcElement.baseURI) && | function getDragSelection(e) { var data; var selection = window.getSelection(); if (e.srcElement.parentNode.nodeName == "A") { if (selection && (selection.baseNode.baseURI == e.srcElement.baseURI) && (selection.baseOffset != selection.extentOffset)) { data = selection.toString(); } else { data = e.srcElement... |
(selection.baseNode.data== e.srcElement.data) && | function getDragSelection(e) { var data; var selection = window.getSelection(); var parent_node = e.srcElement.parentNode; while(parent_node && parent_node.nodeName != "A") { parent_node = parent_node.parentNode; } if (parent_node) { if (selection && selection.baseNode && (selection.baseNode.baseURI == e.srcEl... | |
if (e.srcElement.parentNode.nodeName == "A") { | var parent_node = e.srcElement.parentNode; while(parent_node && parent_node.nodeName != "A") { parent_node = parent_node.parentNode; } if (parent_node) { | function getDragSelection(e) { var data; var selection = window.getSelection(); if (e.srcElement.parentNode.nodeName == "A") { if (selection && selection.baseNode && (selection.baseNode.baseURI == e.srcElement.baseURI) && (selection.baseOffset != selection.extentOffset)) { data = selection.toString(); } e... |
data = e.srcElement.parentNode.href; | data = parent_node.href; | function getDragSelection(e) { var data; var selection = window.getSelection(); if (e.srcElement.parentNode.nodeName == "A") { if (selection && selection.baseNode && (selection.baseNode.baseURI == e.srcElement.baseURI) && (selection.baseOffset != selection.extentOffset)) { data = selection.toString(); } e... |
getEditor: function (id) { let elem = document.getElementById(id); | getEditor: function (elem) { | getEditor: function (id) { let elem = document.getElementById(id); elem.inputField.QueryInterface(Ci.nsIDOMNSEditableElement); return elem; } |
dactyl.assert(dactyl.focus); return dactyl.focus; | dactyl.assert(dactyl.focusedElement); return dactyl.focusedElement; | getEditor: function (elem) { if (arguments.length === 0) { dactyl.assert(dactyl.focus); return dactyl.focus; } if (!elem) elem = dactyl.focus || document.commandDispatcher.focusedWindow; dactyl.assert(elem); if (elem instanceof Element) ... |
elem = dactyl.focus || document.commandDispatcher.focusedWindow; | elem = dactyl.focusedElement || document.commandDispatcher.focusedWindow; | getEditor: function (elem) { if (arguments.length === 0) { dactyl.assert(dactyl.focus); return dactyl.focus; } if (!elem) elem = dactyl.focus || document.commandDispatcher.focusedWindow; dactyl.assert(elem); if (elem instanceof Element) ... |
return elem.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation) .QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIEditingSession) .getEditorForWindow(elem); | try { return elem.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation) .QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIEditingSession) .getEditorForWindow(elem); } catch (e) { return null; } | getEditor: function (elem) { if (arguments.length === 0) { dactyl.assert(dactyl.focus); return dactyl.focus; } if (!elem) elem = dactyl.focus || document.commandDispatcher.focusedWindow; dactyl.assert(elem); if (elem instanceof Element) ... |
getEditor: function () dactyl.focus, | getEditor: function (elem) { if (arguments.length === 0) { dactyl.assert(dactyl.focus); return dactyl.focus; } if (!elem) elem = dactyl.focus || document.commandDispatcher.focusedWindow; dactyl.assert(elem); if (elem instanceof Element) return elem.QueryInterface(Ci.nsIDOMNSEditableElement).editor; return elem.QueryI... | getEditor: function () dactyl.focus, |
getElements: function(form) { return $A($(form).getElementsByTagName('*')).inject([], function(elements, child) { if (Form.Element.Serializers[child.tagName.toLowerCase()]) elements.push(Element.extend(child)); return elements; } ); }, | 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(... | getElements: function(form) { return $A($(form).getElementsByTagName('*')).inject([], function(elements, child) { if (Form.Element.Serializers[child.tagName.toLowerCase()]) elements.push(Element.extend(child)); return elements; } ); }, |
if (!document.getElementsByClassName) document.getElementsByClassName = function(instanceMethods){ function iter(name) { return name.blank() ? null : "[contains(concat(' ', @class, ' '), ' " + name + " ')]"; } instanceMethods.getElementsByClassName = Prototype.BrowserFeatures.XPath ? function(element, className) { cla... | 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(... | if (!document.getElementsByClassName) document.getElementsByClassName = function(instanceMethods){ function iter(name) { return name.blank() ? null : "[contains(concat(' ', @class, ' '), ' " + name + " ')]"; } instanceMethods.getElementsByClassName = Prototype.BrowserFeatures.XPath ? function(element, className)... |
if (typeof className == 'object' && className.length) { className = className.join('|'); } | doctest.getElementsByTagAndClassName = function (tagName, className, parent/*optional*/) { parent = parent || document; var els = parent.getElementsByTagName(tagName); var result = []; var re = new RegExp("\\b"+className+"\\b"); for (var i=0; i<els.length; i++) { var el = els[i]; if (el.cla... | |
"volume_id" : "-", "capacity" : "-", "snapshot" : "-", "created" : "-", "zone" : "-", "status" : "", "attachment_information" : "-" | "uuid" : "-", "size" : "-", "snapshot_id" : "-", "created_at" : "-", "updated_at" : "-", "state" : "", | DcmgrGUI.Detail.prototype.getEmptyData = function(){ return { "volume_id" : "-", "capacity" : "-", "snapshot" : "-", "created" : "-", "zone" : "-", "status" : "", "attachment_information" : "-" } } |
"group_id":"-", | DcmgrGUI.Detail.prototype.getEmptyData = function(){ return { "group_id":"-", "name" : "-", "description" : "-", "config" : "", } } | |
"config" : "", | "rule":'' | DcmgrGUI.Detail.prototype.getEmptyData = function(){ return { "group_id":"-", "name" : "-", "description" : "-", "config" : "", } } |
var val = m.config[ps.type] = Models.getPostConfig(config, m.name, ps); | var val = m.config[ps.type] = Models.getPostConfig(config, m.name, ps, m); | Models.getEnables = function(ps){ var config = TBRL.Config['services']; return this.check(ps).filter(function(m){ m.config = (m.config || {}); var val = m.config[ps.type] = Models.getPostConfig(config, m.name, ps); return val === undefined || /default|enabled/.test(val); });} |
}; | } | function getEncoding(text){ var matched = text.match(/<meta.+?http-equiv.+?Content-Type.+?content=(["'])([^\1]+?)\1/i); var res = (matched && !matched[2].match(/UTF-8/i) && matched[2]); return (res)? getCharset(res) : false;}; |
activity.JsEventFetcher.getEventIdentifier_ = function(event) { | activity.JsEventFetcher.EventDispatcher_.prototype.getEventIdentifier_ = function(event) { | activity.JsEventFetcher.getEventIdentifier_ = function(event) { var identifier = event.getIdentifier(); // We special case a few types of URLs: // 1. All browser URLs are lumped into a single category. // 2. All javascript: URLs are lumped into a single category. if (activity.JsEventFetcher.isBrowserUrl_(identifie... |
if (activity.JsEventFetcher.isBrowserUrl_(identifier)) { identifier = 'Firefox Javascript'; | if (this.aggregateBrowserJS_ && activity.JsEventFetcher.isBrowserUrl_(identifier)) { identifier = 'Browser JavaScript'; | activity.JsEventFetcher.getEventIdentifier_ = function(event) { var identifier = event.getIdentifier(); // We special case a few types of URLs: // 1. All browser URLs are lumped into a single category. // 2. All javascript: URLs are lumped into a single category. if (activity.JsEventFetcher.isBrowserUrl_(identifie... |
return pageSpeedPrefs.getComplexValue(prefName, Ci.nsILocalFile); | return pageSpeedPrefs.getComplexValue(prefName, Components.interfaces.nsILocalFile); | getFilePref: function(prefName) { var pageSpeedPrefs = PAGESPEED.Utils.getPrefs(); try { return pageSpeedPrefs.getComplexValue(prefName, Ci.nsILocalFile); } catch (e) { // If the pref is unset, an exception will be thrown. return null; } }, |
fileUtil.getFilteredFileList = function(startDir, regExpFilters, makeUnixPaths, startDirIsJavaObject){ | fileUtil.getFilteredFileList = function(startDir, regExpFilters, makeUnixPaths, startDirIsJavaObject, dontRecurse){ | fileUtil.getFilteredFileList = function(/*String*/startDir, /*RegExp*/regExpFilters, /*boolean?*/makeUnixPaths, /*boolean?*/startDirIsJavaObject){ //summary: Recurses startDir and finds matches to the files that match regExpFilters.include //and do not match regExpFilters.exclude. Or just one regexp can be passed in fo... |
}else if(file.isDirectory() && !file.getName().match(/^\./)){ | }else if(file.isDirectory() && !file.getName().match(/^\./) && !dontRecurse){ | fileUtil.getFilteredFileList = function(/*String*/startDir, /*RegExp*/regExpFilters, /*boolean?*/makeUnixPaths, /*boolean?*/startDirIsJavaObject){ //summary: Recurses startDir and finds matches to the files that match regExpFilters.include //and do not match regExpFilters.exclude. Or just one regexp can be passed in fo... |
function getFlavor(src, name){ return (!src || !src.flavors)? src : src.flavors[name] || src; | function getFlavor(ps, name){ return (!ps.body || !ps.flavors)? ps.body : ps.flavors[name] || ps.body; | function getFlavor(src, name){ return (!src || !src.flavors)? src : src.flavors[name] || src;} |
getForm : function(url){ | getForm : function(ctx, url){ | getForm : function(url){ var self = this; return request(url).addCallback(function(res){ var doc = createHTML(res.responseText); var form = formContents($X('//form', doc)[1]); delete form.preview_post; form.redirect_to = self.TUMBLR_URL+'dashboard'; if(form.reblog_post_i... |
return request(url+'/text').addCallback(function(res){ var textDoc = createHTML(res.responseText); var textForm = formContents($X(' if(textForm['post[one]'].trim()){ delete textForm.preview_post; textForm.redirect_to = self.TUMBLR_URL+'dashboard'; return textForm; } if(/^http:\/\/[^.]+\.tumblr\.com\/post\/\d+/.test(fo... | var m = ctx.href.match(/^http:\/\/([^\/]+)\/post\/([^\/]+)\/?/); if(m){ return request('http: charset: 'text/plain; charset=utf-8', queryString: { id: m[2] } }).addCallback(function(res){ var xml = createXML(res.responseText); var type = xml.getElementsByTagName('post')[0].getAttribute('type'); if(type === 'regular'){ ... | getForm : function(url){ var self = this; return request(url).addCallback(function(res){ var doc = createHTML(res.responseText); var form = formContents($X('//form', doc)[1]); delete form.preview_post; form.redirect_to = self.TUMBLR_URL+'dashboard'; if(form.reblog_post_i... |
}); | } | getForm : function(url){ var self = this; return request(url).addCallback(function(res){ var doc = createHTML(res.responseText); var form = formContents($X('//form', doc)[1]); delete form.preview_post; form.redirect_to = self.TUMBLR_URL+'dashboard'; if(form.reblog_post_i... |
getHeader: function(name) { try { return this.transport.getResponseHeader(name) || null; } catch (e) { return null } }, | 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(... | getHeader: function(name) { try { return this.transport.getResponseHeader(name) || null; } catch (e) { return null } }, |
getHeight: function() { return this.getDimensions().height; }, | 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(... | getHeight: function() { return this.getDimensions().height; }, |
var opActivity=function(id,posturl){var t=this;var addEventListener=function(obj,type,listener,useCapture){if(obj.addEventListener){obj.addEventListener(type,listener,useCapture);}else if(obj.attachEvent){type='on'+type;obj.attachEvent(type,listener);}};var getHttpRequest=function(){var req=null;if(window.XMLHttpReques... | var opActivity=function(id,posturl){var t=this;var addEventListener=function(obj,type,listener,useCapture){if(obj.addEventListener){obj.addEventListener(type,listener,useCapture);}else if(obj.attachEvent){type='on'+type;obj.attachEvent(type,listener);}};var getHttpRequest=function(){var req=null;if(window.XMLHttpReques... | var opActivity=function(id,posturl){var t=this;var addEventListener=function(obj,type,listener,useCapture){if(obj.addEventListener){obj.addEventListener(type,listener,useCapture);}else if(obj.attachEvent){type='on'+type;obj.attachEvent(type,listener);}};var getHttpRequest=function(){var req=null;if(window.XMLHttpReques... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.