rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
function () { kids.css("background-color",bg); | self.element.find("[type='checkbox']").each(function(key,value){ var id = $(value).val(); if(self.checked_list[id]){ $(event.target).find("[type='checkbox']").each(function(){ if($(this).val() === id){ $(this).attr('checked',true); } }) | function () { //Mouse over kids.css("background-color",bg); } |
}) | function () { //Mouse over kids.css("background-color",bg); } |
|
this._backend.loadConfig(schemaName, function (config) { schema = new Schema (schemaName, config); me._backend.loadDict(schema); me.engine = new Engine(schema, me, me._backend); me.onSchemaReady(); }); | $.each(q, function (k, e) { if (e.end == b[i]) { r = {ikey: e.ikey.concat([kw]), start: e.start, end: b[j]}; registerQuery(r); if (r.ikey.length < maxKeyLength) s.push(r); } }); | this._backend.loadConfig(schemaName, function (config) { schema = new Schema (schemaName, config); me._backend.loadDict(schema); me.engine = new Engine(schema, me, me._backend); me.onSchemaReady(); }); |
if (typeof count != "number" || count < 1) | if (typeof count != "number" || count < 1 || !hasCount) | function (count) { if (typeof count != "number" || count < 1) count = 1; editor.executeCommand(textareaCommand, count); }, |
editor.executeCommand(textareaCommand, count); | let controller = buffer.selectionController; while (count--) { if (modes.extended & modes.TEXTAREA) { if (typeof visualTextareaCommand == "function") visualTextareaCommand(); else editor.executeCommand(visualTextareaCommand); } else controller[caretModeMethod](caretModeArg, true); } | function (count) { if (typeof count != "number" || count < 1) count = 1; editor.executeCommand(textareaCommand, count); }, |
Ext.onReady(function(){ new Ext.TabPanel(TYPO3.Backend.Seminars.TabPanel); if (!TYPO3.settings.Backend.Seminars.Events.TabPanel.hidden) { Ext.getCmp('typo3-backend-seminars-tabpanel').add( TYPO3.Backend.Seminars.Events.TabPanel ); } if (!TYPO3.settings.Backend.Seminars.Registrations.TabPanel.hidden) { Ext.getCmp('typo3-backend-seminars-tabpanel').add( TYPO3.Backend.Seminars.Registrations.TabPanel ); } if (!TYPO3.settings.Backend.Seminars.Speakers.TabPanel.hidden) { Ext.getCmp('typo3-backend-seminars-tabpanel').add( TYPO3.Backend.Seminars.Speakers.TabPanel ); } if (!TYPO3.settings.Backend.Seminars.Organizers.TabPanel.hidden) { Ext.getCmp('typo3-backend-seminars-tabpanel').add( TYPO3.Backend.Seminars.Organizers.TabPanel ); } if (Ext.getCmp('typo3-backend-seminars-tabpanel').items.getCount() > 1) { Ext.getCmp('typo3-backend-seminars-tabpanel').remove( Ext.getCmp('typo3-backend-seminars-default-tabpanel') ); } TYPO3.Backend.Seminars.viewport = new Ext.Viewport({ layout: 'border', items: Ext.getCmp('typo3-backend-seminars-tabpanel'), }); }); | Ext.each(stateData.data, function(item) { this.state[item['name']] = this.decodeValue(item['value']); }, this); | Ext.onReady(function(){ new Ext.TabPanel(TYPO3.Backend.Seminars.TabPanel); if (!TYPO3.settings.Backend.Seminars.Events.TabPanel.hidden) { Ext.getCmp('typo3-backend-seminars-tabpanel').add( TYPO3.Backend.Seminars.Events.TabPanel ); } if (!TYPO3.settings.Backend.Seminars.Registrations.TabPanel.hidden) { Ext.getCmp('typo3-backend-seminars-tabpanel').add( TYPO3.Backend.Seminars.Registrations.TabPanel ); } if (!TYPO3.settings.Backend.Seminars.Speakers.TabPanel.hidden) { Ext.getCmp('typo3-backend-seminars-tabpanel').add( TYPO3.Backend.Seminars.Speakers.TabPanel ); } if (!TYPO3.settings.Backend.Seminars.Organizers.TabPanel.hidden) { Ext.getCmp('typo3-backend-seminars-tabpanel').add( TYPO3.Backend.Seminars.Organizers.TabPanel ); } // Removes the default tab panel if there's at least one other tab panel // active. if (Ext.getCmp('typo3-backend-seminars-tabpanel').items.getCount() > 1) { Ext.getCmp('typo3-backend-seminars-tabpanel').remove( Ext.getCmp('typo3-backend-seminars-default-tabpanel') ); } TYPO3.Backend.Seminars.viewport = new Ext.Viewport({ layout: 'border', items: Ext.getCmp('typo3-backend-seminars-tabpanel'), });}); |
$(this).find('#right_button').click(function(){ security_group.leftToRight(); }); | $(self).find('#right_button').click(function(){ security_group.leftToRight(); }); | $(this).find('#right_button').click(function(){ security_group.leftToRight(); }); |
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; } return form; }); | }).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; } }); | 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; }); |
function (res) { args = res; }); | return this.withTempFiles(function (stdin, stdout, cmd) { if (input) stdin.write(input); if (dactyl.has("WINNT")) { command = "cd /D " + this.cwd + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path; var res = this.run(options["shell"], options["shellcmdflag"].split(/\s+/).concat(command), true); } else { cmd.write("cd " + escape(this.cwd) + "\n" + ["exec", ">" + escape(stdout.path), "2>&1", "<" + escape(stdin.path), escape(options["shell"]), options["shellcmdflag"], escape(command)].join(" ")); res = this.run("/bin/sh", ["-e", cmd.path], true); } let output = stdout.read(); if (res > 0) output += "\nshell returned " + res; else if (output && output.indexOf("\n") == output.length - 1) output = output.substr(0, output.length - 1); return output; }) || ""; | function (res) { args = res; }); |
this.inLoopAction(); | var propertyName = evt.originalEvent.propertyName, callback = this._transitionCallbacks[propertyName]; if(callback) SC.Animatable.runCallback(callback); | SC.run(function() { this.inLoopAction(); }, this); |
$.each(c_list.checked_list,function(check_id,obj){ | bt_refresh.element.bind('dcmgrGUI.refresh',function(){ list_request.url = DcmgrGUI.Util.getPagePath('/security_groups/show/',c_pagenate.current_page); c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) $.each(c_list.checked_list,function(check_id,obj){ | $.each(c_list.checked_list,function(check_id,obj){ //All remove detail element $($('#detail').find('#'+check_id)).remove(); //All reload detail element c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/security_groups/detail/',check_id) },true); }); |
}); | $.each(c_list.checked_list,function(check_id,obj){ //All remove detail element $($('#detail').find('#'+check_id)).remove(); //All reload detail element c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/security_groups/detail/',check_id) },true); }); |
|
dactyl.execute(args[0], null, true); | dactyl.execute(args[0] || "", null, true); | function (args) { try { var force = dactyl.forceNewTab; dactyl.forceNewTab = true; dactyl.execute(args[0], null, true); } finally { dactyl.forceNewTab = force; } }, { |
bt_launch_instance.open(id); | bt_launch_instance.open({"ids":[id]}); | bt_launch_instance.target.bind('click',function(){ var id = c_list.currentChecked(); if( id ){ bt_launch_instance.open(id); } return false; }); |
ok(context.get(0).match('<div style="-moz-column-count: 3px; -webkit-column-count: 3px; -o-column-count: 3px; -ms-column-count: 3px" >'), | ok(context.get(0).match('<div style="-moz-column-count: 3; -webkit-column-count: 3; -o-column-count: 3; -ms-column-count: 3" >'), | test("should emit style with custom browser attributes", function() { context.styles({ mozColumnCount: '3', webkitColumnCount: '3', oColumnCount: '3', msColumnCount: '3' }).end(); ok(context.get(0).match('<div style="-moz-column-count: 3px; -webkit-column-count: 3px; -o-column-count: 3px; -ms-column-count: 3px" >'), '<div> has style="-moz-column-count: 3; -webkit-column-count: 3, -o-column-count: 3, -ms-column-count: 3"');}); |
function (args) { let alternate = tabs.alternate; try { dactyl.execute(args[0] || "", null, true); } finally { tabs.updateSelectionHistory([tabs.getTab(), alternate]); } }, { | matches = array.nth(tabs.allTabs, function (t) (t.linkedBrowser.lastURI || {}).spec === buffer, 0); | function (args) { let alternate = tabs.alternate; try { dactyl.execute(args[0] || "", null, true); } finally { tabs.updateSelectionHistory([tabs.getTab(), alternate]); } }, { |
var typ = typeof o; if ((typ != 'object' && ! (type == 'function' && typeof o.item == 'function')) || o === null || typeof o.length != 'number' || o.nodeType === 3) { return false; } return true; | return (typeof o == 'object' && o.xmlVersion); | [function (o) { var typ = typeof o; if ((typ != 'object' && ! (type == 'function' && typeof o.item == 'function')) || o === null || typeof o.length != 'number' || o.nodeType === 3) { return false; } return true; }, |
function () { commandline.open(":", "open " + util.losslessDecodeURI(buffer.URL), modes.EX); }); | function () { commandline.open("", "open " + util.losslessDecodeURI(buffer.URL), modes.EX); }); | function () { commandline.open(":", "open " + util.losslessDecodeURI(buffer.URL), modes.EX); }); |
this.focusTrack(this._currentView.getItemByIndex(0)); | player.focusTrack(player._currentView.getItemByIndex(0)); | function (args) { let arg = args.literalArg; if (arg) { // load the selected playlist/smart playlist for ([, playlist] in Iterator(player.getPlaylists())) { if (util.compareIgnoreCase(arg, playlist.name) == 0) { SBGetBrowser().loadMediaList(playlist); this.focusTrack(this._currentView.getItemByIndex(0)); return; } } dactyl.echoerr("E475: Invalid argument: " + arg); } else { // load main library if there are no args _SBShowMainLibrary(); } }, |
commands.repeat = command; dactyl.execute(command); | try { var readHeredoc = io.readHeredoc; io.readHeredoc = commandline.readHeredoc; commands.repeat = command; dactyl.execute(command); } finally { io.readHeredoc = readHeredoc; } | this.registerCallback("submit", modes.EX, function (command) { commands.repeat = command; dactyl.execute(command); }); |
M);c.ready()}};if(V)c.inArray=function(a,b){return V.call(b,a)};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+K();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=d.getElementsByTagName("*"),i=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!i)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length, htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(i.getAttribute("style")),hrefNormalized:i.getAttribute("href")==="/a",opacity:/^0.55$/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(j){}a.insertBefore(b, a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function o(){c.support.noCloneEvent=false;d.detachEvent("onclick",o)});d.cloneNode(true).fireEvent("onclick")}c(function(){var o=s.createElement("div");o.style.width=o.style.paddingLeft="1px";s.body.appendChild(o);c.boxModel=c.support.boxModel=o.offsetWidth===2;s.body.removeChild(o).style.display="none"});a=function(o){var p=s.createElement("div");o="on"+o;var n=o in p;if(!n){p.setAttribute(o,"return;");n=typeof p[o]==="function"}return n};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=i=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var H="jQuery"+K(),Ta=0,ya={},Ua={};c.extend({cache:{},expando:H,noData:{embed:true,object:true,applet:true},data:function(a, | true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>"; var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, | M);c.ready()}};if(V)c.inArray=function(a,b){return V.call(b,a)};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+K();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=d.getElementsByTagName("*"),i=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!i)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(i.getAttribute("style")),hrefNormalized:i.getAttribute("href")==="/a",opacity:/^0.55$/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(j){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function o(){c.support.noCloneEvent=false;d.detachEvent("onclick",o)});d.cloneNode(true).fireEvent("onclick")}c(function(){var o=s.createElement("div");o.style.width=o.style.paddingLeft="1px";s.body.appendChild(o);c.boxModel=c.support.boxModel=o.offsetWidth===2;s.body.removeChild(o).style.display="none"});a=function(o){var p=s.createElement("div");o="on"+o;var n=o inp;if(!n){p.setAttribute(o,"return;");n=typeof p[o]==="function"}return n};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=i=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var H="jQuery"+K(),Ta=0,ya={},Ua={};c.extend({cache:{},expando:H,noData:{embed:true,object:true,applet:true},data:function(a, |
dactyl.forceNewTab = true; dactyl.execute(args[0], null, true); dactyl.forceNewTab = false; | try { var force = dactyl.forceNewTab; dactyl.forceNewTab = true; dactyl.execute(args[0], null, true); } finally { dactyl.forceNewTab = force; } | function (args) { dactyl.forceNewTab = true; dactyl.execute(args[0], null, true); dactyl.forceNewTab = false; }, { |
var force = dactyl.forceNewTab; dactyl.forceNewTab = true; | function (args) { try { var force = dactyl.forceNewTab; dactyl.forceNewTab = true; dactyl.execute(args[0], null, true); } finally { dactyl.forceNewTab = force; } }, { |
|
dactyl.forceNewTab = force; | tabs.updateSelectionHistory([tabs.getTab(), alternate]); | function (args) { try { var force = dactyl.forceNewTab; dactyl.forceNewTab = true; dactyl.execute(args[0], null, true); } finally { dactyl.forceNewTab = force; } }, { |
).addCallback(function(body){ return { type : 'quote', item : ctx.title.substring(0, ctx.title.indexOf(': ')), itemUrl: ctx.href, body : body.trim(), favorite : { name : 'Twitter', id : ctx.href.match(/(?:status|statuses)\/(\d+)/)[1] } }; | return request(url).addCallback(function(res){ var doc = createHTML(res.responseText); var form = formContents($X(' delete form.preview_post; form.redirect_to = self.TUMBLR_URL+'dashboard'; if(form.reblog_post_id){ if(form['post[type]']==='photo') form.image = $X('id("edit_post") } return form; | ).addCallback(function(body){ return { type : 'quote', item : ctx.title.substring(0, ctx.title.indexOf(': ')), itemUrl: ctx.href, body : body.trim(), favorite : { name : 'Twitter', id : ctx.href.match(/(?:status|statuses)\/(\d+)/)[1] } }; }); |
$.each(q, function (k, e) { if (e.end == b[i]) { r = {ikey: e.ikey.concat([kw]), start: e.start, end: b[j]}; me._registerQuery(r); if (r.ikey.length < maxKeyLength) s.push(r); } | d = $.grep(d, function (e) { return e >= b[j]; | $.each(q, function (k, e) { if (e.end == b[i]) { r = {ikey: e.ikey.concat([kw]), start: e.start, end: b[j]}; me._registerQuery(r); if (r.ikey.length < maxKeyLength) s.push(r); } }); |
maybeDeferred(Extractors.check(ctx).filter(function(m){ | var ext = Extractors.check(ctx).filter(function(m){ | maybeDeferred(Extractors.check(ctx).filter(function(m){ return /^Link/.test(m.name); })[0].extract(ctx)) |
})[0].extract(ctx)) | })[0]; | maybeDeferred(Extractors.check(ctx).filter(function(m){ return /^Link/.test(m.name); })[0].extract(ctx)) |
test("adds hidden class if view isVisible = NO", function() { | test("adds disabled class if view isEnabled = NO", function() { | test("adds hidden class if view isVisible = NO", function() { var view = SC.View.create() ; var context ; context = view.renderContext(); view.set('isVisible', YES); view.prepareContext(context, YES); ok(!context.hasClass('hidden'), 'should NOT have hidden class'); context = view.renderContext(); view.set('isVisible', NO); view.prepareContext(context, YES); ok(context.hasClass('hidden'), 'should have hidden class'); }); |
view.set('isVisible', YES); | view.set('isEnabled', YES); | test("adds hidden class if view isVisible = NO", function() { var view = SC.View.create() ; var context ; context = view.renderContext(); view.set('isVisible', YES); view.prepareContext(context, YES); ok(!context.hasClass('hidden'), 'should NOT have hidden class'); context = view.renderContext(); view.set('isVisible', NO); view.prepareContext(context, YES); ok(context.hasClass('hidden'), 'should have hidden class'); }); |
ok(!context.hasClass('hidden'), 'should NOT have hidden class'); | ok(!context.hasClass('disabled'), 'should NOT have disabled class'); | test("adds hidden class if view isVisible = NO", function() { var view = SC.View.create() ; var context ; context = view.renderContext(); view.set('isVisible', YES); view.prepareContext(context, YES); ok(!context.hasClass('hidden'), 'should NOT have hidden class'); context = view.renderContext(); view.set('isVisible', NO); view.prepareContext(context, YES); ok(context.hasClass('hidden'), 'should have hidden class'); }); |
view.set('isVisible', NO); | view.set('isEnabled', NO); | test("adds hidden class if view isVisible = NO", function() { var view = SC.View.create() ; var context ; context = view.renderContext(); view.set('isVisible', YES); view.prepareContext(context, YES); ok(!context.hasClass('hidden'), 'should NOT have hidden class'); context = view.renderContext(); view.set('isVisible', NO); view.prepareContext(context, YES); ok(context.hasClass('hidden'), 'should have hidden class'); }); |
ok(context.hasClass('hidden'), 'should have hidden class'); | ok(context.hasClass('disabled'), 'should have disabled class'); | test("adds hidden class if view isVisible = NO", function() { var view = SC.View.create() ; var context ; context = view.renderContext(); view.set('isVisible', YES); view.prepareContext(context, YES); ok(!context.hasClass('hidden'), 'should NOT have hidden class'); context = view.renderContext(); view.set('isVisible', NO); view.prepareContext(context, YES); ok(context.hasClass('hidden'), 'should have hidden class'); }); |
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ list_request.url = DcmgrGUI.Util.getPagePath('/security_groups/show/',c_pagenate.current_page); c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) $.each(c_list.checked_list,function(check_id,obj){ | $.each(c_list.checked_list,function(check_id,obj){ | bt_refresh.element.bind('dcmgrGUI.refresh',function(){ //Update list element list_request.url = DcmgrGUI.Util.getPagePath('/security_groups/show/',c_pagenate.current_page); c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) $.each(c_list.checked_list,function(check_id,obj){ //All remove detail element $($('#detail').find('#'+check_id)).remove(); //All reload detail element c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/security_groups/detail/',check_id) },true); }); }); |
url:DcmgrGUI.Util.getPagePath('/security_groups/detail/',check_id) | url:DcmgrGUI.Util.getPagePath('/security_groups/show/',check_id) | bt_refresh.element.bind('dcmgrGUI.refresh',function(){ //Update list element list_request.url = DcmgrGUI.Util.getPagePath('/security_groups/show/',c_pagenate.current_page); c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) $.each(c_list.checked_list,function(check_id,obj){ //All remove detail element $($('#detail').find('#'+check_id)).remove(); //All reload detail element c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/security_groups/detail/',check_id) },true); }); }); |
}); | bt_refresh.element.bind('dcmgrGUI.refresh',function(){ //Update list element list_request.url = DcmgrGUI.Util.getPagePath('/security_groups/show/',c_pagenate.current_page); c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) $.each(c_list.checked_list,function(check_id,obj){ //All remove detail element $($('#detail').find('#'+check_id)).remove(); //All reload detail element c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/security_groups/detail/',check_id) },true); }); }); |
|
return function() { return __method.apply(this, args.concat($A(arguments))); } | 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])*?\*\ | return function() { return __method.apply(this, args.concat($A(arguments))); } |
var m = $.grep(this.config, function (e) { return e[0] == key; | $.each(this.getConfigList("Punct"), function (i, p) { var a = p.split(/\s+/); var key = a[0]; var value; if (a.length > 2) { value = {type: "alt", value: a.slice(1)}; } else if (a.length == 2) { var b = a[1]; if (b.indexOf("~") != -1) { value = {type: "pair", value: b.split("~", 2)}; } else { value = {type: "unique", value: b}; } } punct[key] = value; | var m = $.grep(this.config, function (e) { return e[0] == key; }); |
else if(SC.browser.mozilla) same(result, { color: 'black', height: '20px', borderTop: '1px solid hotpink' }, 'extracted style. This is failing in IE8 because it return styles like cOLOR.'); else same(result, { color: 'black', height: '20px', borderTop: '1px solid hotpink', WebkitColumnCount: '3' }, 'extracted style. This is failing in IE8 because it return styles like cOLOR.'); equals(context.styles(), result, "should reuse same instance thereafter"); }); | test("extracts styles from element on first retrieval", function() { var elem = document.createElement('div'); SC.$(elem).attr('style', 'color: black; height: 20px; border-top: 1px solid hotpink; -webkit-column-count: 3'); context = SC.RenderContext(elem); var result = context.styles(); if(SC.browser.msie) same(result, { height: '20px', color: 'black', height: '20px', borderTop: 'hotpink 1px solid', WebkitColumnCount: '3' }, 'extracted style. This is failing in IE8 because it return styles like cOLOR.'); else if(SC.browser.mozilla) same(result, { color: 'black', height: '20px', borderTop: '1px solid hotpink' }, 'extracted style. This is failing in IE8 because it return styles like cOLOR.'); else same(result, { color: 'black', height: '20px', borderTop: '1px solid hotpink', WebkitColumnCount: '3' }, 'extracted style. This is failing in IE8 because it return styles like cOLOR.'); equals(context.styles(), result, "should reuse same instance thereafter");}); |
|
if (typeof count != "number" || count < 1) | if (typeof count != "number" || count < 1 || !hasCount) | function (count) { if (typeof count != "number" || count < 1) count = 1; editor.executeCommand(textEditCommand, count); }, |
editor.executeCommand(textEditCommand, count); | let controller = buffer.selectionController; while (count-- && modes.main == modes.VISUAL) { if (editor.isTextEdit) { if (typeof visualTextEditCommand == "function") visualTextEditCommand(); else editor.executeCommand(visualTextEditCommand); } else caretExecute(true, true); } | function (count) { if (typeof count != "number" || count < 1) count = 1; editor.executeCommand(textEditCommand, count); }, |
util.timeout(function () { document.documentElement.removeAttributeNS(NS, "highlight"); }, 20); | util.timeout(function () { document.documentElement.removeAttributeNS(NS, "highlight"); }, 5); | util.timeout(function () { document.documentElement.removeAttributeNS(NS, "highlight"); }, 20); |
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ list_request.url = DcmgrGUI.Util.getPagePath('/instances/show/',c_pagenate.current_page); c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) $.each(c_list.checked_list,function(check_id,obj){ $($('#detail').find('#'+check_id)).remove(); c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/instances/detail/',check_id) },true); }); | bt_instance_terminate.target.bind('click',function(){ bt_instance_terminate.open(c_list.getCheckedInstanceIds()); | bt_refresh.element.bind('dcmgrGUI.refresh',function(){ list_request.url = DcmgrGUI.Util.getPagePath('/instances/show/',c_pagenate.current_page); c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) //update detail $.each(c_list.checked_list,function(check_id,obj){ //todo:remove trigger event for detail $($('#detail').find('#'+check_id)).remove(); //todo:update trigger event for detail c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/instances/detail/',check_id) },true); }); }); |
$.each(q, function (i_, e) { if (e == t) { found = true; return false; } }); | this._loadConfig(schemaName, function (config) { schema = new Schema (schemaName, config); me._loadDict(schema, _sync ? callback : null); if (!_sync) { callback(schema); } }); | $.each(q, function (i_, e) { if (e == t) { found = true; return false; } }); |
bt_delete_volume.target.bind('click',function(){ bt_delete_volume.open(c_list.getCheckedInstanceIds()); | bt_refresh.element.bind('dcmgrGUI.refresh',function(){ c_list.page = c_pagenate.current_page; list_request.url = DcmgrGUI.Util.getPagePath('/volumes/list/',c_list.page); list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page,c_list.maxrow) c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) $.each(c_list.checked_list,function(check_id,obj){ $($('#detail').find('#'+check_id)).remove(); c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/volumes/show/',check_id) },true); }); | bt_delete_volume.target.bind('click',function(){ bt_delete_volume.open(c_list.getCheckedInstanceIds()); }); |
$$(".dcc_registers_checkbox").each(function(element) { | $$(".ddu_registers_checkbox").each(function(element) { | $$(".dcc_registers_checkbox").each(function(element) { element.checked = false; }); |
function () { events.feedkeys("<S-Up>"); }); | function () { dactyl.assert(commandline._lastMowOutput, "No previous command output"); commandline._echoMultiline(commandline._lastMowOutput, commandline.HL_NORMAL); }); | function () { events.feedkeys("<S-Up>"); }); |
function (args) { if (liberator.has("tabs")) tabs.remove(config.browser.mCurrentTab, 1, false, 1); else liberator.quit(false, args.bang); }, { | extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); | function (args) { if (liberator.has("tabs")) tabs.remove(config.browser.mCurrentTab, 1, false, 1); else liberator.quit(false, args.bang); }, { |
extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); | AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + ((e.userDisabled || e.appDisabled) == !e.isActive ? XML() : <> ({e.userDisabled || e.appDisabled ? <span highlight="Disabled">disabled</span> : <span highlight="Enabled">enabled</span>} on restart) </>), e.description] for ([, e] in Iterator(extensions))) ); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } else { if (filter) dactyl.echoerr("Exxx: No extension matching " + filter.quote()); else dactyl.echoerr("No extensions installed"); } }); | extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); |
connect(sug, 'onclick', cand, function(ev){ if(hasElementClass(sug, 'used')){ self.removeWord(cand); removeElementClass(sug, 'used'); } else { self.injectCandidates(cand, true); } }); | this.values().forEach(function(tag){ var elm = self.elmTags[tag]; if(elm) addElementClass(elm, 'used'); tags[tag] = null; }); | connect(sug, 'onclick', cand, function(ev){ if(hasElementClass(sug, 'used')){ self.removeWord(cand); removeElementClass(sug, 'used'); } else { self.injectCandidates(cand, true); } }); |
context.filters.push(function ({ item }) ok(item)); | function (args) { AddonManager.getAddonsByTypes(["extension"], dactyl.wrapCallback(function (list) { list = list.filter(function (extension) extension.name == args[0]); if (!list.length || !list[0].optionsURL) dactyl.echoerr("E474: Invalid argument"); else if (args.bang) window.openDialog(list[0].optionsURL, "_blank", "chrome"); else dactyl.open(list[0].optionsURL, { from: "extoptions" }); })); }, { | context.filters.push(function ({ item }) ok(item)); |
function () { commandline.open(":", "moveto ", modes.EX); }); | function () { commandline.open("", "moveto ", modes.EX); }); | function () { commandline.open(":", "moveto ", modes.EX); }); |
}, function(obj){ ret.callback(obj); }); | d = encodedRequest(ps.itemUrl).addCallback(function(res){ var doc = createHTML(res.responseText); ps.body = convertToHTMLString(doc.documentElement, true); }); | }, function(obj){ ret.callback(obj); }); |
this.timeout(function () { this._container.height -= commandline.getSpaceNeeded(); }, 0); | template.map(util.range(0, options["maxitems"] * 2), function (i) <span highlight="CompItem"> <li highlight="NonText">~</li> </span>) | this.timeout(function () { this._container.height -= commandline.getSpaceNeeded(); }, 0); |
context.filters.push(function (item) tokens.every( | context.fork("additional", 0, this, function (context) { context.title[0] += " (additional)"; context.filter = context.parent.filter; context.completions = context.parent.completions; let match = context.filters[0]; context.filters[0] = function (item) !match.call(this, item); let tokens = context.filter.split(/\s+/); context.filters.push(function (item) tokens.every( | context.filters.push(function (item) tokens.every( function (tok) contains(item.url, tok) || contains(item.title, tok))); |
let re = RegExp(tokens.filter(util.identity).map(util.escapeRegex).join("|"), "g"); function highlight(item, text, i) process[i].call(this, item, template.highlightRegexp(text, re)); let process = [template.icon, function (item, k) k]; context.process = [ function (item, text) highlight.call(this, item, item.text, 0), function (item, text) highlight.call(this, item, text, 1) ]; }); | context.filters.push(function (item) tokens.every( function (tok) contains(item.url, tok) || contains(item.title, tok))); |
|
AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); if (extensions.length > 0) commandline.commandOutput( template.tabular(["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + addonExtra(e), e.description] for ([, e] in Iterator(extensions))))); else if (filter) dactyl.echoerr("Exxx: No extension matching " + filter.quote()); else dactyl.echoerr("No extensions installed"); }); | extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); | AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); if (extensions.length > 0) commandline.commandOutput( template.tabular(["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + addonExtra(e), e.description] for ([, e] in Iterator(extensions))))); else if (filter) dactyl.echoerr("Exxx: No extension matching " + filter.quote()); else dactyl.echoerr("No extensions installed"); }); |
function (args) { events.feedkeys(args.string, args.bang); }, | function (args) { Liberator.showHelpIndex("option-index", options, args.bang); }, { | function (args) { events.feedkeys(args.string, args.bang); }, |
return Twitter.getToken().addCallback(function(token){ token.status = status; return request(self.URL + '/status/update', update({ sendContent : token })); }).addCallback(function(res){ | .addCallback(function(res){ var doc = createHTML(res.responseText); if($X('descendant::span[child::a[@href="http: throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return $X('descendant::input[contains(concat(" ",normalize-space(@name)," ")," at ")]/@value', doc)[0]; }); | return Twitter.getToken().addCallback(function(token){ // FIXME: 403が発生することがあったため redirectionLimit:0 を外す token.status = status; return request(self.URL + '/status/update', update({ sendContent : token })); }).addCallback(function(res){ |
function() {return new ActiveXObject('Microsoft.XMLHTTP')} | var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(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])*?\*\ | function() {return new ActiveXObject('Microsoft.XMLHTTP')} |
host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host)))); | storage["history-command"].mutate("filter", function (item) !(timespan.contains(item.timestamp) && (host ? commands.hasDomain(item.value, host) : item.privateData))); | host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host)))); |
$("ddu_display_button").observe("click", function(ev) { var ruis = new Array(); $$(".ddu_checkbox").each( function(e) { if (e.checked == true) { ruis.push(e.readAttribute("rui")); } | $("all_dcc_registers").observe("click", function(ev) { $$(".dcc_registers_checkbox").each(function(element) { element.checked = true; | $("ddu_display_button").observe("click", function(ev) { // The crates/slots to read var ruis = new Array(); $$(".ddu_checkbox").each( function(e) { if (e.checked == true) { ruis.push(e.readAttribute("rui")); } }); // The registers to read var registers = new Array(); $$(".ddu_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } }); // Can I submit a form without that form actually existing? ($$(".fake_form")).invoke("remove"); var time = new Date(); var fakeForm = new Element("form", {"class": "fake_form", "style": "display:none", "method": "post", "action": URL + "/DisplayRegisters?board=ddu"});//, "target": "commanderDisplay" + time.valueOf()}); ruis.each(function(rui) { fakeForm.insert(new Element("input", {"name": "rui", "value": rui})); }); registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); }); $("FED_Commander_Select_dialog").insert(fakeForm); fakeForm.submit(); }); |
var registers = new Array(); $$(".ddu_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } }); ($$(".fake_form")).invoke("remove"); var time = new Date(); var fakeForm = new Element("form", {"class": "fake_form", "style": "display:none", "method": "post", "action": URL + "/DisplayRegisters?board=ddu"}); ruis.each(function(rui) { fakeForm.insert(new Element("input", {"name": "rui", "value": rui})); }); registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); }); $("FED_Commander_Select_dialog").insert(fakeForm); fakeForm.submit(); | $("ddu_display_button").observe("click", function(ev) { // The crates/slots to read var ruis = new Array(); $$(".ddu_checkbox").each( function(e) { if (e.checked == true) { ruis.push(e.readAttribute("rui")); } }); // The registers to read var registers = new Array(); $$(".ddu_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } }); // Can I submit a form without that form actually existing? ($$(".fake_form")).invoke("remove"); var time = new Date(); var fakeForm = new Element("form", {"class": "fake_form", "style": "display:none", "method": "post", "action": URL + "/DisplayRegisters?board=ddu"});//, "target": "commanderDisplay" + time.valueOf()}); ruis.each(function(rui) { fakeForm.insert(new Element("input", {"name": "rui", "value": rui})); }); registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); }); $("FED_Commander_Select_dialog").insert(fakeForm); fakeForm.submit(); }); |
|
function () { events.feedkeys("<S-Down>"); }); | function () { events.feedkeys("<S-Up>"); }); | function () { events.feedkeys("<S-Down>"); }); |
function () { liberator.restart(); }, | function (args) { Liberator.showHelpIndex("ex-cmd-index", commands, args.bang); }, { | function () { liberator.restart(); }, |
extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); | extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); | extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); |
this.values().forEach(function(tag){ var elm = self.elmTags[tag]; if(elm) addElementClass(elm, 'used'); tags[tag] = null; | items(self.elmTags).forEach(function(pair){ var tag = pair[0], elm = pair[1]; if(!(tag in tags)) removeElementClass(elm, 'used'); | this.values().forEach(function(tag){ var elm = self.elmTags[tag]; if(elm) addElementClass(elm, 'used'); tags[tag] = null; }); |
function (args) { AddonManager.getAddonsByTypes(["extension"], dactyl.wrapCallback(function (list) { | AddonManager.getAddonsByTypes(["extension"], dactyl.wrapCallback(function (list) { | function (args) { AddonManager.getAddonsByTypes(["extension"], dactyl.wrapCallback(function (list) { list = list.filter(function (extension) extension.name == args[0]); if (!list.length || !list[0].optionsURL) dactyl.echoerr("E474: Invalid argument"); else if (args.bang) window.openDialog(list[0].optionsURL, "_blank", "chrome"); else dactyl.open(list[0].optionsURL, { from: "extoptions" }); })); }, { |
}, { | function (args) { AddonManager.getAddonsByTypes(["extension"], dactyl.wrapCallback(function (list) { list = list.filter(function (extension) extension.name == args[0]); if (!list.length || !list[0].optionsURL) dactyl.echoerr("E474: Invalid argument"); else if (args.bang) window.openDialog(list[0].optionsURL, "_blank", "chrome"); else dactyl.open(list[0].optionsURL, { from: "extoptions" }); })); }, { |
|
function () { commandline.open(":", "copyto ", modes.EX); }); | function () { commandline.open("", "copyto ", modes.EX); }); | function () { commandline.open(":", "copyto ", modes.EX); }); |
d = encodedRequest(ps.itemUrl).addCallback(function(res){ var doc = createHTML(res.responseText); ps.body = convertToHTMLString(doc.documentElement, true); }); | return d.addCallback(function(){ return self.getToken(); }).addCallback(function(token){ | d = encodedRequest(ps.itemUrl).addCallback(function(res){ var doc = createHTML(res.responseText); ps.body = convertToHTMLString(doc.documentElement, true); }); |
function (tok) contains(item.url, tok) || contains(item.title, tok))); | context.filters[0] = function (item) !match.call(this, item); | function (tok) contains(item.url, tok) || contains(item.title, tok))); |
cb=/,/;R=Array.prototype.slice;var Fa=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,i){return!!b.call(e,i,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Pa.test(b))return c.filter(b,f,!d);else b=c.filter(b,a)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length; | function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/, | cb=/,/;R=Array.prototype.slice;var Fa=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,i){return!!b.call(e,i,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Pa.test(b))return c.filter(b,f,!d);else b=c.filter(b,a)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length; |
extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); | extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); | extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); |
function (args) { Liberator.showHelpIndex("option-index", options, args.bang); }, { | function (args) { if (liberator.has("tabs")) tabs.remove(config.browser.mCurrentTab, 1, false, 1); else liberator.quit(false, args.bang); }, { | function (args) { Liberator.showHelpIndex("option-index", options, args.bang); }, { |
}).addCallback(function(res){ var msg = res.responseText.extract(/notification.setMessage\("(.*?)"\)/); if(msg) throw unescapeHTML(msg).trimTag(); | return this.getToken().addCallback(function(token){ return request('https: sendContent : { at : token, link : ps.pageUrl, title : ps.page, image0 : ps.type === 'photo'? ps.itemUrl : '', comment : joinText([ps.body, ps.description], ' ', true) } | }).addCallback(function(res){ var msg = res.responseText.extract(/notification.setMessage\("(.*?)"\)/); if(msg) throw unescapeHTML(msg).trimTag(); }); |
}); | }).addCallback(function(res){ var msg = res.responseText.extract(/notification.setMessage\("(.*?)"\)/); if(msg) throw unescapeHTML(msg).trimTag(); }); |
|
function (args) { Liberator.showHelpIndex("ex-cmd-index", commands, args.bang); }, { | extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); | function (args) { Liberator.showHelpIndex("ex-cmd-index", commands, args.bang); }, { |
function () { dactyl.assert(commandline._lastMowOutput, "No previous command output"); commandline._echoMultiline(commandline._lastMowOutput, commandline.HL_NORMAL); }); | function () { events.feedkeys("<S-Up>"); }); | function () { dactyl.assert(commandline._lastMowOutput, "No previous command output"); commandline._echoMultiline(commandline._lastMowOutput, commandline.HL_NORMAL); }); |
this.each(function(responder) { if (Object.isFunction(responder[callback])) { try { responder[callback].apply(responder, [request, transport, json]); } catch (e) { } } }); | 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])*?\*\ | this.each(function(responder) { if (Object.isFunction(responder[callback])) { try { responder[callback].apply(responder, [request, transport, json]); } catch (e) { } } }); |
!item.domains && !item.privateData || | commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host)))); |
|
$$(".ddu_checkbox").each( function(e) { if (e.checked == true) { ruis.push(e.readAttribute("rui")); } | $$(".dcc_registers_checkbox").each(function(element) { element.checked = true; | $$(".ddu_checkbox").each( function(e) { if (e.checked == true) { ruis.push(e.readAttribute("rui")); } }); |
storage["history-search"].mutate("filter", function (item) !timespan.contains(item.timestamp)); | function () { events.feedkeys("<S-Down>"); }); | storage["history-search"].mutate("filter", function (item) !timespan.contains(item.timestamp)); |
function (args) { let toolbar = findToolbar(args[0]); liberator.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, { | ].forEach(function (command) { let unchunked = command.name == "helpa[ll]"; commands.add([command.name], command.description, function (args) { liberator.assert(!args.bang, "E478: Don't panic!"); liberator.help(args.literalArg, unchunked); }, { argCount: "?", bang: true, completer: function (context) completion.help(context, unchunked), literal: 0 }); }); | function (args) { let toolbar = findToolbar(args[0]); liberator.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, { |
function (args) { Dactyl.showHelpIndex("ex-cmd-index", commands, args.bang); }, { | extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); | function (args) { Dactyl.showHelpIndex("ex-cmd-index", commands, args.bang); }, { |
items(self.elmTags).forEach(function(pair){ var tag = pair[0], elm = pair[1]; if(!(tag in tags)) removeElementClass(elm, 'used'); | connect(clone, 'onclick', this, function(){ self.tags.injectCandidates(cand.value, true); this.hidePopup(); | items(self.elmTags).forEach(function(pair){ var tag = pair[0], elm = pair[1]; if(!(tag in tags)) removeElementClass(elm, 'used'); }); |
AddonManager.getAddonsByTypes(["extension"], dactyl.wrapCallback(function (list) { list = list.filter(function (extension) extension.name == args[0]); if (!list.length || !list[0].optionsURL) dactyl.echoerr("E474: Invalid argument"); else if (args.bang) window.openDialog(list[0].optionsURL, "_blank", "chrome"); else dactyl.open(list[0].optionsURL, { from: "extoptions" }); })); | list = list.filter(function (extension) extension.name == args[0]); | AddonManager.getAddonsByTypes(["extension"], dactyl.wrapCallback(function (list) { list = list.filter(function (extension) extension.name == args[0]); if (!list.length || !list[0].optionsURL) dactyl.echoerr("E474: Invalid argument"); else if (args.bang) window.openDialog(list[0].optionsURL, "_blank", "chrome"); else dactyl.open(list[0].optionsURL, { from: "extoptions" }); })); |
return d.addCallback(function(){ return self.getToken(); }).addCallback(function(token){ | }).addCallback(function(token){ return request(self.POST_URL, { redirectionLimit : 0, sendContent : update(token, { saveQuicknote : 'save', format : 'microclip', url : ps.itemUrl || 'no url', title : ps.item || 'no title', comment : ps.description, body : getFlavor(ps, 'html'), tags : joinText(ps.tags, ','), fullPage : (ps.body)? 'true' : 'false' }) }); }); | return d.addCallback(function(){ return self.getToken();// login checkも走る }).addCallback(function(token){ |
let process = [template.icon, function (item, k) k]; | context.filters.push(function (item) tokens.every( function (tok) contains(item.url, tok) || contains(item.title, tok))); | let process = [template.icon, function (item, k) k]; |
cb=/,/;R=Array.prototype.slice;var Fa=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,i){return!!b.call(e,i,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Pa.test(b))return c.filter(b,f,!d);else b=c.filter(b,a)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length; | gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length; | cb=/,/;R=Array.prototype.slice;var Fa=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,i){return!!b.call(e,i,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Pa.test(b))return c.filter(b,f,!d);else b=c.filter(b,a)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length; |
extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); | function (args) { Dactyl.showHelpIndex("ex-cmd-index", commands, args.bang); }, { | extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); |
function (args) { if (liberator.has("tabs")) tabs.remove(config.browser.mCurrentTab, 1, false, 1); else liberator.quit(false, args.bang); }, { | function () { liberator.restart(); }, | function (args) { if (liberator.has("tabs")) tabs.remove(config.browser.mCurrentTab, 1, false, 1); else liberator.quit(false, args.bang); }, { |
return request(this.URL + '/account/settings').addCallback(function(res){ var html = res.responseText; if(~html.indexOf('login')) throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); return { authenticity_token : html.extract(/authenticity_token.+value="(.+?)"/), siv : html.extract(/logout\?siv=(.+?)"/) } | ).addCallback(function(status){ return Twitter.getToken().addCallback(function(token){ token.status = status; return request(self.URL + '/status/update', update({ sendContent : token })); }).addCallback(function(res){ var msg = res.responseText.extract(/notification.setMessage\("(.*?)"\)/); if(msg) throw unescapeHTML(msg).trimTag(); }); | return request(this.URL + '/account/settings').addCallback(function(res){ var html = res.responseText; if(~html.indexOf('login')) throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); return { authenticity_token : html.extract(/authenticity_token.+value="(.+?)"/), siv : html.extract(/logout\?siv=(.+?)"/) } }); |
].forEach(function (command) { let unchunked = command.name == "helpa[ll]"; commands.add([command.name], command.description, function (args) { liberator.assert(!args.bang, "E478: Don't panic!"); liberator.help(args.literalArg, unchunked); }, { argCount: "?", bang: true, completer: function (context) completion.help(context, unchunked), literal: 0 }); }); | function (args) { Liberator.showHelpIndex("ex-cmd-index", commands, args.bang); }, { | ].forEach(function (command) { let unchunked = command.name == "helpa[ll]"; commands.add([command.name], command.description, function (args) { liberator.assert(!args.bang, "E478: Don't panic!"); liberator.help(args.literalArg, unchunked); }, { argCount: "?", bang: true, completer: function (context) completion.help(context, unchunked), literal: 0 }); }); |
function () { events.feedkeys("<S-Up>"); }); | function () { events.feedkeys("<S-Down>"); }); | function () { events.feedkeys("<S-Up>"); }); |
$H(extras).each(function(pair) { headers[pair.key] = pair.value }); | 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])*?\*\ | $H(extras).each(function(pair) { headers[pair.key] = pair.value }); |
$$(".ddu_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } | $("no_dcc_registers").observe("click", function(ev) { $$(".dcc_registers_checkbox").each(function(element) { element.checked = false; | $$(".ddu_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } }); |
}); | $$(".ddu_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } }); |
|
function (toolbar) toolbar.collapsed = false, | function (args) { liberator.assert(!args.bang, "E478: Don't panic!"); liberator.help(args.literalArg, unchunked); }, { | function (toolbar) toolbar.collapsed = false, |
].forEach(function (command) { let unchunked = command.name == "helpa[ll]"; commands.add([command.name], command.description, function (args) { dactyl.assert(!args.bang, "E478: Don't panic!"); dactyl.help(args.literalArg, unchunked); }, { argCount: "?", bang: true, completer: function (context) completion.help(context, unchunked), literal: 0 }); }); | function (args) { Dactyl.showHelpIndex("ex-cmd-index", commands, args.bang); }, { | ].forEach(function (command) { let unchunked = command.name == "helpa[ll]"; commands.add([command.name], command.description, function (args) { dactyl.assert(!args.bang, "E478: Don't panic!"); dactyl.help(args.literalArg, unchunked); }, { argCount: "?", bang: true, completer: function (context) completion.help(context, unchunked), literal: 0 }); }); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.