rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
case 'SET[notimplemented]': | case 'SET_notimplemented': | var mapClasses = function (buttonId) { var className; switch (buttonId) { case 'SET[success]': className = 'testcaseSuccess'; break; case 'SET[failure]': className = 'testcaseFailure'; break; case 'SET[error]': className = 'testcaseError'; break; case 'SET[skipped]': className = 'testcaseSkipped'; ... |
case 'SET[testdox]': | case 'SET_testdox': | var mapClasses = function (buttonId) { var className; switch (buttonId) { case 'SET[success]': className = 'testcaseSuccess'; break; case 'SET[failure]': className = 'testcaseFailure'; break; case 'SET[error]': className = 'testcaseError'; break; case 'SET[skipped]': className = 'testcaseSkipped'; ... |
case 'SET[showMemoryAndTime]': | case 'SET_showMemoryAndTime': | var mapClasses = function (buttonId) { var className; switch (buttonId) { case 'SET[success]': className = 'testcaseSuccess'; break; case 'SET[failure]': className = 'testcaseFailure'; break; case 'SET[error]': className = 'testcaseError'; break; case 'SET[skipped]': className = 'testcaseSkipped'; ... |
className = ''; | var mapClasses = function (buttonId) { var className; switch (buttonId) { case 'SET[success]': className = 'testcaseSuccess'; break; case 'SET[failure]': className = 'testcaseFailure'; break; case 'SET[error]': className = 'testcaseError'; break; case 'SET[skipped]': className = 'testcaseSkipped'; ... | |
function (arg) { quickmarks.jumpTo(arg, /\bquickmark\b/.test(options["activate"]) ? dactyl.NEW_TAB : dactyl.NEW_BACKGROUND_TAB); }, | function (arg) { quickmarks.jumpTo(arg, { from: "quickmark", where: dactyl.NEW_TAB }); }, | mappings: function () { var myModes = config.browserModes; mappings.add(myModes, ["go"], "Jump to a QuickMark", function (arg) { quickmarks.jumpTo(arg, dactyl.CURRENT_TAB); }, { arg: true }); mappings.add(myModes, ["gn"], "Jump to a QuickMark in a new... |
return editor.expandAbbreviation(modes.COMMAND_LINE); | editor.expandAbbreviation(modes.COMMAND_LINE); return true; | mappings: function () { var myModes = [modes.COMMAND_LINE]; // TODO: move "<Esc>", "<C-[>" here from mappings mappings.add(myModes, ["<C-c>"], "Focus content", function () { events.onEscape(); }); // Any "non-keyword" character triggers abbreviation expansion ... |
rangefinder._found = false; rangefinder.onSubmit(buffer.getCurrentWord(), false); | rangefinder.find(buffer.getCurrentWord(), false); rangefinder.findAgain(); | mappings: function () { var myModes = config.browserModes.concat([modes.CARET]); mappings.add(myModes, ["/"], "Search forward for a pattern", function () { rangefinder.openPrompt(modes.FIND_FORWARD); }); mappings.add(myModes, ["?"], "Search backwards for a patte... |
rangefinder._found = false; rangefinder.onSubmit(buffer.getCurrentWord(), true); | rangefinder.find(buffer.getCurrentWord(), true); rangefinder.findAgain(); | mappings: function () { var myModes = config.browserModes.concat([modes.CARET]); mappings.add(myModes, ["/"], "Search forward for a pattern", function () { rangefinder.openPrompt(modes.FIND_FORWARD); }); mappings.add(myModes, ["?"], "Search backwards for a patte... |
dactyl.assert(this._lastMowOutput); this._echoMultiline(this._lastMowOutput, commandline.HL_NORMAL); | dactyl.assert(commandline._lastMowOutput, "No previous command output"); commandline._echoMultiline(commandline._lastMowOutput, commandline.HL_NORMAL); | mappings: function () { var myModes = [modes.COMMAND_LINE]; // TODO: move "<Esc>", "<C-[>" here from mappings mappings.add(myModes, ["<C-c>"], "Focus content", function () { events.onEscape(); }); // Any "non-keyword" character triggers abbreviation expansion ... |
mappings.add([modes.NORMAL], ["<C-l>"], | mappings.add(modes.all, ["<C-l>"], | mappings: function () { mappings.add([modes.NORMAL], ["y"], "Yank current location to the clipboard", function () { dactyl.clipboardWrite(buffer.URL, true); }); // opening websites mappings.add([modes.NORMAL], ["o"], "Open one or more URLs", function ... |
mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET], | mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET].filter(util.identity), | mappings: function () { // add the ":" mapping in all but insert mode mappings mappings.add(modes.matchModes({ extended: false, input: false }), [":"], "Enter command-line mode", function () { commandline.open(":", "", modes.EX); }); // focus events mappings.add([mo... |
mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET, modes.INSERT, modes.TEXT_EDIT], | mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET, modes.INSERT, modes.TEXT_EDIT].filter(util.identity), | mappings: function () { // add the ":" mapping in all but insert mode mappings mappings.add(modes.matchModes({ extended: false, input: false }), [":"], "Enter command-line mode", function () { commandline.open(":", "", modes.EX); }); // focus events mappings.add([mo... |
mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE], | mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE].filter(util.identity), | mappings: function () { // add the ":" mapping in all but insert mode mappings mappings.add(modes.matchModes({ extended: false, input: false }), [":"], "Enter command-line mode", function () { commandline.open(":", "", modes.EX); }); // focus events mappings.add([mo... |
/\bquickmark\b/.test(options["activate"]) ? | options.get("activate").has("all", "quickmark") ? | mappings: function () { var myModes = config.browserModes; mappings.add(myModes, ["go"], "Jump to a QuickMark", function (arg) { quickmarks.jumpTo(arg, liberator.CURRENT_TAB); }, { arg: true }); mappings.add(myModes, ["gn"], "Jump to a QuickMark in a ... |
mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET].filter(util.identity), ["<Tab>"], "Advance keyboard focus", function () { document.commandDispatcher.advanceFocus(); }); mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET, modes.INSERT, modes.TEXT_EDIT].filter(util.identity), ["<S-T... | mappings: function () { // add the ":" mapping in all but insert mode mappings mappings.add(modes.matchModes({ extended: false, input: false }), [":"], "Enter command-line mode", function () { commandline.open(":", "", modes.EX); }); // focus events mappings.add([mo... | |
commands.commandToString({ command: "bmark", options: options, arguments: [buffer.URL], bang: bmarks.length == 1 }), | commands.commandToString({ command: "bmark", options: options, arguments: [buffer.URL] }), | mappings: function () { var myModes = config.browserModes; mappings.add(myModes, ["a"], "Open a prompt to bookmark the current URL", function () { let options = {}; let bmarks = bookmarks.get(buffer.URL).filter(function (bmark) bmark.url == buffer.UR... |
commandline.open(":", | commandline.open("", | mappings: function () { var myModes = config.browserModes; mappings.add(myModes, ["a"], "Open a prompt to bookmark the current URL", function () { let options = {}; let bmarks = bookmarks.get(buffer.URL).filter(function (bmark) bmark.url == buffer.UR... |
commandline.open(":", "contact " + address + " " + displayName, modes.EX); | commandline.open("", "contact " + address + " " + displayName, modes.EX); | mappings: function () { var myModes = config.mailModes; mappings.add(myModes, ["a"], "Open a prompt to save a new addressbook entry for the sender of the selected message", function () { try { var to = gDBView.hdrForFirstSelectedMessage.mime2Deco... |
function () { commandline.open(":", "", modes.EX); }); | function () { commandline.open("", "", modes.EX); }); | mappings: function () { mappings.add(modes.all, ["<Esc>", "<C-[>"], "Focus content", function () { events.onEscape(); }); // add the ":" mapping in all but insert mode mappings mappings.add(modes.matchModes({ extended: false, input: false }), [":"], "Enter comma... |
if(this._indexMap[index] && this._indexMap[index] != view) debugger; | if(this._indexMap[index] && this._indexMap[index] != view) throw "index already mapped"; | mapToIndex: function(view) { var index = view.contentIndex; // a view should never get mapped ontop of another view, you should always unmap then remap if(this._indexMap[index] && this._indexMap[index] != view) debugger; this._indexMap[index] = view; return view; }, |
var item = this.get('content').objectAt(index), views = this._viewsForItem[SC.guidFor(item)] || (this._viewsForItem[SC.guidFor(item)] = SC.CoreSet.create()); | var item = view.content; | mapView: function(view, index) { var item = this.get('content').objectAt(index), views = this._viewsForItem[SC.guidFor(item)] || (this._viewsForItem[SC.guidFor(item)] = SC.CoreSet.create()); // add to cache for item views.add(view); this._indexMap[index] = view; }, |
views.add(view); | if(item) { var views = this._viewsForItem[SC.guidFor(item)] || (this._viewsForItem[SC.guidFor(item)] = SC.CoreSet.create()); views.add(view); } | mapView: function(view, index) { var item = this.get('content').objectAt(index), views = this._viewsForItem[SC.guidFor(item)] || (this._viewsForItem[SC.guidFor(item)] = SC.CoreSet.create()); // add to cache for item views.add(view); this._indexMap[index] = view; }, |
calcDuration("AIRPORT"); | if(oldDist == "" && $('dst_time').value != $('dst_time').hintText) { calcDuration("ARRIVAL"); } else { calcDuration("AIRPORT"); } | function markAirport(element, quick) { if(element.startsWith("src_ap")) { var icon = '/img/icon_plane-src.png'; } else { var icon = '/img/icon_plane-dst.png'; } if(getCurrentPane() == "multiinput") { element = markingLimit(element); } if(!element) return; // nothing to draw var data = $(element + 'id').... |
var el = document.getElementById(this.detailId); | var el = document.getElementById(this.detailID); | doctest.Example.prototype.markExample = function (name, detail) { if (! this.htmlID) { return; } if (this.detailID) { var el = document.getElementById(this.detailId); el.parentNode.removeChild(el); this.detailID = null; } var span = document.getElementById(this.htmlID); span.className = span.className... |
match: function(element) { this.tokens = []; var e = this.expression, ps = Selector.patterns, as = Selector.assertions; var le, p, m; while (e && le !== e && (/\S/).test(e)) { le = e; for (var i in ps) { p = ps[i]; if (m = e.match(p)) { if (as[i]) { this.tokens.push([i, Object.clone(m)]); e = e.replace(m[0], ''); }... | 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(... | match: function(element) { this.tokens = []; var e = this.expression, ps = Selector.patterns, as = Selector.assertions; var le, p, m; while (e && le !== e && (/\S/).test(e)) { le = e; for (var i in ps) { p = ps[i]; if (m = e.match(p)) { // use the Selector.assertions metho... |
matchElements: function(elements, expression) { var matches = $$(expression), h = Selector.handlers; h.mark(matches); for (var i = 0, results = [], element; element = elements[i]; i++) if (element._countedByPrototype) results.push(element); h.unmark(matches); return results; }, | 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(... | matchElements: function(elements, expression) { var matches = $$(expression), h = Selector.handlers; h.mark(matches); for (var i = 0, results = [], element; element = elements[i]; i++) if (element._countedByPrototype) results.push(element); h.unmark(matches); return results; }, |
(E||g);if(i.call(y)==="[object Array]")if(I)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&F(h,y[g])))k.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&k.push(u[g]);else k.push.apply(k,y);else B(y,k);if(S){p(S,r,k,m);p.uniqueSort(k)}return k};p.uniqueSort=function... | g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){... | (E||g);if(i.call(y)==="[object Array]")if(I)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&F(h,y[g])))k.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&k.push(u[g]);else k.push.apply(k,y);else B(y,k);if(S){p(S,r,k,m);p.uniqueSort(k)}return k};p.uniqueSort=function... |
var desc = self.name + '.' + name; | var desc = self._name + '.' + name; | self.method = function (name, options, extraOptions) { var desc = self.name + '.' + name; var newSpy = Spy(desc, options, extraOptions); self[name] = self.func[name] = newSpy.func; return newSpy; }; |
description: "Forward Find mode, active when typing search input" | description: "Backward Find mode, active when typing search input" | modes: function () { /* Must come before commandline. */ modes.addMode("FIND_FORWARD", { extended: true, description: "Forward Find mode, active when typing search input" }); modes.addMode("FIND_BACKWARD", { extended: true, description: "Forwar... |
config.modes.forEach(function (mode) { modes.addMode.apply(modes, mode); }); | modes: function () { this.ignoreKeys = { "<Return>": modes.NORMAL | modes.INSERT, "<Space>": modes.NORMAL | modes.INSERT, "<Up>": modes.NORMAL | modes.INSERT, "<Down>": modes.NORMAL | modes.INSERT }; }, | |
} | }, | modes: function () { for (let mode in modes) { this._main[mode] = []; this._user[mode] = []; } } |
item_attrs["role"] = role; | item_attrs.role = role; | modifyUser: function(room, nick, role, affiliation, reason) { var item_attrs = {nick: Strophe.escapeNode(nick)}; if (role !== null) { item_attrs["role"] = role; } if (affiliation !== null) { item_attrs["affiliation"] = affiliation; } var ... |
item_attrs["affiliation"] = affiliation; | item_attrs.affiliation = affiliation; | modifyUser: function(room, nick, role, affiliation, reason) { var item_attrs = {nick: Strophe.escapeNode(nick)}; if (role !== null) { item_attrs["role"] = role; } if (affiliation !== null) { item_attrs["affiliation"] = affiliation; } var ... |
var room = $iq({to: room, type: "set"}) | var roomiq = $iq({to: room, type: "set"}) | modifyUser: function(room, nick, role, affiliation, reason) { var item_attrs = {nick: Strophe.escapeNode(nick)}; if (role !== null) { item_attrs["role"] = role; } if (affiliation !== null) { item_attrs["affiliation"] = affiliation; } var ... |
return this._connection.sendIQ(room.tree(), | return this._connection.sendIQ(roomiq.tree(), | modifyUser: function(room, nick, role, affiliation, reason) { var item_attrs = {nick: Strophe.escapeNode(nick)}; if (role !== null) { item_attrs["role"] = role; } if (affiliation !== null) { item_attrs["affiliation"] = affiliation; } var ... |
if (idx>=0) { | if (idx === this.overflowIndex) { this.showOverflowItems(); } else if (idx>=0) { | mouseDown: function(evt) { if (!this.get('isEnabled')) return YES; // nothing to do var idx = this.displayItemIndexForEvent(evt); // if mouse was pressed on a button, then start detecting pressed events if (idx>=0) { this._isMouseDown = YES ; this.set('activeIndex', idx); } return ... |
e.clientY + 20 < window.innerHeight && !hitTextNode(e)) { | e.clientY + 20 < window.innerHeight) { | function mouseDown(e) { console.log("mousedown"); var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture && !e.ctrlKey && !e.altKey && e.clientX + 20 < window.innerWidth && e.clientY + 20 < window.innerHeight && !hitTextNode(e)) { document.addEventListener('mousemove', mouseMo... |
e.clientY + 20 < window.innerHeight) { | e.clientY + 20 < window.innerHeight && !hitTextNode(e)) { document.addEventListener('mousemove', mouseMove, false); | function mouseDown(e) { var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture && !e.ctrlKey && !e.altKey && e.clientX + 20 < window.innerWidth && e.clientY + 20 < window.innerHeight) { return gesture.beginGesture(e); }} |
} else { gesture.cancelGesture(e); return true; | function mouseDown(e) { var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture && !e.ctrlKey && !e.altKey && e.clientX + 20 < window.innerWidth && e.clientY + 20 < window.innerHeight) { return gesture.beginGesture(e); }} | |
console.log("mousedown"); | function mouseDown(e) { console.log("mousedown"); var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture && !e.ctrlKey && !e.altKey && e.clientX + 20 < window.innerWidth && e.clientY + 20 < window.innerHeight) { document.addEventListener('mousemove', mouseMove, false); return ge... | |
var use_gesture = local_options["enable_gesture"]; | var use_gesture = local_options["enable_gesture"] == "true"; | function mouseDown(e) { var use_gesture = local_options["enable_gesture"]; if (use_gesture && !e.ctrlKey && !e.altKey && e.clientX + 20 < window.innerWidth && e.clientY + 20 < window.innerHeight) { return gesture.beginGesture(e); }} |
e.clientY + 20 < window.innerHeight) { | e.clientY + 20 < window.innerHeight && !gesture.in_gesture) { | function mouseDown(e) { var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture && !e.ctrlKey && !e.altKey && e.clientX + 20 < window.innerWidth && e.clientY + 20 < window.innerHeight) { document.addEventListener('mousemove', mouseMove, false); return gesture.beginGesture(e); } e... |
activeChildView.set('isActive', NO); | if (activeChildView) activeChildView.set('isActive', NO); | mouseExited: function(evt) { var activeChildView; // if mouse was down, hide active index if (this._isMouseDown) { activeChildView = this.activeChildView; activeChildView.set('isActive', NO); this.activeChildView = null; } return YES; }, |
return false; | document.removeEventListener('mousemove', mouseMove, false); return true; | function mouseMove(e) { var use_gesture = local_options["enable_gesture"] == "true"; if (!drag_and_go.in_drag && use_gesture) { return gesture.moveGesture(e); } return false;} |
console.log("mousemove"); | function mouseMove(e) { console.log("mousemove"); var use_gesture = local_options["enable_gesture"] == "true"; if (!drag_and_go.in_drag && use_gesture) { return gesture.moveGesture(e); } document.removeEventListener('mousemove', mouseMove, false); return true;} | |
var use_gesture = local_options["enable_gesture"]; | var use_gesture = local_options["enable_gesture"] == "true"; | function mouseMove(e) { var use_gesture = local_options["enable_gesture"]; if (!drag_and_go.in_drag && use_gesture) { return gesture.moveGesture(e); } return false;} |
this.set('isActive', NO); this._isMouseDown = NO; | mouseUp: function(evt) { if(!this.get('isEnabled') || (evt && evt.target && !this.$().within(evt.target))) { return YES; } var val = this.get('value'); if (val === this.get('toggleOnValue')) { this.renderer.attr('ariaValue', 'false'); this.renderer.update(); this.set('value', thi... | |
this.set('isActive', NO); | mouseUp: function(evt) { var timestamp = new Date().getTime(), previousTimestamp = this._menuRenderedTimestamp, menu = this.get('menu'), touch = SC.platform.touch, targetMenuItem; if (menu) { targetMenuItem = menu.getPath('rootMenu.targetMenuItem'); if (targetMenuItem && ta... | |
this.set("isActive", NO); | mouseUp: function(evt) { var menu = this.get('menu'), targetMenuItem, success; if (menu) { targetMenuItem = menu.getPath('rootMenu.targetMenuItem'); if (targetMenuItem && menu.get('mouseHasEntered')) { // Have the menu item perform its action. // If the menu returns NO, it had no action ... | |
console.log("mouseup"); | function mouseUp(e) { var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture) { return gesture.endGesture(e); }} | |
console.log("mouseup"); | function mouseUp(e) { console.log("mouseup"); var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture) { return gesture.endGesture(e); }} | |
var use_gesture = local_options["enable_gesture"]; | var use_gesture = local_options["enable_gesture"] == "true"; | function mouseUp(e) { var use_gesture = local_options["enable_gesture"]; if (use_gesture) { return gesture.endGesture(e); }} |
evt.allowDefault(); return YES; | if(this.get('isTextArea')) { evt.allowDefault(); return YES; } else return NO; | mouseWheel: function(evt) { evt.allowDefault(); return YES; }, |
let index = Tabs.indexFromSpec(spec, wrap); | let index = tabs.indexFromSpec(spec, wrap); | move: function (tab, spec, wrap) { let index = Tabs.indexFromSpec(spec, wrap); config.tabbrowser.moveTabTo(tab, index); }, |
this.items[this.selectedIndex].style.backgroundColor = '#ffffff'; | removeElementClass(this.items[this.selectedIndex], "selected"); | moveCursor: function(offset){ var index = this.selectedIndex + offset; index = index >= this.rowCount ? 0: index < 0 ? (this.rowCount - 1) : index; this.items[this.selectedIndex].style.backgroundColor = '#ffffff'; this.selectedIndex = index this.items[this.selectedIndex].style.b... |
this.items[this.selectedIndex].style.backgroundColor = '#ccf0ff'; | addElementClass(this.items[this.selectedIndex], "selected"); | moveCursor: function(offset){ var index = this.selectedIndex + offset; index = index >= this.rowCount ? 0: index < 0 ? (this.rowCount - 1) : index; this.items[this.selectedIndex].style.backgroundColor = '#ffffff'; this.selectedIndex = index this.items[this.selectedIndex].style.b... |
if (!this.canvas.hasCanvas() && range && range.startContainer.nodeName == "#text" && | if (!this.canvas.hasCanvas() && range && | moveGesture: function(e) { if (!this.in_gesture) { return true; } if (new Date().getTime() - this.start_time < 300) { // Wait for dragStart before some us time passes. return true; } var range = window.getSelection().getRangeAt(0); console.log(range); console.log(range); if (!th... |
window.getSelection().empty(); | moveGesture: function(e) { if (!this.in_gesture) { return true; } if (new Date().getTime() - this.start_time < 300) { // Wait for some us till we didn't see dragStart. return true; } this.canvas.showCanvas(this.last_pos.x, this.last_pos.y, document.body); this.collectGestures(e); t... | |
window.getSelection().empty(); | var range = window.getSelection().getRangeAt(0); console.log(range); console.log(range); if (!this.canvas.hasCanvas() && range && range.startContainer.nodeName == "#text" && range.startContainer == range.endContainer && range.startOffset < range.startContainer.length && range.endOffset < range.endContainer.length) { th... | moveGesture: function(e) { if (!this.in_gesture) { return true; } if (new Date().getTime() - this.start_time < 300) { // Wait for dragStart before some us time passes. return true; } window.getSelection().empty(); this.canvas.showCanvas(this.last_pos.x, this.last_pos.y, document.body)... |
window.getSelection().empty(); | moveGesture: function(e) { if (!this.in_gesture) { return true; } if (new Date().getTime() - this.start_time < 300) { // Wait for dragStart before some us time passes. return true; } window.getSelection().empty(); this.canvas.showCanvas(this.last_pos.x, this.last_pos.y, document.body)... | |
var range = window.getSelection().getRangeAt(0); console.log(range); console.log(range); if (!this.canvas.hasCanvas() && range && | var range = null; if (window.getSelection().rangeCount > 0) { range = window.getSelection().getRangeAt(0); } if (!this.canvas.hasCanvas() && range && | moveGesture: function(e) { if (!this.in_gesture) { return true; } if (new Date().getTime() - this.start_time < 300) { // Wait for dragStart before some us time passes. return true; } var range = window.getSelection().getRangeAt(0); console.log(range); console.log(range); if (!th... |
range.startOffset < range.startContainer.length && range.endOffset < range.endContainer.length) { | (range.startContainer.nodeName == "#text" && range.startOffset < range.startContainer.length && range.endOffset < range.endContainer.length || range.startOffset == range.endOffset)) { | moveGesture: function(e) { if (!this.in_gesture) { return true; } if (new Date().getTime() - this.start_time < 300) { // Wait for dragStart before some us time passes. return true; } var range = window.getSelection().getRangeAt(0); console.log(range); console.log(range); if (!th... |
this.utn11 = new TlsMyanmarUtn11(); | function MyanmarConverterEventListener(conv){ this.messages = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService) .createBundle("chrome://myanmar-converter/locale/MyanmarConverter.properties"); this.conv=conv; return thi... | |
this.spaceCount = this.countSpaces(); | function MyanmarConverterWordSeparatorListener(input){ this.input = input; return this;} | |
MochiKit.Signal.disconnect(_onbeforeunload) | MochiKit.Signal.disconnect(_onbeforeunload); | function navigate(){ if (!validate()) return true MochiKit.Signal.disconnect(_onbeforeunload) url = 'http://' + location.hostname + ':' + location.port + "/activity/virtualpatient/navigate/" + $('page_id').value + "/" + $('patient_id').value + "/" jsontxt = get_state() // defined by individual pag... |
url = 'http: | var url = 'http: | function navigate(){ if (!validate()) return true MochiKit.Signal.disconnect(_onbeforeunload) url = 'http://' + location.hostname + ':' + location.port + "/activity/virtualpatient/navigate/" + $('page_id').value + "/" + $('patient_id').value + "/" jsontxt = get_state() // defined by individual pag... |
jsontxt = get_state() | var jsontxt = get_state() | function navigate(){ if (!validate()) return true MochiKit.Signal.disconnect(_onbeforeunload) url = 'http://' + location.hostname + ':' + location.port + "/activity/virtualpatient/navigate/" + $('page_id').value + "/" + $('patient_id').value + "/" jsontxt = get_state() // defined by individual pag... |
deferred = doXHR(url, | var deferred = doXHR(url, | function navigate(){ if (!validate()) return true MochiKit.Signal.disconnect(_onbeforeunload) url = 'http://' + location.hostname + ':' + location.port + "/activity/virtualpatient/navigate/" + $('page_id').value + "/" + $('patient_id').value + "/" jsontxt = get_state() // defined by individual pag... |
var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; | var base = ["base.js", "php.js"]; var css = "../resources/codemirror/css/phpcolors.css"; | function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: va... |
var parser = ["tokenizejavascript.js", "parsejavascript.js"]; | var base = ["base.js", "javascript.js"]; | function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: va... |
var parser = "parsecss.js"; | var base = ["base.js", "css.js"]; | function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: va... |
var parser = ["parsexml.js", "parsecss.js", "tokenizejavascript.js", "parsejavascript.js", "parsehtmlmixed.js"]; | var base = ["base.js", "html.js"]; | function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: va... |
parserfile: parser, | path: "../resources/codemirror/js/", basefiles: base, parserfile: [], | function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: va... |
path: "../resources/codemirror/js/", | function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: va... | |
textWrapping: false, | function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: va... | |
try { if (!("all" in this.FILE_MAP)) return redirect(uri.spec, uri, 1); switch(uri.host) { case "help": let url = this.FILE_MAP[decodeURIComponent(uri.path.replace(/^\/|#.*/g, ""))]; return makeChannel(url, uri); case "help-overlay": url = this.OVERLAY_MAP[decodeURIComponent(uri.path.replace(/^\/|#.*/g, ""))]; return ... | let channel = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService) .newChannel("chrome: channel.originalURI = uri; return channel; }, | newChannel: function (uri) { try { if (!("all" in this.FILE_MAP)) return redirect(uri.spec, uri, 1); switch(uri.host) { case "help": let url = this.FILE_MAP[decodeURIComponent(uri.path.replace(/^\/|#.*/g, ""))]; return makeChannel(... |
let sandbox = Components.utils.Sandbox(window); | let sandbox = Components.utils.Sandbox(window, { sandboxPrototype: proto || modules, wantXrays: false }); | function newContext(proto) { let sandbox = Components.utils.Sandbox(window); // Hack: sandbox.Object = jsmodules.Object; sandbox.Math = jsmodules.Math; sandbox.__proto__ = proto || modules; return sandbox; } |
var uri = Cc["@mozilla.org/network/standard-url;1"] .createInstance(Ci.nsIStandardURL) .QueryInterface(Ci.nsIURI); uri.init(uri.URLTYPE_STANDARD, this.defaultPort, spec, charset, baseURI); | var uri = Components.classes["@mozilla.org/network/standard-url;1"] .createInstance(Components.interfaces.nsIStandardURL) .QueryInterface(Components.interfaces.nsIURI); uri.init(uri.URLTYPE_STANDARD, this.defaultPort, spec, charset, null); | newURI: function (spec, charset, baseURI) { var uri = Cc["@mozilla.org/network/standard-url;1"] .createInstance(Ci.nsIStandardURL) .QueryInterface(Ci.nsIURI); uri.init(uri.URLTYPE_STANDARD, this.defaultPort, spec, charset, baseURI); return uri; }... |
next: function(element, expression, index) { element = $(element); if (arguments.length == 1) return $(Selector.handlers.nextElementSibling(element)); var nextSiblings = element.nextSiblings(); return Object.isNumber(expression) ? nextSiblings[expression] : Selector.findElement(nextSiblings, expression, index); }, | Ext.DomHelper=function(){var m=null;var g=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i;var b=/^table|tbody|tr|td$/i;var a=function(w){if(typeof w=="string"){return w}var q="";if(Ext.isArray(w)){for(var u=0,r=w.length;u<r;u++){q+=a(w[u])}return q}if(!w.tag){w.tag="div"}q+="<"+w.tag;for(var p ... | next: function(element, expression, index) { element = $(element); if (arguments.length == 1) return $(Selector.handlers.nextElementSibling(element)); var nextSiblings = element.nextSiblings(); return Object.isNumber(expression) ? nextSiblings[expression] : Selector.findElement(nextSiblings, expressi... |
else if (!this._top) | else if (!this._validHints.some(function (h) h.elem == elem)) | (function next() { this._setClass(elem, n % 2); if (n--) this.timeout(next, 50); else if (!this._top) elem.removeAttributeNS(NS, "highlight"); }).call(this); |
nextSiblings: function(element) { return $(element).recursivelyCollect('nextSibling'); }, | 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(... | nextSiblings: function(element) { return $(element).recursivelyCollect('nextSibling'); }, |
o}return a};c.extend({noConflict:function(a){A.$=Na;if(a)A.jQuery=Ma;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;i... | c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHan... | o}return a};c.extend({noConflict:function(a){A.$=Na;if(a)A.jQuery=Ma;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;i... |
self = this; this.norbertLoaded = false; this.norbert.onload=function() { self.norbertLoaded = true; } | function NorbertNode() { this.norbert = new Image(); this.norbert.src = "img/norbert-8bit.png"; this.position = new Vector(0, 0, 0);} | |
if (options["autoexternal"] && !window.messageWasEditedExternally) { window.messageWasEditedExternally = true; editor.editFieldExternally(); } | liberator.log("NotifyDocumentStateChanged", 0); if (options["autoexternal"] && !window.messageWasEditedExternally) { window.messageWasEditedExternally = true; editor.editFieldExternally(); } | NotifyDocumentStateChanged: function (nowDirty) { // only edit with external editor if this window was not cached! if (options["autoexternal"] && !window.messageWasEditedExternally/* && !gMsgCompose.recycledWindow*/) { window.messageWasEditedExternally = true; ... |
setFilters:{first:function(g,h){return h===0},last:function(g,h,k,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return h<k[3]-0},gt:function(g,h,k){return h>k[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{P... | 1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|... | setFilters:{first:function(g,h){return h===0},last:function(g,h,k,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return h<k[3]-0},gt:function(g,h,k){return h>k[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{P... |
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="... | function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&... | 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="... |
function addEventHandler(i,p,k,n){function o(q){k(normalizeEvent(q||window.event))}if(typeof i.addEventListener=="function"){i.addEventListener(p,o,false);if(n)return function(){i.removeEventListener(p,o,false)}}else{i.attachEvent("on"+p,o);if(n)return function(){i.detachEvent("on"+p,o)}}}function nodeText(i){return i.... | r=f.addEventHandler(f,"resize",h,true);x=function(){o();r();if(k.updateNumbers==h)k.updateNumbers=null};h()}function g(){function h(n,z){q||(q=j.appendChild(document.createElement("DIV")));H&&H(q,z,n);t.push(q);t.push(n);A=q.offsetHeight+q.offsetTop;q=q.nextSibling}function o(){for(var n=0;n<t.length;n+=2)t[n].innerHTM... | function addEventHandler(i,p,k,n){function o(q){k(normalizeEvent(q||window.event))}if(typeof i.addEventListener=="function"){i.addEventListener(p,o,false);if(n)return function(){i.removeEventListener(p,o,false)}}else{i.attachEvent("on"+p,o);if(n)return function(){i.detachEvent("on"+p,o)}}}function nodeText(i){return i.... |
(function(A,w){function oa(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(oa,1);return}c.ready()}}function La(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function $(a,b,d,f,e,i){v... | e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveF... | (function(A,w){function oa(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(oa,1);return}c.ready()}}function La(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function $(a,b,d,f,e,i){v... |
} this.enumerableContentDidChange(range) ; | } this.enumerableContentDidChange(range.start, range.length) ; | objectsDidChangeInRange: function(range) { // delete cached content var content = this._sa_content ; if (content) { // if range covers entire length of cached content, just reset array if (range.start === 0 && SC.maxRange(range)>=content.length) { this._sa_content = null ; // otherwise,... |
doctest._reprTrackRestore(restorer); | doctest.objRepr = function (obj, indent, maxLen) { var ostring = '{'; var keys = doctest._sortedKeys(obj); for (var i=0; i<keys.length; i++) { if (ostring != '{') { ostring += ', '; } ostring += keys[i] + ': ' + doctest.repr(obj[keys[i]], indent, maxLen); } ostring += '}'; if (ostring.length > (maxL... | |
c.addObserver('isHidden', this, '_scfl_layoutPropertyDidChange'); | c.addObserver('useAbsoluteLayout', this, '_scfl_layoutPropertyDidChange'); | observeChildLayout: function(c) { if (c._scfl_isBeingObserved) return; c._scfl_isBeingObserved = YES; c.addObserver('isVisible', this, '_scfl_layoutPropertyDidChange'); c.addObserver('isHidden', this, '_scfl_layoutPropertyDidChange'); c.addObserver('calculatedWidth', this, '_scfl_layoutPropertyDidChang... |
return observers.members ; | return observers.getMembers() ; | observersForKey: function(key) { var observers = this._kvo_for('_kvo_observers', key) ; return observers.members ; }, |
e.left+j};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",tru... | f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null... | e.left+j};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",tru... |
desc = "<span style='position: absolute; right: 5; bottom: 3;'>" + | desc = "<span style='position: absolute; right: 5; bottom: 1;'>" + | function onAirportSelect(airport) { apid = airport.attributes.apid; code = airport.attributes.code; coreid = airport.attributes.coreid; rdesc = airport.attributes.rdesc; // Single airport? if(!airport.cluster) { // Add toolbar to popup desc = "<span style='position: absolute; right: 5; bottom: 3;'>" + ... |
edit = (getCurrentPane() == "input" || getCurrentPane() == "multiinput") ? "true" : "false"; | edit = isEditMode() ? "true" : "false"; | function onAirportSelect(airport) { apid = airport.attributes.apid; code = airport.attributes.code; coreid = airport.attributes.coreid; rdesc = airport.attributes.rdesc; // Single airport? if(!airport.cluster) { // Add toolbar to popup desc = "<span style='position: absolute; right: 5; bottom: 3;'>" + ... |
if(getCurrentPane() == "input" || getCurrentPane() == "multiinput") { | if(isEditMode()) { | function onAirportSelect(airport) { apid = airport.attributes.apid; code = airport.attributes.code; coreid = airport.attributes.coreid; rdesc = airport.attributes.rdesc; // Single airport? if(!airport.cluster) { // Add toolbar to popup desc = "<span style='position: absolute; right: 5; bottom: 3;'>" + ... |
pagespeed.ResourceAccumulator.prototype.onBody_ = function(text) { | pagespeed.ResourceAccumulator.prototype.onBody_ = function(text, encoding) { | pagespeed.ResourceAccumulator.prototype.onBody_ = function(text) { if (this.cancelled_) { return; // We've been cancelled so ignore the callback. } this.har_.entries[this.nextEntryIndex_].response.content.text = text; ++this.nextEntryIndex_; this.getNextEntryBody_();}; |
this.har_.entries[this.nextEntryIndex_].response.content.text = text; | var content = this.har_.entries[this.nextEntryIndex_].response.content; content.text = text; content.encoding = encoding; | pagespeed.ResourceAccumulator.prototype.onBody_ = function(text) { if (this.cancelled_) { return; // We've been cancelled so ignore the callback. } this.har_.entries[this.nextEntryIndex_].response.content.text = text; ++this.nextEntryIndex_; this.getNextEntryBody_();}; |
if (elem.inputField != dactyl.focus) { | if (elem.inputField != dactyl.focusedElement) { | onChange: function (elem) { if (elem.inputField != dactyl.focus) { try { elem.selectionStart = elem.value.length; elem.selectionEnd = elem.value.length; } catch (e) {} } ... |
elem.focus(); | dactyl.focus(elem); | onChange: function (elem) { if (elem.inputField != dactyl.focus) { try { elem.selectionStart = elem.value.length; elem.selectionEnd = elem.value.length; } catch (e) {} } ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.