rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
Element._returnOffset = function(l, t) { var result = [l, t]; result.left = l; result.top = t; return result; }; | 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(... | Element._returnOffset = function(l, t) { var result = [l, t]; result.left = l; result.top = t; return result;}; |
let args = this._args(cmd, arguments); | let args = ex._args(cmd, arguments); | _run: function (name) { let cmd = commands.get(name); dactyl.assert(cmd, "No such command"); return update(function exCommand(options) { let args = this._args(cmd, arguments); args.verify(); return cmd.execute(args); }, { dactylCompleter: this.... |
dactylCompleter: this._complete(cmd) | dactylCompleter: ex._complete(cmd) | _run: function (name) { let cmd = commands.get(name); dactyl.assert(cmd, "No such command"); return update(function exCommand(options) { let args = this._args(cmd, arguments); args.verify(); return cmd.execute(args); }, { dactylCompleter: this.... |
var timer = setTimeout(function(){ | var timeoutFunction = function(){ | doh._runRegFixture = function(/*String*/groupName, /*Object*/fixture){ // summary: // Function to run a generic doh test. These are not // specialized tests, like performance groups and such. // // groupName: // The groupName of the test. // fixture: // The test fixture to execute. var tg = this._groups[groupName]... |
}, fixture["timeout"]||1000); | }; var timer = setTimeout(function(){ timeoutFunction(); }, fixture["timeout"]||1000); | doh._runRegFixture = function(/*String*/groupName, /*Object*/fixture){ // summary: // Function to run a generic doh test. These are not // specialized tests, like performance groups and such. // // groupName: // The groupName of the test. // fixture: // The test fixture to execute. var tg = this._groups[groupName]... |
timeoutFunction = function(){}; | doh._runRegFixture = function(/*String*/groupName, /*Object*/fixture){ // summary: // Function to run a generic doh test. These are not // specialized tests, like performance groups and such. // // groupName: // The groupName of the test. // fixture: // The test fixture to execute. var tg = this._groups[groupName]... | |
if (!cv.hasStaticLayout) { | if (!cv.useStaticLayout) { | _sc_view_clippingFrameDidChange: function() { var cvs = this.get('childViews'), len = cvs.length, idx, cv ; for (idx=0; idx<len; ++idx) { cv = cvs[idx] ; // In SC 1.0 views with static layout did not receive notifications // of frame changes because they didn't support frames. In SC 1.1 t... |
this.$().css('minWidth', this.get('calculatedWidth')); this.$().css('minHeight', this.get('calculatedHeight')); | var elem = this.$(), cw = this.get('calculatedWidth'), ch = this.get('calculatedHeight'); if(cw) elem.css('minWidth', this.get('calculatedWidth')); if(ch) elem.css('minHeight', this.get('calculatedHeight')); | _scfl_calculatedSizeDidChange: function() { this.$().css('minWidth', this.get('calculatedWidth')); this.$().css('minHeight', this.get('calculatedHeight')); }.observes('calculatedWidth', 'calculatedHeight'), |
}.observes("childViews"), | }, | _scfl_childViewsDidChange: function(c) { this._scfl_tile(); }.observes("childViews"), |
}.observes("childViews"), | }.observes("*childViews.[]"), | _scfl_childViewsDidChange: function(c) { this.invokeOnce("_scfl_tile"); }.observes("childViews"), |
if (!this.get("canWrap")) return; | _scfl_frameDidChange: function() { // if the frame changes but we can't wrap, our results will not update. if (!this.get("canWrap")) return; var frame = this.get("frame"), lf = this._scfl_lastFrameSize; this._scfl_lastFrameSize = frame; if (lf && lf.width == frame.width && lf.height == frame.height... | |
if (!this.get("canWrap")) return; | _scfl_frameDidChange: function() { var frame = this.get("frame"), lf = this._scfl_lastFrameSize; this._scfl_lastFrameSize = frame; if (lf && lf.width == frame.width && lf.height == frame.height) return; this.invokeOnce("_scfl_tile"); }.observes("frame"), | |
childSize, childSpacing, align = this.get("align"); | childSize, childSpacing, align = this.get("align"), longestRow = 0; | _scfl_tile: function() { if (!this._scfl_itemLayouts) this._scfl_itemLayouts = {}; var isObserving = this._scfl_isObserving || SC.CoreSet.create(), nowObserving = SC.CoreSet.create(); var children = this.get("childViews"), child, idx, len = children.length, rows = [], row = [], rowSize ... |
if (canWrap && row.length > 0) { | if (newRow || canWrap && row.length > 0) { | _scfl_tile: function() { if (!this._scfl_itemLayouts) this._scfl_itemLayouts = {}; var isObserving = this._scfl_isObserving || SC.CoreSet.create(), nowObserving = SC.CoreSet.create(); var children = this.get("childViews"), child, idx, len = children.length, rows = [], row = [], rowSize ... |
if (itemOffset + childSize[primary_d] >= primaryContainerSize) { | if (newRow || itemOffset + childSize[primary_d] >= primaryContainerSize) { | _scfl_tile: function() { if (!this._scfl_itemLayouts) this._scfl_itemLayouts = {}; var isObserving = this._scfl_isObserving || SC.CoreSet.create(), nowObserving = SC.CoreSet.create(); var children = this.get("childViews"), child, idx, len = children.length, rows = [], row = [], rowSize ... |
itemOffset += childSize[primary_d]; | itemOffset += childSize[primary_d]; longestRow = Math.max(longestRow, itemOffset); | _scfl_tile: function() { if (!this._scfl_itemLayouts) this._scfl_itemLayouts = {}; var isObserving = this._scfl_isObserving || SC.CoreSet.create(), nowObserving = SC.CoreSet.create(); var children = this.get("childViews"), child, idx, len = children.length, rows = [], row = [], rowSize ... |
if(itemOffset) { this._scfl_lastFrameSize[primary_d] = itemOffset + padding[primary] + padding[primary_os]; this.adjust(primary_d, itemOffset + padding[primary] + padding[primary_os]); | if(longestRow) { this._scfl_lastFrameSize[primary_d] = longestRow + padding[primary] + padding[primary_os]; this.adjust(primary_d, longestRow + padding[primary] + padding[primary_os]); | _scfl_tile: function() { if (!this._scfl_itemLayouts) this._scfl_itemLayouts = {}; var isObserving = this._scfl_isObserving || SC.CoreSet.create(), nowObserving = SC.CoreSet.create(); var children = this.get("childViews"), child, idx, len = children.length, rows = [], row = [], rowSize ... |
if (child.get("isSpacer")) { childSize[primary_d] = 0; } | _scfl_tile: function() { if (!this._scfl_itemLayouts) this._scfl_itemLayouts = {}; var isObserving = this._scfl_isObserving || SC.CoreSet.create(), nowObserving = SC.CoreSet.create(); var children = this.get("childViews"), child, idx, len = children.length, rows = [], row = [], rowSize ... | |
var isObserving = this._scfl_isObserving || {}, nowObserving = {}; | var isObserving = this._scfl_isObserving || SC.CoreSet.create(), nowObserving = SC.CoreSet.create(); | _scfl_tile: function() { if (!this._scfl_itemLayouts) this._scfl_itemLayouts = {}; var isObserving = this._scfl_isObserving || {}, nowObserving = {}; var children = this.get("childViews"), child, idx, len = children.length, rows = [], row = [], rowSize = 0, rowOffset = 0, ... |
delete isObserving[SC.guidFor(child)]; nowObserving[SC.guidFor(child)] = child; | isObserving.remove(SC.guidFor(child)); nowObserving.add(child); | _scfl_tile: function() { if (!this._scfl_itemLayouts) this._scfl_itemLayouts = {}; var isObserving = this._scfl_isObserving || {}, nowObserving = {}; var children = this.get("childViews"), child, idx, len = children.length, rows = [], row = [], rowSize = 0, rowOffset = 0, ... |
if (!child.get("isVisible")) continue; | if (!this.shouldIncludeChild(child)) continue; | _scfl_tile: function() { if (!this._scfl_itemLayouts) this._scfl_itemLayouts = {}; var isObserving = this._scfl_isObserving || {}, nowObserving = {}; var children = this.get("childViews"), child, idx, len = children.length, rows = [], row = [], rowSize = 0, rowOffset = 0, ... |
for (idx in isObserving) { this._scfl_unobserveChild(isObserving[idx]); | len = isObserving.length; for (idx = 0; idx < len; idx++) { this.unobserveChildLayout(isObserving[idx]); | _scfl_tile: function() { if (!this._scfl_itemLayouts) this._scfl_itemLayouts = {}; var isObserving = this._scfl_isObserving || {}, nowObserving = {}; var children = this.get("childViews"), child, idx, len = children.length, rows = [], row = [], rowSize = 0, rowOffset = 0, ... |
for (idx in nowObserving) { this._scfl_observeChild(nowObserving[idx]); | len = nowObserving.length; for (idx = 0; idx < len; idx++) { this.observeChildLayout(nowObserving[idx]); | _scfl_tile: function() { if (!this._scfl_itemLayouts) this._scfl_itemLayouts = {}; var isObserving = this._scfl_isObserving || {}, nowObserving = {}; var children = this.get("childViews"), child, idx, len = children.length, rows = [], row = [], rowSize = 0, rowOffset = 0, ... |
console.error("SC.loadModule(): Failted to lazily instatiate entry for '%@'".fmt(moduleName)); | console.error("SC.loadModule(): Failed to lazily instatiate entry for '%@'".fmt(moduleName)); | _scm_moduleDidLoad: function(moduleName, target, method, args) { var m = method, t = target ; if(SC.typeOf(target) === SC.T_STRING) { t = SC.objectForPropertyPath(target); } if(SC.typeOf(method) === SC.T_STRING) { m = SC.objectForPropertyPath(method, t); } if(!m) { if(SC.LAZY_INST... |
if (this._picker) this._picker.set('contentView', null); | _scmd_tile: function() { // first, determine what is and is not visible. var masterIsVisible = !this.get("masterIsHidden"); // now, tile var masterWidth = this.get("masterWidth"), master = this.get("masterView"), detail = this.get("detailView"); if (masterIsVisible) { // hide... | |
context.record.notifyPropertyChange(context.key); | _SCRA_childObserver: function(obj, key, deprecated, context, rev) { this.call(context.record, context.key, obj); }, | |
SC.RunLoop.begin(); | _scv_animationEnd: function(evt){ // WARNING: Sometimes this will get called more than once for a property. Not sure why. // FIXME: Why do I have a RunLoop here? Do I need it? SC.RunLoop.begin(); var propertyName = evt.originalEvent.propertyName, layout = this.get('layout'), layoutProperty, ... | |
SC.RunLoop.end(); | _scv_animationEnd: function(evt){ // WARNING: Sometimes this will get called more than once for a property. Not sure why. // FIXME: Why do I have a RunLoop here? Do I need it? SC.RunLoop.begin(); var propertyName = evt.originalEvent.propertyName, layout = this.get('layout'), layoutProperty, ... | |
layoutProperty, animation; if (propertyName === SC.platform.domCSSPrefix+'Transform') { throw "Not implemented"; } else { layoutProperty = propertyName; } | animation; | _scv_animationEnd: function(evt){ // WARNING: Sometimes this will get called more than once for a property. Not sure why. var propertyName = evt.originalEvent.propertyName, layout = this.get('layout'), layoutProperty, animation; // FIXME: Implement this. if (propertyName === SC.platform.domC... |
var layer = this.get('layer'), styleKey = SC.platform.domCSSPrefix+"Transition", currentCSS = layer.style[styleKey]; | _scv_animationEnd: function(evt){ // WARNING: Sometimes this will get called more than once for a property. Not sure why. var propertyName = evt.originalEvent.propertyName, layout = this.get('layout'), layoutProperty, animation; // FIXME: Implement this. if (propertyName === SC.platform.domC... | |
layer.style[styleKey] = currentCSS.split(/\s*,\s*/).removeObject(animation.css).join(', '); if (this._animatedTransforms && this._animatedTransforms.length > 0) { for(idx=0; idx < this._animatedTransforms.length; idx++) { delete layout['animate'+this._animatedTransforms[idx].capitalize()]; } this._animatedTransforms =... | this._scv_removeAnimationFromLayout(propertyName, YES); } | _scv_animationEnd: function(evt){ // WARNING: Sometimes this will get called more than once for a property. Not sure why. var propertyName = evt.originalEvent.propertyName, layout = this.get('layout'), layoutProperty, animation; // FIXME: Implement this. if (propertyName === SC.platform.domC... |
animation; | animation, idx; | _scv_animationEnd: function(evt){ // WARNING: Sometimes this will get called more than once for a property. Not sure why. var propertyName = evt.originalEvent.propertyName, layout = this.get('layout'), animation; animation = this._activeAnimations ? this._activeAnimations[propertyName] : null; ... |
var layout = this.get('layout'); | var layout = this.get('layout'), idx; | _scv_removeAnimationFromLayout: function(propertyName, updateStyle, isPending) { if (updateStyle) { var layer = this.get('layer'), updatedCSS = [], key; for(key in this._activeAnimations) { if (key !== propertyName) updatedCSS.push(this._activeAnimations[key].css); } // FIXME: N... |
_scv_removeAnimationFromLayout: function(propertyName, updateStyle) { | _scv_removeAnimationFromLayout: function(propertyName, updateStyle, isPending) { | _scv_removeAnimationFromLayout: function(propertyName, updateStyle) { if (updateStyle) { var layer = this.get('layer'), updatedCSS = [], key; for(key in this._activeAnimations) { if (key !== propertyName) updatedCSS.push(this._activeAnimations[key].css); } // FIXME: Not really s... |
delete this._activeAnimations[propertyName]; | if (!isPending) delete this._activeAnimations[propertyName]; | _scv_removeAnimationFromLayout: function(propertyName, updateStyle) { if (updateStyle) { var layer = this.get('layer'), updatedCSS = [], key; for(key in this._activeAnimations) { if (key !== propertyName) updatedCSS.push(this._activeAnimations[key].css); } // FIXME: Not really s... |
var key, callback; | _scv_willRenderAnimations: function(){ var key, callback; if (SC.platform.supportsCSSTransitions) { var layer = this.get('layer'), currentStyle = layer ? layer.style : null, newStyle = this.get('layoutStyle'), transitionStyle = newStyle[SC.platform.domCSSPrefix+"Transition"], ... | |
idx; | key, callback, idx; | _scv_willRenderAnimations: function(){ var key, callback; if (SC.platform.supportsCSSTransitions) { var layer = this.get('layer'), currentStyle = layer ? layer.style : null, newStyle = this.get('layoutStyle'), transitionStyle = newStyle[SC.platform.domCSSPrefix+"Transition"], ... |
} else { for (key in this._pendingAnimations) { callback = this._pendingAnimations[key].callback; if (callback) this._scv_runAnimationCallback(callback, null, key, NO); this._scv_removeAnimationFromLayout(key, NO, YES); } this._activeAnimations = this._pendingAnimations = null; | _scv_willRenderAnimations: function(){ var key, callback; if (SC.platform.supportsCSSTransitions) { var layer = this.get('layer'), currentStyle = layer ? layer.style : null, newStyle = this.get('layoutStyle'), transitionStyle = newStyle[SC.platform.domCSSPrefix+"Transition"], ... | |
layout = this.get('layout'); | layout = this.get('layout'), idx; | _scv_willRenderAnimations: function(){ var key, callback; if (SC.platform.supportsCSSTransitions) { var layer = this.get('layer'), currentStyle = layer ? layer.style : null, newStyle = this.get('layoutStyle'), transitionStyle = newStyle[SC.platform.domCSSPrefix+"Transition"], ... |
this._scv_removeAnimationFromLayout(key); | this._scv_removeAnimationFromLayout(key, NO, YES); | _scv_willRenderAnimations: function(){ if (SC.platform.supportsCSSTransitions) { var layer = this.get('layer'), currentStyle = layer ? layer.style : null, newStyle = this.get('layoutStyle'), transitionStyle = newStyle[SC.platform.domCSSPrefix+"Transition"], layout = this.ge... |
let prefix = (elem.getAttributeNS(NS.uri, "class") || "") + " "; | let prefix = (elem.getAttributeNS(NS, "class") || "") + " "; | _setClass: function (elem, active) { let prefix = (elem.getAttributeNS(NS.uri, "class") || "") + " "; if (active) elem.setAttributeNS(NS.uri, "highlight", prefix + "HintActive"); else elem.setAttributeNS(NS.uri, "highlight", prefix + "HintElem"); }, |
elem.setAttributeNS(NS.uri, "highlight", prefix + "HintActive"); | elem.setAttributeNS(NS, "highlight", prefix + "HintActive"); | _setClass: function (elem, active) { let prefix = (elem.getAttributeNS(NS.uri, "class") || "") + " "; if (active) elem.setAttributeNS(NS.uri, "highlight", prefix + "HintActive"); else elem.setAttributeNS(NS.uri, "highlight", prefix + "HintElem"); }, |
elem.setAttributeNS(NS.uri, "highlight", prefix + "HintElem"); | elem.setAttributeNS(NS, "highlight", prefix + "HintElem"); | _setClass: function (elem, active) { let prefix = (elem.getAttributeNS(NS.uri, "class") || "") + " "; if (active) elem.setAttributeNS(NS.uri, "highlight", prefix + "HintActive"); else elem.setAttributeNS(NS.uri, "highlight", prefix + "HintElem"); }, |
document.getElementById('liberator-statusline').setAttributeNS(NS.uri, "highlight", group); | _setHighlightGroup: function (group) { this._messageBox.setAttributeNS(NS.uri, "highlight", group); }, | |
this._promptWidget.size = val.length; | _setPrompt: function (val, highlightGroup) { this._promptWidget.value = val; this._promptWidget.size = val.length; this._promptWidget.collapsed = (val == ""); this._promptWidget.setAttributeNS(NS.uri, "highlight", highlightGroup || commandline.HL_NORMAL); }, | |
this._promptWidget.setAttributeNS(NS.uri, "highlight", highlightGroup || commandline.HL_NORMAL); | _setPrompt: function (val, highlightGroup) { this._promptWidget.value = val; this._promptWidget.size = val.length; this._promptWidget.collapsed = (val == ""); this._promptWidget.setAttributeNS(NS.uri, "highlight", highlightGroup || commandline.HL_NORMAL); }, | |
setTimeout( function(){ self._idleEntry(); }, | setTimeout(this._doIdleEntry, | _setupIdle: function() { if (this.get('runWhenIdle') && !this._idleIsScheduled && this.get('taskCount') > 0) { var self = this; setTimeout( function(){ self._idleEntry(); }, this.get('interval') ); this._idleIsScheduled = YES; } }, |
var cloc = location.hash ; cloc = (cloc && cloc.length > 0) ? cloc.slice(1,cloc.length) : '' ; if (cloc != loc) { location.hash = (loc && loc.length > 0) ? encodeURI(loc) : '#' ; } this.gotoRoute(loc) ; }, | var cloc = this._cloc ; if (cloc != loc) { this._backStack.push(this._cloc) ; this._forwardStack.length = 0 ; this._cloc = loc ; location.hash = (loc && loc.length > 0) ? loc : '' ; this._locationDidChange = true ; } } | _setWindowLocation: function(loc) { //console.log('_setWindowLocation('+loc+')') ; var cloc = location.hash ; cloc = (cloc && cloc.length > 0) ? cloc.slice(1,cloc.length) : '' ; if (cloc != loc) { location.hash = (loc && loc.length > 0) ? encodeURI(loc) : '#' ; } this.gotoRoute(loc) ; }, |
body.css('overflow', 'visible'); | if(SC.PICKERS_OPEN > 0) { SC.PICKERS_OPEN--; } if(SC.PICKERS_OPEN === 0) body.css('overflow', 'visible'); | _showOverflow: function(){ var body = SC.$(document.body); body.css('overflow', 'visible'); } |
for (let [command, args] in this.parseCommands(command)) { if (command) { yield [command, args]; if (command.subCommand && args[command.subCommand]) commands.push(args[command.subCommand]); | try { for (let [command, args] in this.parseCommands(command)) { if (command) { yield [command, args]; if (command.subCommand && args[command.subCommand]) commands.push(args[command.subCommand]); } | _subCommands: function (command) { let commands = [command]; while (command = commands.shift()) for (let [command, args] in this.parseCommands(command)) { if (command) { yield [command, args]; if (command.subCommand && args[command.subCom... |
catch (e) {} | _subCommands: function (command) { let commands = [command]; while (command = commands.shift()) for (let [command, args] in this.parseCommands(command)) { if (command) { yield [command, args]; if (command.subCommand && args[command.subCom... | |
if(attributes["color"]){style+='color:'+attributes["color"]+';';} | if(attributes["color"]&&attributes["color"].match(/^#[0-9a-fA-F]{6}$/)){style+='color:'+attributes["color"]+';';} | rep(/<br\s?\/?[^>]*>/gi,"\n\n");rep(/ /gi," ");rep(/"/gi,"\"");rep(/</gi,"<");rep(/>/gi,">");rep(/&/gi,"&");return s;},_textToPreview:function(s){s=tinymce.trim(s);var rule=/<op:(b|u|s|i|font|large|small|color)(\s+(.*?)|)>(.*?)<\/op:\1>/i;function rep(re,str){s=s.replace(re,str);};functi... |
if(org_tagname=="color"&&attributes["code"]){opt=' style="color:'+attributes["code"]+';"';} | if(org_tagname=="color"&&attributes["code"]&&attributes["code"].match(/^#[0-9a-fA-F]{6}$/)){opt=' style="color:'+attributes["code"]+';"';} | rep(/<br\s?\/?[^>]*>/gi,"\n\n");rep(/ /gi," ");rep(/"/gi,"\"");rep(/</gi,"<");rep(/>/gi,">");rep(/&/gi,"&");return s;},_textToPreview:function(s){s=tinymce.trim(s);var rule=/<op:(b|u|s|i|font|large|small|color)(\s+(.*?)|)>(.*?)<\/op:\1>/i;function rep(re,str){s=s.replace(re,str);};functi... |
}.property("baseTheme").cacheable(), | }.property().cacheable(), | _themeProperty: function(key, value) { // if it is a string, set theme name if (SC.typeOf(value) === SC.T_STRING) { this.set("_themeName", value); } // get the base theme var base = this.get("baseTheme"); // find theme, if possible if (this.get("_themeName")) { // Note: theme in... |
loc = loc + this._offset; | loc = Math.max(0, Math.min(loc + this._offset, 1)); | _triggerHandle: function(evt, firstEvent) { var width = this.get('frame').width, min = this.get('minimum'), max=this.get('maximum'), step = this.get('step'), v=this.get('value'), loc; if(firstEvent){ loc = this.convertFrameFromView({ x: evt.pageX }).x; this._evtDiff = evt.pag... |
this._error = {start: i, end: j}; | this.error = {start: i, end: j}; | _updateCandidates: function (i, j) { //Logger.debug("_updateCandidates: " + i + ", " + j); if (!j) { j = this._segmentation.m; } var result = []; var c = this.phrase[i]; if (c) { for (var k = j; k > i; --k) { if (c[k]) { ... |
var tp=parseInt(p*10000)/100; | var tp = parseInt(parseInt(p*10000)/100); | doh._updateGlobalProgressBar = function(p,success,group){ var outerContainer=byId("progressOuter"); var gdiv=outerContainer.childNodes[doh._runedSuite-1]; if(!gdiv){ gdiv=document.createElement('div'); outerContainer.appendChild(gdiv); gdiv.className='success'; gdiv.setAttribute('_target',group... |
statusline.updateInputBuffer((hints.escNumbers ? mappings.mapLeader : "") + | statusline.updateInputBuffer((hints.escNumbers ? options["mapleader"] : "") + | _updateStatusline: function () { statusline.updateInputBuffer((hints.escNumbers ? mappings.mapLeader : "") + (this._hintNumber ? this.getHintString(this._hintNumber) : "")); }, |
statusline.updateInputBuffer((hints.escNumbers ? mappings.getMapLeader() : "") + (this._hintNumber || "")); | statusline.updateInputBuffer((hints.escNumbers ? mappings.getMapLeader() : "") + (this._hintNumber ? this.getHintString(this._hintNumber) : "")); | _updateStatusline: function () { statusline.updateInputBuffer((hints.escNumbers ? mappings.getMapLeader() : "") + (this._hintNumber || "")); }, |
for (let tab in values(this.allTabs)) { | for (let [i, tab] in Iterator(this.visibleTabs)) { | _updateTabCount: function () { for (let tab in values(this.allTabs)) { function node(clas) document.getAnonymousElementByAttribute(tab, "class", clas); if (!node("dactyl-tab-number")) { let dom = util.xmlToDom(<xul xmlns:xul={XUL} xmlns:html={XHTML} ><x... |
><xul:hbox highlight="TabIconNumber" class="dactyl-tab-number" /><xul:hbox highlight="TabNumber" /></xul>.*, document); | ><xul:hbox highlight="tab-number"><xul:label key="icon" align="center" highlight="TabIconNumber" class="dactyl-tab-number"/></xul:hbox ><xul:hbox highlight="tab-number"><html:div key="label" highlight="TabNumber"/></xul:hbox ></xul>.*, document, nodes); | _updateTabCount: function () { for (let tab in values(this.allTabs)) { function node(clas) document.getAnonymousElementByAttribute(tab, "class", clas); if (!node("dactyl-tab-number")) { let dom = util.xmlToDom(<xul xmlns:xul={XUL} xmlns:html={XHTML} ><x... |
tab.ordinal = i + 1; | _updateTabCount: function () { for (let tab in values(this.allTabs)) { function node(clas) document.getAnonymousElementByAttribute(tab, "class", clas); if (!node("dactyl-tab-number")) { let dom = util.xmlToDom(<xul xmlns:xul={XUL} xmlns:html={XHTML} ><x... | |
cursor: this.get('cursor'), | cursor: cursor, | _updateViewRenderer: function() { if (!this._viewRenderer) return; var classNames = this.get('classNames'); if (this.get('theme')) { classNames = classNames.concat(this.get("theme").classNames); } if (this._themeName && classNames.indexOf(this._themeName) < 0) classNames.push(this._themeName);... |
if (this._themeName && classNames.indexOf(this._themeName) < 0) classNames.push(this._themeName); | var themeName = this.get('themeName'); if (themeName && classNames.indexOf(themeName) < 0) classNames.push(themeName); | _updateViewRenderer: function() { if (!this._viewRenderer) return; var classNames = this.get('classNames'); if (this.get('theme')) { classNames = classNames.concat(this.get("theme").classNames); } // for backwards compatibility, make sure we push the theme name if it is not there already. This ... |
hasStaticLayout: this.get('hasStaticLayout') && this.get('useStaticLayout') | hasStaticLayout: this.get('useStaticLayout') | _updateViewRenderer: function() { if (!this._viewRenderer) return; var classNames = this.get('classNames'); if (this.get('theme')) { classNames = classNames.concat(this.get("theme").classNames); } // for backwards compatibility, make sure we push the theme name if it is not there already. ... |
this._scv_willRenderAnimations(); | _updateViewRenderer: function() { if (!this._viewRenderer) return; var classNames = this.get('classNames'); if (this.get('theme')) { classNames = classNames.concat(this.get("theme").classNames); } // for backwards compatibility, make sure we push the theme name if it is not there already. ... | |
this._scv_didRenderAnimations(); | this._scv_willRenderAnimations(); | _updateViewRenderer: function() { if (!this._viewRenderer) return; var classNames = this.get('classNames'); if (this.get('theme')) { classNames = classNames.concat(this.get("theme").classNames); } // for backwards compatibility, make sure we push the theme name if it is not there already. ... |
b.equals(">")){b.next();d(q);return"xml-punctuation"}else if(f=="=")return"xml-punctuation";else if(/[\'\"]/.test(f)){d(c(f));return null}else{b.nextWhileMatches(/[^\s\u00a0=<>\"\'\/?]/);return"xml-name"}}function c(b){return function(d,f){for(;!d.endOfLine();)if(d.next()==b){f(e);break}return"xml-attribute"}}function ... | true),K=f.addEventHandler(f,"resize",w,true);x=function(){u&&clearTimeout(u);if(k.updateNumbers==w)k.updateNumbers=null;J();K()}}var d=this.frame,f=d.contentWindow,m=f.document,p=m.body,i=this.lineNumbers,j=i.firstChild,k=this,y=null,x=function(){};a();var I=setInterval(a,500);(this.options.textWrapping||this.options.s... | b.equals(">")){b.next();d(q);return"xml-punctuation"}else if(f=="=")return"xml-punctuation";else if(/[\'\"]/.test(f)){d(c(f));return null}else{b.nextWhileMatches(/[^\s\u00a0=<>\"\'\/?]/);return"xml-name"}}function c(b){return function(d,f){for(;!d.endOfLine();)if(d.next()==b){f(e);break}return"xml-attribute"}}function ... |
let abbrevs = abbreviations.merged.filter(function (abbr) abbr.inModes(modes)); context.completions = [[abbr.lhs, abbr.rhs] for ([, abbr] in Iterator(abbrevs))]; | let fn = modes ? function (abbr) abbr.inModes(modes) : util.identity; context.keys = { text: "lhs" , description: "rhs" }; context.completions = abbreviations.merged.filter(fn); | completion.abbreviation = function abbreviation(context, modes) { let abbrevs = abbreviations.merged.filter(function (abbr) abbr.inModes(modes)); context.completions = [[abbr.lhs, abbr.rhs] for ([, abbr] in Iterator(abbrevs))]; }; |
null}};try{var h=x.abort;x.abort=function(){if(x){h.call(x);if(x)x.readyState=0}g()}}catch(k){}e.async&&e.timeout>0&&setTimeout(function(){x&&!F&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d... | d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parser... | null}};try{var h=x.abort;x.abort=function(){if(x){h.call(x);if(x)x.readyState=0}g()}}catch(k){}e.async&&e.timeout>0&&setTimeout(function(){x&&!F&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d... |
xhr.onload = xhr.onerror = null; | xhr.onload = xhr.onerror = xhr.ontimeout = null; | var abortXHR = function(xhr) { logger.debug('aborting XHR'); try { if('onload' in xhr) { xhr.onload = xhr.onerror = null; } else if('onreadystatechange' in xhr) { xhr.onreadystatechange = null; } if(xhr.abort) { xhr.abort(); } } catch(e) { logger.debug('error aborting xhr', e); } }; |
absolutize: function(element) { Position.prepare(); return Element.absolutize(element); }, | var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(... | absolutize: function(element) { Position.prepare(); return Element.absolutize(element); }, |
function action(e) { services.get("extensionManager")[command.action](e.id); }; | action: function (addon) addon.userDisabled = true, | function action(e) { services.get("extensionManager")[command.action](e.id); }; |
action = function action() commands.execute(action.macro, makeParams.apply(this, arguments), | action = function action() commands.execute(action.macro, makeParams(this, arguments), | action = function action() commands.execute(action.macro, makeParams.apply(this, arguments), false, null, action.sourcing); |
action = function action() commands.execute(macro, makeParams.apply(this, arguments), | action = function action() commands.execute(action.macro, makeParams.apply(this, arguments), | action = function action() commands.execute(macro, makeParams.apply(this, arguments), false, null, action.sourcing); |
window.content.scrollTo(0, window.content.scrollY + elem.getBoundingClientRect().top - 10); | content.scrollTo(0, content.scrollY + elem.getBoundingClientRect().top - 10); | function action() { window.content.scrollTo(0, window.content.scrollY + elem.getBoundingClientRect().top - 10); // 10px context } |
activate: function(element) { element = $(element); try { element.focus(); if (element.select && (element.tagName.toLowerCase() != 'input' || !['button', 'reset', 'submit'].include(element.type))) element.select(); } catch (e) { } return element; }, | var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(... | activate: function(element) { element = $(element); try { element.focus(); if (element.select && (element.tagName.toLowerCase() != 'input' || !['button', 'reset', 'submit'].include(element.type))) element.select(); } catch (e) { } return element; }, |
"number")e=this.nthLine(e);this.selectLines(e,0);this.win.focus()},currentLine:function(){return this.lineNumber(this.cursorLine())},cursorLine:function(){return this.cursorPosition().line},cursorCoords:function(e){return this.editor.cursorCoords(e)},activateLineNumbers:function(){function e(){if(f.offsetWidth!=0){for(... | "number")a=this.nthLine(a);this.selectLines(a,0);this.win.focus()},currentLine:function(){return this.lineNumber(this.cursorLine())},cursorLine:function(){return this.cursorPosition().line},cursorCoords:function(a){return this.editor.cursorCoords(a)},activateLineNumbers:function(){function a(){if(d.offsetWidth!=0){for(... | "number")e=this.nthLine(e);this.selectLines(e,0);this.win.focus()},currentLine:function(){return this.lineNumber(this.cursorLine())},cursorLine:function(){return this.cursorPosition().line},cursorCoords:function(e){return this.editor.cursorCoords(e)},activateLineNumbers:function(){function e(){if(f.offsetWidth!=0){for(... |
let x = win.scrollMaxX ? win.pageXOffset / win.scrollMaxX : 0; let y = win.scrollMaxY ? win.pageYOffset / win.scrollMaxY : 0; let position = { x: x, y: y }; | let position = { x: buffer.scrollXPercent / 100, y: buffer.scrollYPercent / 100 }; | add: function (mark, silent) { let win = buffer.focusedFrame; let doc = win.document; let x = win.scrollMaxX ? win.pageXOffset / win.scrollMaxX : 0; let y = win.scrollMaxY ? win.pageYOffset / win.scrollMaxY : 0; let position = { x: x, y: y }; if (Marks.isURLMark(mark)) { ... |
let res = this._urlMarks.set(mark, { location: doc.URL, position: position, tab: Cu.getWeakReference(tabs.getTab()), timestamp: Date.now()*1000 }); | let res = this._urlMarks.set(mark, { location: doc.documentURI, position: position, tab: Cu.getWeakReference(tabs.getTab()), timestamp: Date.now()*1000 }); | add: function (mark, silent) { let win = buffer.focusedFrame; let doc = win.document; let x = win.scrollMaxX ? win.pageXOffset / win.scrollMaxX : 0; let y = win.scrollMaxY ? win.pageYOffset / win.scrollMaxY : 0; let position = { x: x, y: y }; if (Marks.isURLMark(mark)) { ... |
add: function(classNameToAdd) { if (this.include(classNameToAdd)) return; this.set($A(this).concat(classNameToAdd).join(' ')); }, | value=value.call(elem,i);return typeof value==="number"&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className)) elem.className+=(elem.className?"... | add: function(classNameToAdd) { if (this.include(classNameToAdd)) return; this.set($A(this).concat(classNameToAdd).join(' ')); }, |
set.add = function (set, key) { set[key] = true; } | set.add = function (set, key) { let res = this.has(set, key); set[key] = true; return res; } | set.add = function (set, key) { set[key] = true; } |
add: function(route, target, method) { if (method===undefined && SC.typeOf(target) === SC.T_FUNCTION) { method = target; target = null ; } else if (SC.typeOf(method) === SC.T_STRING) { method = target[method] ; } var parts = route.split('/') ; if (!this._routes) this._routes = SC.routes._Route.create() ; this._routes... | add: function(parts, target, method) { var part, nextRoute; parts = SC.clone(parts); if (!parts || parts.length === 0) { this.target = target; this.method = method; } else { part = parts.shift(); switch (part.slice(0, 1)) { case ':': part = part.slice(1, part.length); if (!this.dynamicRoutes) this.dynamicRoutes... | add: function(route, target, method) { // normalize the target/method if (method===undefined && SC.typeOf(target) === SC.T_FUNCTION) { method = target; target = null ; } else if (SC.typeOf(method) === SC.T_STRING) { method = target[method] ; } var parts = route.split('/') ; if (!this._... |
this._membersCacheIsValid = NO ; }, | add: function(target, method, context) { var targetGuid = (target) ? SC.guidFor(target) : "__this__"; // get the set of methods var methods = this[targetGuid] ; if (!methods) { methods = this[targetGuid] = SC.CoreSet.create() ; methods.target = target ; methods.isTargetSet = YES ; // used f... | |
if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Ya.test(a.nodeName)||Za.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&i?a.getAttribute(b,2):a.getAttr... | 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"&... | if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Ya.test(a.nodeName)||Za.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&i?a.getAttribute(b,2):a.getAttr... |
if (obj == null) return this; | if (SC.none(obj)) return this; | add: function(obj) { if (this.isFrozen) throw SC.FROZEN_ERROR; // cannot add null to a set. if (obj == null) return this; // Implementation note: SC.hashFor() is inlined because sets are // fundamental in SproutCore, and the inlined code is ~ 25% faster than // calling SC.hashFor() in IE8. var h... |
if (!methods.contexts) methods.contexts = {} ; methods.contexts[SC.guidFor(method)] = context ; | var contexts = methods.contexts || (methods.contexts = {}) ; contexts[SC.guidFor(method)] = context ; | SC.ObserverSet.add = function(target, method, context, originatingTarget, originatingMethod, originatingStack) { var targetGuid = (target) ? SC.guidFor(target) : "__this__"; // get the set of methods var methods = this[targetGuid] ; if (!methods) { methods = this[targetGuid] = SC.CoreSet.create() ; ... |
this._membersCacheIsValid = NO ; | SC.ObserverSet.add = function(target, method, context, originatingTarget, originatingMethod, originatingStack) { var targetGuid = (target) ? SC.guidFor(target) : "__this__"; // get the set of methods var methods = this[targetGuid] ; if (!methods) { methods = this[targetGuid] = SC.CoreSet.create() ; ... | |
refresh(); | store.reload(); | AddAccountWindow = function(){ var form = new Ext.form.FormPanel({ labelWidth: 120, width: 400, baseCls: 'x-plain', items: [ { fieldLabel: 'Account-Name', xtype: 'textfield', id: 'nm', anchor: '100%' } ,{ fieldLabel: 'Useful', xtype: 'radiogroup', ... |
return this.getToken().addCallback(function(token){ | return this.getToken().addCallback(function(data){ | addBookmark : function(url, title, tags, description){ return this.getToken().addCallback(function(token){ return request('http://b.hatena.ne.jp/bookmarklet.edit', { //denyRedirection: true, method: 'POST', sendContent : { rks : token, url : url.replace(/%[0-9a-f... |
rks : token, | rks : data['rks'], | addBookmark : function(url, title, tags, description){ return this.getToken().addCallback(function(token){ return request('http://b.hatena.ne.jp/bookmarklet.edit', { //denyRedirection: true, method: 'POST', sendContent : { rks : token, url : url.replace(/%[0-9a-f... |
return; | return this; | addClass: function(classNames) { var idx, len; if (arguments.length > 1) { len = arguments.length; for (idx = 0; idx < len; idx++) { this.addClass(arguments[idx]); } return; } if (typeof classNames === "string") classNames = classNames.split(' '); len = classNames.len... |
len = classNames.length; for (idx = 0; idx < len; idx++) { this.classNames[classNames[idx]] = YES; } | this.classNames.addEach(classNames); return this; | addClass: function(classNames) { var idx, len; if (arguments.length > 1) { len = arguments.length; for (idx = 0; idx < len; idx++) { this.addClass(arguments[idx]); } return; } if (typeof classNames === "string") classNames = classNames.split(' '); len = classNames.len... |
b){return $(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(p){var n=c(this);n.addClass(a.call(this,p,n.attr("class")))});if(a&&typeof a==="string")for(var b=(a||""... | cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(thi... | b){return $(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(p){var n=c(this);n.addClass(a.call(this,p,n.attr("class")))});if(a&&typeof a==="string")for(var b=(a||""... |
var el = $.id(el); if(typeof classNames == "string") { classNames = classNames.split(' '); | var el = $.id(el); if(typeof classNames == "string") { classNames = classNames.split(' '); } var current = ' ' + el.className + ' '; for(var i = 0, len = classNames.length, c; (c = classNames[i]) || i < len; ++i) { if(current.indexOf(' '+c+' ') == -1) { current += c + ' '; } } el.className = current; return $; | $.addClass = function(el, classNames) { var el = $.id(el); if(typeof classNames == "string") { classNames = classNames.split(' '); } var current = ' ' + el.className + ' '; for(var i = 0, len = classNames.length, c; (c = classNames[i]) || i < len; ++i) { if(current.indexOf(' '+c+' ') == -1) { current += c + ' '; ... |
var current = ' ' + el.className + ' '; for(var i = 0, len = classNames.length, c; (c = classNames[i]) || i < len; ++i) { if(current.indexOf(' '+c+' ') == -1) { current += c + ' '; } } el.className = current; return $; } | $.addClass = function(el, classNames) { var el = $.id(el); if(typeof classNames == "string") { classNames = classNames.split(' '); } var current = ' ' + el.className + ' '; for(var i = 0, len = classNames.length, c; (c = classNames[i]) || i < len; ++i) { if(current.indexOf(' '+c+' ') == -1) { current += c + ' '; ... | |
addClassName: function(element, className) { if (!(element = $(element))) return; if (!element.hasClassName(className)) element.className += (element.className ? ' ' : '') + className; return element; }, | var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(... | addClassName: function(element, className) { if (!(element = $(element))) return; if (!element.hasClassName(className)) element.className += (element.className ? ' ' : '') + className; return element; }, |
async:false, | function addColumn(){ //get parameter from interface var cn = $("#columnName").val(); if (cn==''){ cn ='noName' }; var te = 'Deprecated';//$("#typeExtraction").val(); var pf = pathString;//$("#finalPath").val(); //Verification of the existance of the column name if (verifyColumnLabel(cn)=... | |
alert ('Name existes, can you modify the label of the colum...') | alert ('Name exists, you should change it...') | function addColumn(){ //get parameter from interface var cn = $("#columnName").val(); var te = $("#typeExtraction").val(); var pf = $("#finalPath").val(); //Verification of the existance of the column name if (verifyColumnLabel(cn)==true ){ alert ('Name existes, can you modify the label of the ... |
}).init(obj.name)); | }).init(obj.name)); else if (obj.defaultGroup) [this.commandbar, this.statusbar].forEach(function (nodeSet) { let elem = nodeSet[obj.name]; if (elem) highlight.highlightNode(elem, obj.defaultGroup.split(/\s/) .map(function (g) g + " " + nodeSet.group + g).join(" ")); }); | addElem: function (obj) { const self = this; this.elements[obj.name] = obj; function get(id) obj.getElement ? obj.getElement(id) : document.getElementById(id); this.active.__defineGetter__(obj.name, function () self.activeGroup[obj.name][obj.name]); this.activeGroup.__defineGetter... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.