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: 'taberareloo_list' }); TBRL.field.appendChild(TBRL.ol); } 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('img', { src: ext.ICON }), $N('span', null, ext.name)]); var li = $N('li', { 'class': 'taberareloo_item' }, button); TBRL.ol.appendChild(li); return button; }); (document.body || document.documentElement).appendChild(TBRL.field); TBRL.buttons[0].focus(); } }); }, |
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: 'taberareloo_list' }); TBRL.field.appendChild(TBRL.ol); } 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('img', { src: ext.ICON }), $N('span', null, ext.name)]); var li = $N('li', { 'class': 'taberareloo_item' }, button); TBRL.ol.appendChild(li); return button; }); (document.body || document.documentElement).appendChild(TBRL.field); TBRL.buttons[0].focus(); } }); }, |
'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: 'taberareloo_list' }); TBRL.field.appendChild(TBRL.ol); } 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('img', { src: ext.ICON }), $N('span', null, ext.name)]); var li = $N('li', { 'class': 'taberareloo_item' }, button); TBRL.ol.appendChild(li); return button; }); (document.body || document.documentElement).appendChild(TBRL.field); TBRL.buttons[0].focus(); } }); }, |
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, 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('img', { src: ext.ICON }), $N('span', null, ext.name)]); var li = $N('li', { 'class': 'taberareloo_item' }, button); TBRL.ol.appendChild(li); return button; | 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.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('img', { src: ext.ICON }), $N('span', null, ext.name)]); var li = $N('li', { 'class': 'taberareloo_item' }, button); TBRL.ol.appendChild(li); return button; }); (document.body || document.documentElement).appendChild(TBRL.field); TBRL.buttons[0].focus(); } }, |
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.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('img', { src: ext.ICON }), $N('span', null, ext.name)]); var li = $N('li', { 'class': 'taberareloo_item' }, button); TBRL.ol.appendChild(li); return button; }); (document.body || document.documentElement).appendChild(TBRL.field); TBRL.buttons[0].focus(); } }, |
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('img', { src: ext.ICON }), $N('span', null, ext.name)]); var li = $N('li', { 'class': 'taberareloo_item' }, button); TBRL.ol.appendChild(li); return button; }); (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.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('img', { src: ext.ICON }), $N('span', null, ext.name)]); var li = $N('li', { 'class': 'taberareloo_item' }, button); TBRL.ol.appendChild(li); return button; }); (document.body || document.documentElement).appendChild(TBRL.field); TBRL.buttons[0].focus(); } }, |
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) try { item.url = decodeURIComponent(query.replace(/#.*/, "").replace(/\+/g, " ")); return item; } catch (e) {} return null; }).filter(util.identity); }; | 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; let query = item.url.substring(begin.length, rest); if (item.url.substr(rest) == end && query.indexOf("&") == -1) try { item.url = decodeURIComponent(query.replace(/#.*/, "").replace(/\+/g, " ")); return item; } catch (e) {} return null; }).filter(util.identity); }; |
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 query = item.url.substring(begin.length, rest); if (item.url.substr(rest) == end && query.indexOf("&") == -1) { item.url = decodeURIComponent(query.replace(/#.*/, "")); return item; } return null; }).filter(util.identity); }; |
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); if (dir.exists() && dir.isDirectory()) { commands.push([[file.leafName, dir.path] for (file in dir.iterDirectory()) if (file.isFile() && file.isExecutable())]); } } return array.flatten(commands); }; |
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 == tabs.index(tabs.alternate)) indicator = "#"; let tab = tabs.getTab(i); let url = browser.contentDocument.location.href; i = i + 1; return { text: [i + ": " + (tab.label || "(Untitled)"), i + ": " + url], id: i - 1, url: url, indicator: indicator, icon: tab.image || DEFAULT_FAVICON }; }); |
id: i - 1, | context.generate = function () util.map(array.iterValues(browsers), function ([i, browser]) { let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i == tabs.index(tabs.alternate)) indicator = "#"; let tab = tabs.getTab(i); let url = browser.contentDocument.location.href; i = i + 1; return { text: [i + ": " + (tab.label || "(Untitled)"), i + ": " + url], url: url, indicator: indicator, icon: tab.image || DEFAULT_FAVICON }; }); |
|
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); } return []; }; |
|
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); } return []; }; |
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 jar = services.ZipReader(file); try { let path = decodeURI(getDir(uri.JAREntry)); return [ { isDirectory: function () s.substr(-1) == "/", leafName: /([^\/]*)\/?$/.exec(s)[1] } for (s in iter(jar.findEntries("*"))) if (s.indexOf(path) == 0) ] } finally { jar.close(); } } }; |
|
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. let jar = services.ZipReader(file); try { let path = decodeURI(getDir(uri.JAREntry)); return [ { isDirectory: function () s.substr(-1) == "/", leafName: /([^\/]*)\/?$/.exec(s)[1] } for (s in iter(jar.findEntries("*"))) if (s.indexOf(path) == 0) ] } finally { jar.close(); } } }; |
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. let jar = services.ZipReader(file); try { let path = decodeURI(getDir(uri.JAREntry)); return [ { isDirectory: function () s.substr(-1) == "/", leafName: /([^\/]*)\/?$/.exec(s)[1] } for (s in iter(jar.findEntries("*"))) if (s.indexOf(path) == 0) ] } finally { jar.close(); } } }; |
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, xy : [ xy[0] + 10, xy[1] + 35 ] }); if (imagetext) { overlay.set('footerContent', imagetext); } var myFirstGroup = new Y.ImgLoadGroup( { timeLimit : 2 }); myFirstGroup.registerImage( { domId : imageNode.get('id'), srcUrl : image }); overlay.render(); | 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, xy : [ xy[0] + 10, xy[1] + 35 ] }); if (imagetext) { overlay.set('footerContent', imagetext); } var myFirstGroup = new Y.ImgLoadGroup( { timeLimit : 2 }); myFirstGroup.registerImage( { domId : imageNode.get('id'), srcUrl : image }); | 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 : imageNode, width : 'auto', height : 'auto', centered : node, visible : false, xy : [ xy[0] + 10, xy[1] + 35 ] }); if (imagetext) { overlay.set('footerContent', imagetext); } var myFirstGroup = new Y.ImgLoadGroup( { timeLimit : 2 }); myFirstGroup.registerImage( { domId : imageNode.get('id'), srcUrl : image }); 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); } });}; |
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 : imageNode, width : 'auto', height : 'auto', centered : node, visible : false, xy : [ xy[0] + 10, xy[1] + 35 ] }); if (imagetext) { overlay.set('footerContent', imagetext); } var myFirstGroup = new Y.ImgLoadGroup( { timeLimit : 2 }); myFirstGroup.registerImage( { domId : imageNode.get('id'), srcUrl : image }); 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); } });}; |
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*len))-1) +m.charAt(Math.floor(buildUtil.symctr/len)%len) +m.charAt(buildUtil.symctr%len); } s = "$D" + s; buildUtil.symctr++; var ret; if(kwArgs.symbol == "long"){ ret = name; // + "_" + s; }else if(kwArgs.symbol == "short"){ buildUtil.symtbl[s + "_"] = name; ret = s + "_"; } return ret;} |
|
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.length + 1)).strip(); break; } } } return value; } | 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)).strip();break;}}} return value;}};function pne_url2a(url) | 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)).strip(); break; } } } return value; } |
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.substr(0, valuePos + 1).strip() == (name + '=')) { value = decodeURIComponent(_cookie.substr(valuePos + 1)).strip(); break; } } } return value; } |
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.substr(0, valuePos + 1).strip() == (name + '=')) { value = decodeURIComponent(_cookie.substr(valuePos + 1)).strip(); break; } } } return value; } |
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=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+d;else if(b)a.selector=this.selector+"."+b+"("+d+")";return a},setArray:function(a){this.length= | 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){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== | 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=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+d;else if(b)a.selector=this.selector+"."+b+"("+d+")";return a},setArray:function(a){this.length= |
} 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]) { return this.view.get(property); } else { throw "RenderDelegate expected property '" + property + "', but the view " + "does not have this property as a displayProperty."; } return undefined; }, |
|
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; reportError(e); throw e; } }, |
|
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.favicon.getFaviconImageForPage(this.URI).spec); } return obj; | 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; options.resultType = options.RESULTS_AS_URI; if (maxItems > 0) options.maxResults = maxItems; let root = services.get("history").executeQuery(query, options).root; root.containerOpen = true; let items = util.map(util.range(0, root.childCount), function (i) { let node = root.getChild(i); return { url: node.uri, title: node.title, icon: node.icon ? node.icon.spec : DEFAULT_FAVICON }; }); root.containerOpen = false; return items; | 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.favicon.getFaviconImageForPage(this.URI).spec); } return obj; }, |
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); // Exceedingly long substrings cause Gecko to go into convulsions if (text.length > 100) text = text.substr(0, 100); let filter = fixCase(this.filter); if (this.anchored) { var compare = function compare(text, s) text.substr(0, s.length) == s; var substrings = [text.substring(filter.length)]; } else { var compare = function compare(text, s) text.indexOf(s) >= 0; var substrings = []; let start = 0; let idx; let length = filter.length; while ((idx = text.indexOf(filter, start)) > -1 && idx < text.length) { substrings.push(text.substring(idx)); start = idx + 1; } } substrings = items.reduce(function (res, item) res.map(function (list) { var m, len = list.length; var n = list.length; var i = 0; while (n) { m = Math.floor(n / 2); let s = list[i + m]; let keep = compare(fixCase(item.text), list.substring(0, i + m)); if (!keep) len = i + m; if (!keep || m == 0) n = m; else { i += m; n = n - m; } } return len == list.length ? list : list.substr(0, len); }), substrings); let quote = this.quote; if (quote) substrings = substrings.map(function (str) quote[0] + quote[1](str)); return this._substrings = substrings; }, |
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); // Exceedingly long substrings cause Gecko to go into convulsions if (text.length > 100) text = text.substr(0, 100); let filter = fixCase(this.filter); if (this.anchored) { var compare = function compare(text, s) text.substr(0, s.length) == s; var substrings = [text.substring(filter.length)]; } else { var compare = function compare(text, s) text.indexOf(s) >= 0; var substrings = []; let start = 0; let idx; let length = filter.length; while ((idx = text.indexOf(filter, start)) > -1 && idx < text.length) { substrings.push(text.substring(idx)); start = idx + 1; } } substrings = items.reduce(function (res, item) res.map(function (list) { var m, len = list.length; var n = list.length; var i = 0; while (n) { m = Math.floor(n / 2); let s = list[i + m]; let keep = compare(fixCase(item.text), list.substring(0, i + m)); if (!keep) len = i + m; if (!keep || m == 0) n = m; else { i += m; n = n - m; } } return len == list.length ? list : list.substr(0, len); }), substrings); let quote = this.quote; if (quote) substrings = substrings.map(function (str) quote[0] + quote[1](str)); return this._substrings = substrings; }, |
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); // Exceedingly long substrings cause Gecko to go into convulsions if (text.length > 100) text = text.substr(0, 100); let filter = fixCase(this.filter); if (this.anchored) { var compare = function compare(text, s) text.substr(0, s.length) == s; var substrings = [text.substring(filter.length)]; } else { var compare = function compare(text, s) text.indexOf(s) >= 0; var substrings = []; let start = 0; let idx; let length = filter.length; while ((idx = text.indexOf(filter, start)) > -1 && idx < text.length) { substrings.push(text.substring(idx)); start = idx + 1; } } substrings = items.reduce(function (res, item) res.map(function (list) { var m, len = list.length; var n = list.length; var i = 0; while (n) { m = Math.floor(n / 2); let s = list[i + m]; let keep = compare(fixCase(item.text), list.substring(0, i + m)); if (!keep) len = i + m; if (!keep || m == 0) n = m; else { i += m; n = n - m; } } return len == list.length ? list : list.substr(0, len); }), substrings); let quote = this.quote; if (quote) substrings = substrings.map(function (str) quote[0] + quote[1](str)); return this._substrings = substrings; }, |
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.indexOf(lhs || "") == 0)]; }, |
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) return callback(null); addon = Object.create(addon); function getRdfProperty(item, property) { let resource = services.get("rdf").GetResource("urn:mozilla:item:" + item.id); let value = ""; if (resource) { let target = services.get("extensionManager").datasource.GetTarget(resource, services.get("rdf").GetResource("http://www.mozilla.org/2004/em-rdf#" + property), true); if (target && target instanceof Ci.nsIRDFLiteral) value = target.Value; } return value; } ["aboutURL", "creator", "description", "developers", "homepageURL", "iconURL", "installDate", "name", "optionsURL", "releaseNotesURI", "updateDate", "version"].forEach(function (item) { addon[item] = getRdfProperty(addon, item); }); addon.isActive = getRdfProperty(addon, "isDisabled") != "true"; addon.uninstall = function () { services.get("extensionManager").uninstallItem(this.id); }; addon.appDisabled = false; addon.__defineGetter__("userDisabled", function () getRdfProperty("userDisabled") == "true"); addon.__defineSetter__("userDisabled", function (val) { services.get("extensionManager")[val ? "enableItem" : "disableItem"](this.id); }); return callback(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) return callback(null); addon = Object.create(addon); function getRdfProperty(item, property) { let resource = services.get("rdf").GetResource("urn:mozilla:item:" + item.id); let value = ""; if (resource) { let target = services.get("extensionManager").datasource.GetTarget(resource, services.get("rdf").GetResource("http://www.mozilla.org/2004/em-rdf#" + property), true); if (target && target instanceof Ci.nsIRDFLiteral) value = target.Value; } return value; } ["aboutURL", "creator", "description", "developers", "homepageURL", "iconURL", "installDate", "name", "optionsURL", "releaseNotesURI", "updateDate", "version"].forEach(function (item) { addon[item] = getRdfProperty(addon, item); }); addon.isActive = getRdfProperty(addon, "isDisabled") != "true"; addon.uninstall = function () { services.get("extensionManager").uninstallItem(this.id); }; addon.appDisabled = false; addon.__defineGetter__("userDisabled", function () getRdfProperty(addon, "userDisabled") == "true"); addon.__defineSetter__("userDisabled", function (val) { services.get("extensionManager")[val ? "enableItem" : "disableItem"](this.id); }); return callback(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) return callback(null); addon = Object.create(addon); function getRdfProperty(item, property) { let resource = services.get("rdf").GetResource("urn:mozilla:item:" + item.id); let value = ""; if (resource) { let target = services.get("extensionManager").datasource.GetTarget(resource, services.get("rdf").GetResource("http://www.mozilla.org/2004/em-rdf#" + property), true); if (target && target instanceof Ci.nsIRDFLiteral) value = target.Value; } return value; } ["aboutURL", "creator", "description", "developers", "homepageURL", "iconURL", "installDate", "name", "optionsURL", "releaseNotesURI", "updateDate", "version"].forEach(function (item) { addon[item] = getRdfProperty(addon, item); }); addon.isActive = getRdfProperty(addon, "isDisabled") != "true"; addon.uninstall = function () { services.get("extensionManager").uninstallItem(this.id); }; addon.appDisabled = false; addon.__defineGetter__("userDisabled", function () getRdfProperty(addon, "userDisabled") == "true"); addon.__defineSetter__("userDisabled", function (val) { services.get("extensionManager")[val ? "enableItem" : "disableItem"](this.id); }); return callback(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.toUpperCase()], {}))) res.append(this.getAddonById(item)); return res; }, |
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | 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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | 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[i].value); variable.bindingType = bindingType; variables.push(variable); //alert(variable.toSource()); } return variables;} |
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[i].value); variable.bindingType = bindingType; variables.push(variable); //alert(variable.toSource()); } return variables;} |
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[i].value); variable.bindingType = bindingType; variables.push(variable); //alert(variable.toSource()); } return variables;} |
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.indexOf(hint); if(~index) values.splice(index, 1); return cands.sort(function(a, b){ return b.score - a.score; }).reduce(function(memo, pair){ if(!~values.indexOf(pair.cand.value)){ memo.push(pair.cand); } return memo; }, []); }, |
}; | } | 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.selectMarked();webkit&&this.container.lastChild.hackBR&&a.pop();return cleanText(a.join(""))},checkLine:function(a){if(a===false||!(a==null||a.parentNode==this.container))throw parent.CodeMirror.InvalidLineHandle; | 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&&this.activateLineNumbers();this.options.reindentOnLoad&&this.reindent();this.options.height=="dynamic"&&this.setDynamicHeight()},getCode:function(){return this.editor.getCode()},setCode:function(a){this.editor.importCode(a)}, | 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.selectMarked();webkit&&this.container.lastChild.hackBR&&a.pop();return cleanText(a.join(""))},checkLine:function(a){if(a===false||!(a==null||a.parentNode==this.container))throw parent.CodeMirror.InvalidLineHandle; |
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.setCaretEnabled(true); // Only move backwards if the previous character is not a space. if (range.startOffset > 0 && !/\s/.test(range.startContainer.textContent[range.startOffset - 1])) selController.wordMove(false, false); selController.wordMove(true, true); selController.setCaretEnabled(caretmode); return String.match(selection, /\w*/)[0]; } if (util.computedStyle(range.startContainer).whiteSpace == "pre" && util.computedStyle(range.endContainer).whiteSpace == "pre") return String(range); return String(selection); }, |
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.setCaretEnabled(true); // Only move backwards if the previous character is not a space. if (range.startOffset > 0 && !/\s/.test(range.startContainer.textContent[range.startOffset - 1])) selController.wordMove(false, false); selController.wordMove(true, true); selController.setCaretEnabled(caretmode); return String.match(selection, /\w*/)[0]; } if (util.computedStyle(range.startContainer).whiteSpace == "pre" && util.computedStyle(range.endContainer).whiteSpace == "pre") return String(range); return String(selection); }, |
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.setCaretEnabled(true); // Only move backwards if the previous character is not a space. if (range.startOffset > 0 && !/\s/.test(range.startContainer.textContent[range.startOffset - 1])) selController.wordMove(false, false); selController.wordMove(true, true); selController.setCaretEnabled(caretmode); return String.match(selection, /\w*/)[0]; } if (util.computedStyle(range.startContainer).whiteSpace == "pre" && util.computedStyle(range.endContainer).whiteSpace == "pre") return String(range); return String(selection); }, |
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.setCaretEnabled(true); // Only move backwards if the previous character is not a space. if (range.startOffset > 0 && !/\s/.test(range.startContainer.textContent[range.startOffset - 1])) selController.wordMove(false, false); selController.wordMove(true, true); selController.setCaretEnabled(caretmode); return String.match(selection, /\w*/)[0]; } if (util.computedStyle(range.startContainer).whiteSpace == "pre" && util.computedStyle(range.endContainer).whiteSpace == "pre") return String(range); return String(selection); }, |
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.selectionController(win); let caretmode = controller.getCaretEnabled(); controller.setCaretEnabled(true); // Only move backwards if the previous character is not a space. if (range.startOffset > 0 && !/\s/.test(range.startContainer.textContent[range.startOffset - 1])) controller.wordMove(false, false); controller.wordMove(true, true); controller.setCaretEnabled(caretmode); return String.match(selection, /\w*/)[0]; } return util.domToString(range); }, |
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.selectionController; let caretmode = selController.getCaretEnabled(); selController.setCaretEnabled(true); // Only move backwards if the previous character is not a space. if (range.startOffset > 0 && !/\s/.test(range.startContainer.textContent[range.startOffset - 1])) selController.wordMove(false, false); selController.wordMove(true, true); selController.setCaretEnabled(caretmode); return String.match(selection, /\w*/)[0]; } if (util.computedStyle(range.startContainer).whiteSpace == "pre" && util.computedStyle(range.endContainer).whiteSpace == "pre") return String(range); return String(selection); } return util.Array.compact(buffer.allFrames.map(_getCurrentWord)).join("\n"); }, |
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] } else { dimensions[d] = document.documentElement['client' + D]; } }); return dimensions; }, | 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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | 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 && parseFloat(window.opera.version()) < 9.5) { // Opera <9.5 needs document.body.clientWidth/Height dimensions[d] = document.body['client' + D] } else { dimensions[d] = document.documentElement['client' + D]; } }); return dimensions; }, |
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.parentNode.href; } } else { data = e.dataTransfer.getData('Text'); if (!data) { data = selection.toString(); } } return data;} |
(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.srcElement.baseURI) && (selection.baseOffset != selection.extentOffset)) { data = selection.toString(); } else { data = parent_node.href; } } else { data = e.dataTransfer.getData('Text'); if (!data) { data = selection.toString(); } } return data;} |
|
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(); } else { data = e.srcElement.parentNode.href; } } else { data = e.dataTransfer.getData('Text'); if (!data) { data = selection.toString(); } } return data;} |
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(); } else { data = e.srcElement.parentNode.href; } } else { data = e.dataTransfer.getData('Text'); if (!data) { data = selection.toString(); } } return data;} |
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) return elem.QueryInterface(Ci.nsIDOMNSEditableElement).editor; try { return elem.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation) .QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIEditingSession) .getEditorForWindow(elem); } catch (e) { return null; } }, |
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.nsIDOMNSEditableElement).editor; try { return elem.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation) .QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIEditingSession) .getEditorForWindow(elem); } catch (e) { return null; } }, |
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) return elem.QueryInterface(Ci.nsIDOMNSEditableElement).editor; return elem.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation) .QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIEditingSession) .getEditorForWindow(elem); }, |
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.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation) .QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIEditingSession) .getEditorForWindow(elem); }, | 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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | 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) { className = className.toString().strip(); var cond = /\s/.test(className) ? $w(className).map(iter).join('') : iter(className); return cond ? document._getElementsByXPath('. } : function(element, className) { className = className.toString().strip(); var elements = [], classNames = (/\s/.test(className) ? $w(className) : null); if (!classNames && !className) return elements; var nodes = $(element).getElementsByTagName('*'); className = ' ' + className + ' '; for (var i = 0, child, cn; child = nodes[i]; i++) { if (child.className && (cn = ' ' + child.className + ' ') && (cn.include(className) || (classNames && classNames.all(function(name) { return !name.toString().blank() && cn.include(' ' + name + ' '); })))) elements.push(Element.extend(child)); } return elements; }; return function(className, parentElement) { return $(parentElement || document.body).getElementsByClassName(className); }; }(Element.Methods); | 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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | 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) { className = className.toString().strip(); var cond = /\s/.test(className) ? $w(className).map(iter).join('') : iter(className); return cond ? document._getElementsByXPath('.//*' + cond, element) : []; } : function(element, className) { className = className.toString().strip(); var elements = [], classNames = (/\s/.test(className) ? $w(className) : null); if (!classNames && !className) return elements; var nodes = $(element).getElementsByTagName('*'); className = ' ' + className + ' '; for (var i = 0, child, cn; child = nodes[i]; i++) { if (child.className && (cn = ' ' + child.className + ' ') && (cn.include(className) || (classNames && classNames.all(function(name) { return !name.toString().blank() && cn.include(' ' + name + ' '); })))) elements.push(Element.extend(child)); } return elements; }; return function(className, parentElement) { return $(parentElement || document.body).getElementsByClassName(className); };}(Element.Methods); |
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.className && el.className.search(re) != -1) { result.push(el); } } return result;}; |
|
"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_(identifier)) { identifier = 'Firefox Javascript'; } if (identifier.lastIndexOf('javascript:', 0) == 0) { identifier = 'javascript: URL'; } return identifier;}; |
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_(identifier)) { identifier = 'Firefox Javascript'; } if (identifier.lastIndexOf('javascript:', 0) == 0) { identifier = 'javascript: URL'; } return identifier;}; |
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 for regExpFilters, //and it will be treated as the "include" case. //Ignores files/directories that start with a period (.). var files = []; var topDir = startDir; if(!startDirIsJavaObject){ topDir = new java.io.File(startDir); } var regExpInclude = regExpFilters.include || regExpFilters; var regExpExclude = regExpFilters.exclude || null; if(topDir.exists()){ var dirFileArray = topDir.listFiles(); for (var i = 0; i < dirFileArray.length; i++){ var file = dirFileArray[i]; if(file.isFile()){ var filePath = file.getPath(); if(makeUnixPaths){ //Make sure we have a JS string. filePath = new String(filePath); if(filePath.indexOf("/") == -1){ filePath = filePath.replace(/\\/g, "/"); } } var ok = true; if(regExpInclude){ ok = filePath.match(regExpInclude); } if(ok && regExpExclude){ ok = !filePath.match(regExpExclude); } if(ok && !file.getName().match(/^\./)){ files.push(filePath); } }else if(file.isDirectory() && !file.getName().match(/^\./)){ var dirFiles = this.getFilteredFileList(file, regExpFilters, makeUnixPaths, true); files.push.apply(files, dirFiles); } } } return files; //Array} |
}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 for regExpFilters, //and it will be treated as the "include" case. //Ignores files/directories that start with a period (.). var files = []; var topDir = startDir; if(!startDirIsJavaObject){ topDir = new java.io.File(startDir); } var regExpInclude = regExpFilters.include || regExpFilters; var regExpExclude = regExpFilters.exclude || null; if(topDir.exists()){ var dirFileArray = topDir.listFiles(); for (var i = 0; i < dirFileArray.length; i++){ var file = dirFileArray[i]; if(file.isFile()){ var filePath = file.getPath(); if(makeUnixPaths){ //Make sure we have a JS string. filePath = new String(filePath); if(filePath.indexOf("/") == -1){ filePath = filePath.replace(/\\/g, "/"); } } var ok = true; if(regExpInclude){ ok = filePath.match(regExpInclude); } if(ok && regExpExclude){ ok = !filePath.match(regExpExclude); } if(ok && !file.getName().match(/^\./)){ files.push(filePath); } }else if(file.isDirectory() && !file.getName().match(/^\./)){ var dirFiles = this.getFilteredFileList(file, regExpFilters, makeUnixPaths, true); files.push.apply(files, dirFiles); } } } return files; //Array} |
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_id){ // self.trimReblogInfo(form); // Tumblrから他サービスへポストするため画像URLを取得しておく if(form['post[type]']==='photo') form.image = $X('id("edit_post")//img[contains(@src, "media.tumblr.com/") or contains(@src, "data.tumblr.com/")]/@src', doc)[0]; } if(TBRL.config.entry['reconvert_text'] && form['post[type]']==='link'){ // LinkがTextの省略である可能性を考慮する // LinkにconvertされたTextの特徴 // 1. as Textとした際, Titleに文字が入っていたらText確定 // このとき, もともとTitleがないText Postは判別できない. // しかし, 入っていたら少なくとも確実にconveted Text Post // 2. LinkのurlがtumblrのurlであればTextからのconvertの可能性が高い return request(url+'/text').addCallback(function(res){ var textDoc = createHTML(res.responseText); var textForm = formContents($X('//form', textDoc)[1]); if(textForm['post[one]'].trim()){ // converted Text Post delete textForm.preview_post; textForm.redirect_to = self.TUMBLR_URL+'dashboard'; return textForm; } if(/^http:\/\/[^.]+\.tumblr\.com\/post\/\d+/.test(form['post[two]'])){ // maybe converted Text Post delete textForm.preview_post; textForm.redirect_to = self.TUMBLR_URL+'dashboard'; return textForm; } return form; }); } else { return form; } }); }, |
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(form['post[two]'])){ delete textForm.preview_post; textForm.redirect_to = self.TUMBLR_URL+'dashboard'; return textForm; } | 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'){ return request(url+'/text').addCallback(function(res){ var textDoc = createHTML(res.responseText); var textForm = formContents($X(' delete textForm.preview_post; textForm.redirect_to = self.TUMBLR_URL+'dashboard'; return textForm; }); } else { return form; } }); } else { | 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_id){ // self.trimReblogInfo(form); // Tumblrから他サービスへポストするため画像URLを取得しておく if(form['post[type]']==='photo') form.image = $X('id("edit_post")//img[contains(@src, "media.tumblr.com/") or contains(@src, "data.tumblr.com/")]/@src', doc)[0]; } if(TBRL.config.entry['reconvert_text'] && form['post[type]']==='link'){ // LinkがTextの省略である可能性を考慮する // LinkにconvertされたTextの特徴 // 1. as Textとした際, Titleに文字が入っていたらText確定 // このとき, もともとTitleがないText Postは判別できない. // しかし, 入っていたら少なくとも確実にconveted Text Post // 2. LinkのurlがtumblrのurlであればTextからのconvertの可能性が高い return request(url+'/text').addCallback(function(res){ var textDoc = createHTML(res.responseText); var textForm = formContents($X('//form', textDoc)[1]); if(textForm['post[one]'].trim()){ // converted Text Post delete textForm.preview_post; textForm.redirect_to = self.TUMBLR_URL+'dashboard'; return textForm; } if(/^http:\/\/[^.]+\.tumblr\.com\/post\/\d+/.test(form['post[two]'])){ // maybe converted Text Post delete textForm.preview_post; textForm.redirect_to = self.TUMBLR_URL+'dashboard'; return textForm; } return form; }); } else { return form; } }); }, |
}); | } | 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_id){ // self.trimReblogInfo(form); // Tumblrから他サービスへポストするため画像URLを取得しておく if(form['post[type]']==='photo') form.image = $X('id("edit_post")//img[contains(@src, "media.tumblr.com/") or contains(@src, "data.tumblr.com/")]/@src', doc)[0]; } if(TBRL.config.entry['reconvert_text'] && form['post[type]']==='link'){ // LinkがTextの省略である可能性を考慮する // LinkにconvertされたTextの特徴 // 1. as Textとした際, Titleに文字が入っていたらText確定 // このとき, もともとTitleがないText Postは判別できない. // しかし, 入っていたら少なくとも確実にconveted Text Post // 2. LinkのurlがtumblrのurlであればTextからのconvertの可能性が高い return request(url+'/text').addCallback(function(res){ var textDoc = createHTML(res.responseText); var textForm = formContents($X('//form', textDoc)[1]); if(textForm['post[one]'].trim()){ // converted Text Post delete textForm.preview_post; textForm.redirect_to = self.TUMBLR_URL+'dashboard'; return textForm; } if(/^http:\/\/[^.]+\.tumblr\.com\/post\/\d+/.test(form['post[two]'])){ // maybe converted Text Post delete textForm.preview_post; textForm.redirect_to = self.TUMBLR_URL+'dashboard'; return textForm; } return form; }); } else { return form; } }); }, |
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | 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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | 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.XMLHttpRequest){req=new XMLHttpRequest();req.overrideMimeType("text/xml");}else if(window.ActiveXObject){try{req=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){req=new ActiveXObject("Microsoft.XMLHTTP");}} | 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.XMLHttpRequest){req=new XMLHttpRequest();}else if(window.ActiveXObject){try{req=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){req=new ActiveXObject("Microsoft.XMLHTTP");}} | 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.XMLHttpRequest){req=new XMLHttpRequest();req.overrideMimeType("text/xml");}else if(window.ActiveXObject){try{req=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){req=new ActiveXObject("Microsoft.XMLHTTP");}}return req;};this.post=function(){var req=getHttpRequest();req.open("POST",posturl,true);req.setRequestHeader("X-Requested-With","XMLHttpRequest");req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var data="";for(var i=0;i<this.form.elements.length;i++){data+="&"+this.form.elements[i].name+"="+this.form.elements[i].value;} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.