rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
function removeEndSlash(str) { return str.replace(rexpEndSlash, ''); } | removeEndSlash: function(str) { return str.replace(rexpEndSlash, ''); }, | function removeEndSlash(str) { return str.replace(rexpEndSlash, ''); } |
el = $.id(el); if (el.addEventListener) { el.removeEventListener(name, f, false); } else { el.detachEvent('on' + name, f); | el = $.id(el); if (el.addEventListener) { el.removeEventListener(name, f, false); } else { el.detachEvent('on' + name, f); } | $.removeEvent = function(el, name, f) { el = $.id(el); if (el.addEventListener) { el.removeEventListener(name, f, false); } else { el.detachEvent('on' + name, f); }} |
} | $.removeEvent = function(el, name, f) { el = $.id(el); if (el.addEventListener) { el.removeEventListener(name, f, false); } else { el.detachEvent('on' + name, f); }} | |
return cleanText(b.join(""))},setLineContent:function(a,b){this.history.commit();this.replaceRange({node:a,offset:0},{node:a,offset:this.history.textAfter(a).length},b);this.addDirtyNode(a);this.scheduleHighlight()},removeLine:function(a){for(var b=a?a.nextSibling:this.container.firstChild;b;){var d=b.nextSibling;remov... | lineContent:function(a){return this.editor.lineContent(a)},setLineContent:function(a,b){this.editor.setLineContent(a,b)},removeLine:function(a){this.editor.removeLine(a)},insertIntoLine:function(a,b,c){this.editor.insertIntoLine(a,b,c)},selectLines:function(a,b,c,e){this.win.focus();this.editor.selectLines(a,b,c,e)},nt... | return cleanText(b.join(""))},setLineContent:function(a,b){this.history.commit();this.replaceRange({node:a,offset:0},{node:a,offset:this.history.textAfter(a).length},b);this.addDirtyNode(a);this.scheduleHighlight()},removeLine:function(a){for(var b=a?a.nextSibling:this.container.firstChild;b;){var d=b.nextSibling;remov... |
this.throwIfDisposed(); | activity.Listenable.prototype.removeListener = function(listener) { this.throwIfDisposed(); var listeners = this.listeners_; for (var i = 0, len = listeners.length; i < len; i++) { if (listeners[i] == listener) { listeners.splice(i, 1); return; } }}; | |
if (observers.members.length == 0) { | if (observers.getMembers().length == 0) { | removeObserver: function(key, target, method) { var kvoKey, chains, chain, observers, idx ; // normalize. if a function is passed to target, make it the method. if (method === undefined) { method = target; target = this ; } if (!target) target = this ; if (typeof method === "string") method = ... |
styleName = styleName.dasherize(); | removeStyle: function(styleName) { // avoid case where no styles have been defined if (!this._styles && !this._elem) return this; styleName = styleName.dasherize(); // get styles hash. this will clone if needed. var styles = this.styles(); if (styles[styleName]) { styles[styleName] = null; ... | |
styleName = styleName.dasherize(); | removeStyle: function(styleName) { // avoid case where no styles have been defined if (!this._styles && !this._elem) return this; // get styles hash. this will clone if needed. var styles = this.styles(); if (styles[styleName]) { styles[styleName] = null; this._stylesDidChange = YES ; ... | |
for (let name in array.iterValues(cmd.names)) | this._exCommands = this._exCommands.filter(function (c) c !== cmd); for (let name in values(cmd.names)) | removeUserCommand: function (name) { let cmd = this.get(name); dactyl.assert(cmd.user, "E184: No such user-defined command: " + name); for (let name in array.iterValues(cmd.names)) delete this._exMap[name]; this._exCommands = this._exCommands.filter(function (c) c != cmd); ... |
this._exCommands = this._exCommands.filter(function (c) c != cmd); | removeUserCommand: function (name) { let cmd = this.get(name); dactyl.assert(cmd.user, "E184: No such user-defined command: " + name); for (let name in array.iterValues(cmd.names)) delete this._exMap[name]; this._exCommands = this._exCommands.filter(function (c) c != cmd); ... | |
for (let name in values(cmd.names)) | for (let name in array.itervalues(cmd.names)) | removeUserCommand: function (name) { let cmd = this.get(name); dactyl.assert(cmd.user, "E184: No such user-defined command: " + name); for (let name in values(cmd.names)) delete this._exMap[name]; this._exCommands = this._exCommands.filter(function (c) c != cmd); }, |
if(separatorPostion > 0 && separatorPostion<len && idx >= len-separatorPostion) { idx++ ; } | render: function(context,firstTime) { sc_super(); var layoutWidth, objects, len, nameKey, iconKey, valueKey, checkboxEnabled, currentSelectedVal, shouldLocalize, separatorPostion, itemList, isChecked, idx, name, icon, value, item, itemEnabled, isEnabledKey ; layoutWidth = this.layout.width ; if(... | |
context.setClass(this.calculateClasses()).addClass(this.controlSize); | context.setClass(this.calculateClasses()); if (this.controlSize) context.addClass(this.controlSize); this._last_control_size = this.controlSize; | render: function(context) { // update the CSS classes for the control. note we reuse the same hash // to avoid consuming more memory context.setClass(this.calculateClasses()).addClass(this.controlSize); }, |
if (firstTime) this.renderChildViews(context, firstTime) ; | render: function(context, firstTime) { if (firstTime) this.renderChildViews(context, firstTime) ; if (this.createRenderer) { if (firstTime) { if (this.renderer) this.renderer.render(context); } else { if (this.renderer) this.renderer.update(); } } }, | |
} else { if (firstTime) this.renderChildViews(context, firstTime); | render: function(context, firstTime) { if (firstTime) this.renderChildViews(context, firstTime) ; if (this.createRenderer) { if (firstTime) { if (this.renderer) this.renderer.render(context); } else { if (this.renderer) this.renderer.update(); } } }, | |
idx, name, icon, value, item; | idx, name, icon, value, item, itemEnabled, isEnabledKey; | render: function(context,firstTime) { sc_super(); var layoutWidth, items, len, nameKey, iconKey, valueKey, separatorKey, showCheckbox, currentSelectedVal, shouldLocalize, isSeparator, itemList, isChecked, idx, name, icon, value, item; items = this.get('items') ; items = this.sortObjects(items) ;... |
isEnabled: YES, | isEnabled: itemEnabled, | render: function(context,firstTime) { sc_super(); var layoutWidth, items, len, nameKey, iconKey, valueKey, separatorKey, showCheckbox, currentSelectedVal, shouldLocalize, isSeparator, itemList, isChecked, idx, name, icon, value, item; items = this.get('items') ; items = this.sortObjects(items) ;... |
this.changeSelectButtonPreferMatrix(this._itemIdx) ; | this.set('CUSTOM_MENU_ITEM_HIEGHT', this.get('controlSize') === SC.SMALL_CONTROL_SIZE ? 18 : 20); this.changeSelectButtonPreferMatrix(this.get("_itemIdx")) ; | render: function(context,firstTime) { sc_super(); var layoutWidth, items, len, nameKey, iconKey, valueKey, separatorKey, showCheckbox, currentSelectedVal, shouldLocalize, isSeparator, itemList, isChecked, idx, name, icon, value, item; items = this.get('items') ; items = this.sortObjects(items) ;... |
context.setClass('alternating', this.get('showAlternatingRows')); return sc_super(); }, | if (firstTime) context.push('<div class="anchor"></div>'); } | render: function(context, firstTime) { context.setClass('alternating', this.get('showAlternatingRows')); return sc_super(); }, |
image = '<img src="'+blank+'" alt="" class="'+icon+'" />'; | image = '<img src="'+blank+'" alt="" class="icon '+icon+'" />'; | render: function(context) { var icon = this.icon, image = '', title = this.title, hint = this.hint, needsTitle = (!SC.none(title) && title.length>0), imgTitle; if(this.escapeHTML) title = SC.RenderContext.escapeHTML(title) ; // get the icon. If there is an icon, then get ... |
var panelRenderDelegate = dataSource.getPath('theme').panelRenderDelegate; var displayProperties = dataSource.getChangedDisplayProperties(); | var panelRenderDelegate = dataSource.get('theme').panelRenderDelegate; | render: function(dataSource, context) { var panelRenderDelegate = dataSource.getPath('theme').panelRenderDelegate; var displayProperties = dataSource.getChangedDisplayProperties(); panelRenderDelegate.render(dataSource, context); var preferType = displayProperties.preferType; var pointerPosition = disp... |
var preferType = displayProperties.preferType; var pointerPosition = displayProperties.pointerPos; var pointerPositionY = displayProperties.pointerPosY; | var preferType = dataSource.get('preferType'); var pointerPosition = dataSource.get('pointerPos'); var pointerPositionY = dataSource.get('pointerPosY'); | render: function(dataSource, context) { var panelRenderDelegate = dataSource.getPath('theme').panelRenderDelegate; var displayProperties = dataSource.getChangedDisplayProperties(); panelRenderDelegate.render(dataSource, context); var preferType = displayProperties.preferType; var pointerPosition = disp... |
render: function(dataSource, context) { ok(dataSource.isViewRenderDelegateProxy, "Render delegate should get passed a view's proxy for its data source"); renderDelegateCount++; }, | render: function(context, firstTime) { sc_super(); } | render: function(dataSource, context) { ok(dataSource.isViewRenderDelegateProxy, "Render delegate should get passed a view's proxy for its data source"); renderDelegateCount++; }, |
classes.push('has-count ' + digit + '-digit'); | classes.push(digit + '-digit'); | render: function(context) { var indent = this.outlineIndent, level = this.outlineLevel, classes = []; this._controlRenderer.attr({ isEnabled: this.isEnabled, isActive: this.isActive, isSelected: this.isSelected, controlSize: this.controlSize }); this._controlRenderer.... |
this._controlRenderer.render(context); | if (this.layer()) this._controlRenderer.update(context); else this._controlRenderer.render(context); | render: function(context) { var segments = this.segments, idx, len, segs = [], reusables = this._segments, segment, ren; this._controlRenderer.attr({ isEnabled: this.isEnabled, isActive: this.isActive, isSelected: this.isSelected, controlSize: this.controlSize }); thi... |
ren.attr('isOverflowSegment', !!segment.isOverflowSegment); | render: function(context) { var segments = this.segments, idx, len, segs = [], reusables = this._segments, segment, ren; this._controlRenderer.attr({ isEnabled: this.isEnabled, isActive: this.isActive, isSelected: this.isSelected, controlSize: this.controlSize }); thi... | |
var src = this.icon, toolTip = this.toolTip || '', image = ''; if (src && ((this.isSprite !== YES && src.indexOf('/') >= 0) || this.isSprite === NO)) { context.attr('src', src); this._last_sprite_class = NO; } else { context.attr('src', SC.BLANK_IMAGE_URL); context.addClass(src); this._last_sprite_class = src; } cont... | var icon = this.icon; context.addClass('no-min-width'); if(icon) context.push("<div class='img "+icon+"'></div>"); else context.push("<div class='img'></div>"); | render: function(context) { var src = this.icon, toolTip = this.toolTip || '', image = ''; if (src && ((this.isSprite !== YES && src.indexOf('/') >= 0) || this.isSprite === NO)) { context.attr('src', src); this._last_sprite_class = NO; } else { context.attr('src', SC.BLANK_IMAGE_URL); ... |
this.renderer.render(context); | if (this.renderer) this.renderer.render(context); | render: function(context, firstTime) { if (firstTime) this.renderChildViews(context, firstTime) ; if (this.createRenderer) { if (firstTime) { this.renderer.render(context); } else { this.renderer.update(); } } }, |
this.renderer.update(); | if (this.renderer) this.renderer.update(); | render: function(context, firstTime) { if (firstTime) this.renderChildViews(context, firstTime) ; if (this.createRenderer) { if (firstTime) { this.renderer.render(context); } else { this.renderer.update(); } } }, |
context = context.begin("span").addClass("label"); this._titleRenderer.render(context); context = context.end(); | render: function(context) { sc_super(); context.attr('role', 'checkbox'); context.attr('name', SC.guidFor(this)); context.attr("aria-checked", this.classNames.contains('sel').toString()); context.push('<span class="button"></span>'); this.resetChanges(); }, | |
console.log('render'); | render: function(context, firstTime) { sc_super() ; var v, accessoryViewWidths, leftAdjustment, rightAdjustment; // always have at least an empty string v = this.get('fieldValue'); if (SC.none(v)) v = ''; v = String(v); // update layer classes always context.setClass('not-empty', v.length > 0)... | |
if (this._use_deprecated_render) return this._DEPRECATED_render(context, firstTime); | render: function(context, firstTime) { var toolTip = this.get("toolTip"); if (toolTip && this.get("localize")) toolTip = toolTip.loc(); if (firstTime) { this.buttonRenderer = this.get('theme').renderer('button'); } var size = this.get('controlSize'); this.buttonRenderer.attr({ toolTip: too... | |
context.resetClassNames(); | render: function(context) { context .id(this.layerId) .setClass(this.calculateClassNames()); if (this.backgroundColor) { context.addStyle('backgroundColor', this.backgroundColor); } this.resetChanges(); }, | |
var state = this.state === SC.BRANCH_OPEN ? "open" : "closed"; context.push('<img src="' + SC.BLANK_IMAGE_URL + '" class="disclosure button ' + state + '" />'); | this.renderControlRenderer(context); var state = this.state ? "open" : "closed"; context.push('<img src="' + SC.BLANK_IMAGE_URL + '" class="disclosure button ' + state + '" />'); | render: function(context) { var state = this.state === SC.BRANCH_OPEN ? "open" : "closed"; context.push('<img src="' + SC.BLANK_IMAGE_URL + '" class="disclosure button ' + state + '" />'); }, |
var src = this.src, toolTip = this.toolTip || '', image = ''; | var src = this.icon, toolTip = this.toolTip || '', image = ''; | render: function(context) { var src = this.src, toolTip = this.toolTip || '', image = ''; if ((this.isSprite !== YES && src.indexOf('/') >= 0) || this.isSprite === NO) { context.attr('src', src); this._last_sprite_class = NO; } else { context.attr('src', SC.BLANK_IMAGE_URL); context.a... |
if ((this.isSprite !== YES && src.indexOf('/') >= 0) || this.isSprite === NO) { | if (src && ((this.isSprite !== YES && src.indexOf('/') >= 0) || this.isSprite === NO)) { | render: function(context) { var src = this.src, toolTip = this.toolTip || '', image = ''; if ((this.isSprite !== YES && src.indexOf('/') >= 0) || this.isSprite === NO) { context.attr('src', src); this._last_sprite_class = NO; } else { context.attr('src', SC.BLANK_IMAGE_URL); context.a... |
var displayProperties = dataSource.getDisplayProperties(); | render: function(dataSource, context) { var displayProperties = dataSource.getDisplayProperties(); // Use text-align to align the segments context.addStyle('text-align', displayProperties.align); }, | |
context.addStyle('text-align', displayProperties.align); | context.addStyle('text-align', dataSource.get('align')); | render: function(dataSource, context) { var displayProperties = dataSource.getDisplayProperties(); // Use text-align to align the segments context.addStyle('text-align', displayProperties.align); }, |
context.addStyle('text-align', this.align); | render: function(context) { sc_super(); var segments = this.segments, idx, len, segs = [], reusables = this._segments, segment, ren; context.addClass(this.themeName); if (!reusables) reusables = this._segments = []; // now, create new stuff for (idx = 0, len = segments.length; idx < le... | |
var displayProperties = dataSource.getDisplayProperties(); var minWidth = displayProperties.titleMinWidth; | var minWidth = dataSource.get('titleMinWidth'); | render: function(dataSource, context) { var displayProperties = dataSource.getDisplayProperties(); var minWidth = displayProperties.titleMinWidth; var labelContent; context.setClass('def', displayProperties.isDefault); context.setClass('cancel', displayProperties.isCancel); data... |
context.setClass('def', displayProperties.isDefault); context.setClass('cancel', displayProperties.isCancel); | context.setClass('def', dataSource.get('isDefault')); context.setClass('cancel', dataSource.get('isCancel')); | render: function(dataSource, context) { var displayProperties = dataSource.getDisplayProperties(); var minWidth = displayProperties.titleMinWidth; var labelContent; context.setClass('def', displayProperties.isDefault); context.setClass('cancel', displayProperties.isCancel); data... |
context.setClass('icon', !!displayProperties.icon); | context.setClass('icon', !!dataSource.get('icon')); | render: function(dataSource, context) { var displayProperties = dataSource.getDisplayProperties(); var minWidth = displayProperties.titleMinWidth; var labelContent; context.setClass('def', displayProperties.isDefault); context.setClass('cancel', displayProperties.isCancel); data... |
labelContent = this._htmlForTitleAndIcon(displayProperties); | labelContent = this._htmlForTitleAndIcon(dataSource); | render: function(dataSource, context) { var displayProperties = dataSource.getDisplayProperties(); var minWidth = displayProperties.titleMinWidth; var labelContent; context.setClass('def', displayProperties.isDefault); context.setClass('cancel', displayProperties.isCancel); data... |
if (displayProperties.needsEllipsis){ | if (dataSource.get('needsEllipsis')){ | render: function(dataSource, context) { var displayProperties = dataSource.getDisplayProperties(); var minWidth = displayProperties.titleMinWidth; var labelContent; context.setClass('def', displayProperties.isDefault); context.setClass('cancel', displayProperties.isCancel); data... |
if (displayProperties.supportFocusRing) { | if (dataSource.get('supportFocusRing')) { | render: function(dataSource, context) { var displayProperties = dataSource.getDisplayProperties(); var minWidth = displayProperties.titleMinWidth; var labelContent; context.setClass('def', displayProperties.isDefault); context.setClass('cancel', displayProperties.isCancel); data... |
if (this.renderer) this.renderer.update(); | if (firstTime) this.renderChildViews(context, firstTime); | render: function(context, firstTime) { if (this.createRenderer) { if (firstTime) { if (this.renderer) this.renderer.render(context); } else { if (this.renderer) this.renderer.update(); } } else { if (firstTime) this.renderChildViews(context, firstTime); } }, |
var minWidth = dataSource.get('titleMinWidth'); | render: function(dataSource, context) { var minWidth = dataSource.get('titleMinWidth'); var labelContent; context.setClass('def', dataSource.get('isDefault')); context.setClass('cancel', dataSource.get('isCancel')); this.includeSlices(dataSource, context, SC.THREE_SLICE); // Add an ... | |
context.setClass('def', dataSource.get('isDefault')); context.setClass('cancel', dataSource.get('isCancel')); | context.setClass('def', dataSource.get('isDefault') || 0); context.setClass('cancel', dataSource.get('isCancel') || 0); | render: function(dataSource, context) { var minWidth = dataSource.get('titleMinWidth'); var labelContent; context.setClass('def', dataSource.get('isDefault')); context.setClass('cancel', dataSource.get('isCancel')); this.includeSlices(dataSource, context, SC.THREE_SLICE); // Add an ... |
context = context.push("<span class='sc-button-inner test'>"); | render: function(context) { this._controlRenderer.attr({ isEnabled: this.isEnabled, isActive: this.isActive, isSelected: this.isSelected, controlSize: this.controlSize }); this._controlRenderer.render(context); /* Render OUR stuff */ // add href attr if tagName is anchor... v... | |
this._titleRenderer.attr({ title: this.title, icon: this.icon, needsEllipsis: this.needsEllipsis, escapeHTML: this.escapeHTML }); this._titleRenderer.render(context); context.push("</span>") ; if(this.supportFocusRing) { context.push('<div class="focus-ring">', '<div class="focus-left"></div>', '<div class="focus-m... | this.renderContents(context); | render: function(context) { this._controlRenderer.attr({ isEnabled: this.isEnabled, isActive: this.isActive, isSelected: this.isSelected, controlSize: this.controlSize }); this._controlRenderer.render(context); /* Render OUR stuff */ // add href attr if tagName is anchor... v... |
var inner, animatedBackground, value, cssString, backPosition, | var inner, animatedBackground, value = dataSource.get('value') * 100, cssString, backPosition, | render: function(dataSource, context) { var theme = dataSource.get('theme'); var inner, animatedBackground, value, cssString, backPosition, isIndeterminate = dataSource.get('isIndeterminate'), isRunning = dataSource.get('isRunning'), isEnabled = dataSource.get('isEnabled'), offse... |
value = (dataSource.get('value') * 100) + "%"; | value = value + "%"; | render: function(dataSource, context) { var theme = dataSource.get('theme'); var inner, animatedBackground, value, cssString, backPosition, isIndeterminate = dataSource.get('isIndeterminate'), isRunning = dataSource.get('isRunning'), isEnabled = dataSource.get('isEnabled'), offse... |
var classNames = { 'sc-indeterminate': isIndeterminate, 'sc-empty': (value <= 0), 'sc-complete': (value >= 100) }; | render: function(dataSource, context) { var theme = dataSource.get('theme'); var inner, animatedBackground, value, cssString, backPosition, isIndeterminate = dataSource.get('isIndeterminate'), isRunning = dataSource.get('isRunning'), isEnabled = dataSource.get('isEnabled'), offse... | |
this.renderUsingRenderer(); | this.renderUsingRenderer(context); | render: function(context, firstTime) { if (firstTime) this.renderChildViews(context, firstTime) ; if (this.createRenderer) { if (firstTime) { this.renderUsingRenderer(); } else { this.updateUsingRenderer(); } } }, |
'" style="position: absolute; width: 100%; height: 100%; border: 0px; margin: 0px; padding: 0p;"></iframe>'); | '" style="position: absolute; width: 100%; height: 100%; border: 0px; margin: 0px; padding: 0px;"></iframe>'); | render: function(context, firstTime) { var src = this.get('value'); if (firstTime) { context.push('<iframe src="' + src + '" style="position: absolute; width: 100%; height: 100%; border: 0px; margin: 0px; padding: 0p;"></iframe>'); } else { var iframe = this.$('iframe'); // clear out the... |
this.renderClassNames(context); | render: function(context) { context.push("<div class='sc-workspace-overlay'>", "<div class='middle'></div>", "<div class='top-left-edge'></div>", "<div class='top-edge'></div>", "<div class='top-right-edge'></div>", "<div class='right-edge'></div>", "<div class='bottom-right-edge'></d... | |
var displayProperties = dataSource.getDisplayProperties(), theme = dataSource.get('theme'), buttonDelegate, classes; | var theme = dataSource.get('theme'), buttonDelegate, classes; | render: function(dataSource, context) { var displayProperties = dataSource.getDisplayProperties(), // Properties of the data source that affect the rendered output theme = dataSource.get('theme'), buttonDelegate, classes; // Segment specific additions classes = { 'sc-segment': YES, 'sc-fir... |
'sc-first-segment': displayProperties.isFirstSegment, 'sc-middle-segment': displayProperties.isMiddleSegment, 'sc-last-segment': displayProperties.isLastSegment, 'sc-overflow-segment': displayProperties.isOverflowSegment | 'sc-first-segment': dataSource.get('isFirstSegment'), 'sc-middle-segment': dataSource.get('isMiddleSegment'), 'sc-last-segment': dataSource.get('isLastSegment'), 'sc-overflow-segment': dataSource.get('isOverflowSegment') | render: function(dataSource, context) { var displayProperties = dataSource.getDisplayProperties(), // Properties of the data source that affect the rendered output theme = dataSource.get('theme'), buttonDelegate, classes; // Segment specific additions classes = { 'sc-segment': YES, 'sc-fir... |
classes['sc-segment-' + displayProperties.index] = YES; | classes['sc-segment-' + dataSource.get('index')] = YES; | render: function(dataSource, context) { var displayProperties = dataSource.getDisplayProperties(), // Properties of the data source that affect the rendered output theme = dataSource.get('theme'), buttonDelegate, classes; // Segment specific additions classes = { 'sc-segment': YES, 'sc-fir... |
buttonDelegate = theme['buttonRenderDelegate']; | buttonDelegate = theme.buttonRenderDelegate; | render: function(dataSource, context) { var displayProperties = dataSource.getDisplayProperties(), // Properties of the data source that affect the rendered output theme = dataSource.get('theme'), buttonDelegate, classes; // Segment specific additions classes = { 'sc-segment': YES, 'sc-fir... |
this.deprecatedRenderWarning(); | renderAction: function(context, actionClassName) { this.deprecatedRenderWarning(); context.push('<img src="',SC.BLANK_IMAGE_URL,'" class="action" />'); }, | |
this.mapView(view, index); | renderBackground: function(index) { //console.log("rendering to background", index); var exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView), view; if(pool.length < this.domPoolSize) { view = this.renderNew(index); } else { view = this.renderFa... | |
if(pool.length < this.domPoolSize) view = this.renderNew(index); | if(pool.length < this.DOMPoolSize) view = this.renderNew(index); | renderBackground: function(index) { //console.log("rendering to background", index); var reloaded, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView), view; if (this.willReload) this.willReload(reloaded = SC.IndexSet.create(index)); // create a new v... |
this.validate(index); this.mapView(view, index); | renderBackground: function(index) { var exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView), view; if(pool.length < this.domPoolSize) { view = this.renderNew(index); } else { view = this.renderFast(index); } this.sendToDOMPool(view, YES)... | |
if (this.didReload) this.didReload(reloaded || SC.IndexSet.create(index)); | renderBackground: function(index) { //console.log("rendering to background", index); var exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView), view; if(pool.length < this.domPoolSize) { view = this.renderNew(index); } else { view = this.renderFa... | |
this.deprecatedRenderWarning(); | renderBranch: function(context, hasBranch) { this.deprecatedRenderWarning(); var classArray=[]; classArray.push('branch',hasBranch ? 'branch-visible' : 'branch-hidden'); context.begin('span') .addClass(classArray) .push(' ') .end(); } | |
var renderer = this.get('theme').renderer('checkbox'); | var renderer = this.get('theme').checkboxRenderDelegate; | renderCheckbox: function(context, state) { var renderer = this.get('theme').renderer('checkbox'); // note: checkbox-view is really not the best thing to do here; we should do // sc-list-item-checkbox; however, themes expect something different, unfortunately. context = context.begin('div').addClass('sc-ch... |
context = context.begin('div').addClass('sc-checkbox-view'); renderer.attr({ classNames: { sel: state && (state !== SC.MIXED_STATE), mixed: state === SC.MIXED_STATE, disabled: !(this.get('isEnabled') && this.get('contentIsEditable')), active: this._checkboxIsActive }, size: SC.REGULAR_CONTROL_SIZE }); renderer.render(... | context = context.begin('div') .addClass('sc-checkbox-view') .addClass('sc-regular-size') .addClass(this.get('theme').classNames) .addClass(renderer.get('name')); var source = this._checkboxRenderSource; if (!source) { source = this._checkboxRenderSource = SC.Object.create({ renderState: {}, theme: this.get('theme') }... | renderCheckbox: function(context, state) { var renderer = this.get('theme').renderer('checkbox'); // note: checkbox-view is really not the best thing to do here; we should do // sc-list-item-checkbox; however, themes expect something different, unfortunately. context = context.begin('div').addClass('sc-ch... |
this._checkboxRenderer = renderer; | this._checkboxRenderDelegate = renderer; | renderCheckbox: function(context, state) { var renderer = this.get('theme').renderer('checkbox'); // note: checkbox-view is really not the best thing to do here; we should do // sc-list-item-checkbox; however, themes expect something different, unfortunately. context = context.begin('div').addClass('sc-ch... |
this.deprecatedRenderWarning(); | var renderer = this.get('theme').renderer('checkbox'); | renderCheckbox: function(context, state) { this.deprecatedRenderWarning(); var key = (state === SC.MIXED_STATE) ? "mixed" : state ? "sel" : "nosel", cache = this._scli_checkboxHtml, isEnabled = this.get('contentIsEditable') && this.get('isEnabled'), html, tmp, classArray=[]; if (!isEnabl... |
var key = (state === SC.MIXED_STATE) ? "mixed" : state ? "sel" : "nosel", cache = this._scli_checkboxHtml, isEnabled = this.get('contentIsEditable') && this.get('isEnabled'), html, tmp, classArray=[]; | context = context.begin('div').addClass('sc-checkbox-view'); renderer.attr({ classNames: { sel: state && (state !== SC.MIXED_STATE), mixed: state === SC.MIXED_STATE, disabled: !(this.get('isEnabled') && this.get('contentIsEditable')), active: this._checkboxIsActive }, | renderCheckbox: function(context, state) { this.deprecatedRenderWarning(); var key = (state === SC.MIXED_STATE) ? "mixed" : state ? "sel" : "nosel", cache = this._scli_checkboxHtml, isEnabled = this.get('contentIsEditable') && this.get('isEnabled'), html, tmp, classArray=[]; if (!isEnabl... |
if (!isEnabled) key = SC.keyFor('disabled', key); if (!cache) cache = this.constructor.prototype._scli_checkboxHtml = {}; html = cache[key]; | size: SC.REGULAR_CONTROL_SIZE }); renderer.render(context); context = context.end(); | renderCheckbox: function(context, state) { this.deprecatedRenderWarning(); var key = (state === SC.MIXED_STATE) ? "mixed" : state ? "sel" : "nosel", cache = this._scli_checkboxHtml, isEnabled = this.get('contentIsEditable') && this.get('isEnabled'), html, tmp, classArray=[]; if (!isEnabl... |
if (!html) { tmp = SC.RenderContext('div').attr('role', 'button') .classNames(SC.clone(SC.CheckboxView.prototype.classNames)); if (state === SC.MIXED_STATE) classArray.push('mixed'); else if(state) classArray.push('sel'); if(!isEnabled) classArray.push('disabled'); tmp.addClass(classArray); tmp.push('<span clas... | this._checkboxRenderer = renderer; }, | renderCheckbox: function(context, state) { this.deprecatedRenderWarning(); var key = (state === SC.MIXED_STATE) ? "mixed" : state ? "sel" : "nosel", cache = this._scli_checkboxHtml, isEnabled = this.get('contentIsEditable') && this.get('isEnabled'), html, tmp, classArray=[]; if (!isEnabl... |
return context; | renderChildViews: function(context, firstTime) { if (firstTime) { this.renderContent(context); } else { this.updateContent(); } }, | |
if (firstTime) { this.renderContent(context); | if (firstTime || context) { this.renderContent(context, firstTime); | renderChildViews: function(context, firstTime) { if (firstTime) { this.renderContent(context); } else { this.updateContent(context); } return context; }, |
last.add(cn[current[idx]]); | last.add(current[idx]); | renderClassNames: function(context) { var cn = {}, size = this.calculateSize(); // do diffing by setting all of last to NO, then // setting all of this time to YES var last = this._LAST_CLASS_NAMES, current = this.classNames, len, idx; if (last) { len = last.length; for (idx = 0; idx <... |
renderContent: function(context) { | renderContent: function(context, firstTime) { | renderContent: function(context) { var cv = this.get('childViews'), len = cv.length, idx, view ; for (idx=0; idx<len; ++idx) { view = cv[idx] ; if (!view) continue; context = context.begin(view.get('tagName')) ; view.renderToContext(context); context = context.end() ; } }, |
view.renderToContext(context); | view.renderToContext(context, firstTime); | renderContent: function(context) { var cv = this.get('childViews'), len = cv.length, idx, view ; for (idx=0; idx<len; ++idx) { view = cv[idx] ; if (!view) continue; context = context.begin(view.get('tagName')) ; view.renderToContext(context); context = context.end() ; } }, |
context = context.end(); | renderContents: function(context) { // render background slices context.push("<span class='button-left'></span>"); // render inner html context.push("<span class='button-middle'>"); this._titleRenderer.render(context); context.push('</span>'); context.push("<span class='button-right'></span>"); ... | |
context.push("<span class='button-middle'></span>"); this._titleRenderer.render(context); | renderContents: function(context) { // render background slices context.push("<span class='button-left'></span>"); context.push("<span class='button-right'></span>"); context.push("<span class='button-middle'></span>"); // render inner html this._titleRenderer.render(context); } | |
this.deprecatedRenderWarning(); | renderCount: function(context, count) { this.deprecatedRenderWarning(); context.push('<span class="count"><span class="inner">', count.toString(),'</span></span>') ; }, | |
var renderer = this.get('theme').renderer('disclosure'); renderer.attr({ classNames: { 'sel': state === SC.BRANCH_OPEN }, size: SC.REGULAR_CONTROL_SIZE }); | var renderer = this.get('theme').disclosureRenderDelegate; | renderDisclosure: function(context, state) { var renderer = this.get('theme').renderer('disclosure'); renderer.attr({ classNames: { 'sel': state === SC.BRANCH_OPEN }, size: SC.REGULAR_CONTROL_SIZE }); context = context.begin('div').addClass('sc-disclosure-view'); renderer.render(c... |
context = context.begin('div').addClass('sc-disclosure-view'); renderer.render(context); context.end(); this._disclosureRenderer = renderer; | context = context.begin('div') .addClass('sc-disclosure-view') .addClass('sc-regular-size') .addClass(this.get('theme').classNames) .addClass(renderer.get('name')); var source = this._disclosureRenderSource; if (!source) { this._disclosureRenderSource = source = SC.Object.create({ renderState: {}, theme: this.get('the... | renderDisclosure: function(context, state) { var renderer = this.get('theme').renderer('disclosure'); renderer.attr({ classNames: { 'sel': state === SC.BRANCH_OPEN }, size: SC.REGULAR_CONTROL_SIZE }); context = context.begin('div').addClass('sc-disclosure-view'); renderer.render(c... |
if (state) { | if (!SC.none(state)) { | renderDisclosure: function(context) { var state = this.disclosureState, renderer; if (state) { if (!(renderer = this._disclosureRenderer)) { renderer = this._disclosureRenderer = this.theme.disclosure(); } renderer.attr({ state: this.disclosureState }); renderer.rend... |
this.deprecatedRenderWarning(); | var renderer = this.get('theme').renderer('disclosure'); renderer.attr({ classNames: { 'sel': state === SC.BRANCH_OPEN }, size: SC.REGULAR_CONTROL_SIZE }); | renderDisclosure: function(context, state) { this.deprecatedRenderWarning(); var key = (state === SC.BRANCH_OPEN) ? "open" : "closed", cache = this._scli_disclosureHtml, html, tmp; if (!cache) cache = this.constructor.prototype._scli_disclosureHtml = {}; html = cache[key]; if (!html) { ... |
var key = (state === SC.BRANCH_OPEN) ? "open" : "closed", cache = this._scli_disclosureHtml, html, tmp; | context = context.begin('div').addClass('sc-list-item-disclosure'); renderer.render(context); context.end(); | renderDisclosure: function(context, state) { this.deprecatedRenderWarning(); var key = (state === SC.BRANCH_OPEN) ? "open" : "closed", cache = this._scli_disclosureHtml, html, tmp; if (!cache) cache = this.constructor.prototype._scli_disclosureHtml = {}; html = cache[key]; if (!html) { ... |
if (!cache) cache = this.constructor.prototype._scli_disclosureHtml = {}; html = cache[key]; if (!html) { html = cache[key] = '<img src="'+SC.BLANK_IMAGE_URL+'" class="disclosure button '+key+'" />'; } context.push(html); }, | this._disclosureRenderer = renderer; }, | renderDisclosure: function(context, state) { this.deprecatedRenderWarning(); var key = (state === SC.BRANCH_OPEN) ? "open" : "closed", cache = this._scli_disclosureHtml, html, tmp; if (!cache) cache = this.constructor.prototype._scli_disclosureHtml = {}; html = cache[key]; if (!html) { ... |
var renderer = this[name]; | var renderer = this._specializedRenderers[name], base = this[name]; if (!renderer || renderer._specializedFrom !== base) { if (!base) return null; renderer = base.extend({ classNames: this.classNames, theme: this }); } | renderer: function(name) { var renderer = this[name]; var args = SC.$A(arguments); args.shift(); if (renderer) { renderer.create.apply(renderer, args); renderer.theme = this; renderer.classNames.addEach(this.classNames); } return null; } |
if (renderer) { renderer.create.apply(renderer, args); renderer.theme = this; renderer.classNames.addEach(this.classNames); } return null; | renderer = renderer.create.apply(renderer, args); return renderer; | renderer: function(name) { var renderer = this[name]; var args = SC.$A(arguments); args.shift(); if (renderer) { renderer.create.apply(renderer, args); renderer.theme = this; renderer.classNames.addEach(this.classNames); } return null; } |
var attrs = this._tempAttrs; this.setAttributes(index, attrs); | var attrs = this.setAttributes(index, this._tempAttrs); | renderFast: function(index) { var view, exampleView, pool; // if it already exists in the right place we might be able to use the existing view if(view = this._indexMap[index]) { // if we just rendered it, it is no longer in a pool pool = this.domPoolForExampleView(view.createdFromExampleVie... |
this.configureItemView(view, attrs); | renderFast: function(index) { var view, exampleView, pool; // if it already exists in the right place we might be able to use the existing view if(view = this._indexMap[index]) { // if we just rendered it, it is no longer in a pool pool = this.domPoolForExampleView(view.createdFromExampleVie... | |
view = this.updateView(view); | view = this.updateView(view, attrs, YES); | renderFast: function(index) { var view, exampleView, pool; // if it already exists in the right place we might be able to use the existing view if(view = this._indexMap[index]) { // if we just rendered it, it is no longer in a pool pool = this.domPoolForExampleView(view.createdFromExampleVie... |
this.configureItemView(view, attrs); this._ignore = YES; SC.Binding.flushPendingChanges(); this._ignore = NO; | renderFast: function(index) { var view, exampleView, pool; // if it already exists in the right place we might be able to use the existing view if(view = this._indexMap[index]) { // if we just rendered it, it is no longer in a pool pool = this.domPoolForExampleView(view.createdFromExampleVie... | |
view = this.updateView(view, YES); | view = this.updateView(view, attrs, YES); | renderFast: function(index) { var view, exampleView, pool; // if it already exists in the right place we might be able to use the existing view if(view = this._indexMap[index]) { // if we just rendered it, it is no longer in a pool pool = this.domPoolForExampleView(view.createdFromExampleVie... |
if(!view) { view = this.renderItem(this.exampleViewForIndex(index), attrs); } | if(!view) view = this.renderItem(this.exampleViewForIndex(index), attrs); | renderFast: function(index) { var view, exampleView, pool; // if it already exists in the right place we might be able to use the existing view if(view = this._indexMap[index]) { // if we just rendered it, it is no longer in a pool pool = this.domPoolForExampleView(view.createdFromExampleVie... |
this.mapView(view, index); | renderFast: function(index) { var view, exampleView, pool; // if it already exists in the right place we might be able to use the existing view if(view = this._indexMap[index]) { // if we just rendered it, it is no longer in a pool pool = this.domPoolForExampleView(view.createdFromExampleVie... | |
if(!view) { view = this.renderItem(this.exampleViewForIndex(index), attrs); } | if(!view) view = this.renderItem(this.exampleViewForIndex(index), attrs); | renderFast: function(index) { //console.log("rendering index " + index); var view, exampleView, attrs; //var cname, aname; // if it already exists in the right place we might be able to use the existing view if(view = this._indexMap[index]) { /*cname = view.content ? view.content.get('fullName... |
var view, exampleView; | var view, exampleView, pool; | renderFast: function(index) { var view, exampleView; // if it already exists in the right place we don't need to do anything if(view = this._indexMap[index]) { // maybe move this logic down in case an item can be rendered more than one way exampleView = this.exampleViewForIndex(index); ... |
exampleView = this.exampleViewForIndex(index); | renderFast: function(index) { var view, exampleView; // if it already exists in the right place we don't need to do anything if(view = this._indexMap[index]) { // maybe move this logic down in case an item can be rendered more than one way exampleView = this.exampleViewForIndex(index); ... | |
var pool = this.domPoolForExampleView(view.createdFromExampleView); | pool = this.domPoolForExampleView(view.createdFromExampleView); if(pool._lastRendered == view) debugger; | renderFast: function(index) { var view, exampleView; // if it already exists in the right place we don't need to do anything if(view = this._indexMap[index]) { // maybe move this logic down in case an item can be rendered more than one way exampleView = this.exampleViewForIndex(index); ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.