rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if (!item[2]) return this; | if (!item.isEnabled) return this; | triggerItemAtIndex: function(idx) { var items = this.get('displayItems'), item = items.objectAt(idx), sel, value, val, empty, mult; if (!item[2]) return this; // nothing to do! empty = this.get('allowsEmptySelection'); mult = this.get('allowsMultipleSelection'); // get ne... |
sel = item[1]; | sel = item.value; | triggerItemAtIndex: function(idx) { var items = this.get('displayItems'), item = items.objectAt(idx), sel, value, val, empty, mult; if (!item[2]) return this; // nothing to do! empty = this.get('allowsEmptySelection'); mult = this.get('allowsMultipleSelection'); // get ne... |
if (actionKey && (item = this.get('items').objectAt(item[6]))) { | if (actionKey && (item = this.get('items').objectAt(item.index))) { | triggerItemAtIndex: function(idx) { var items = this.get('displayItems'), item = items.objectAt(idx), sel, value, val, empty, mult; if (!item[2]) return this; // nothing to do! empty = this.get('allowsEmptySelection'); mult = this.get('allowsMultipleSelection'); // get ne... |
item = items.objectAt(idx), sel, value, val, empty, mult; | overflowItems = this.get('overflowItems'), item, sel, value, val, empty, mult; if (overflowItems.length > 0 && idx >= items.length - 1) item = overflowItems.objectAt(idx - (items.length - 1)); else item = items.objectAt(idx); | triggerItemAtIndex: function(idx) { var items = this.get('displayItems'), item = items.objectAt(idx), sel, value, val, empty, mult; if (!item.isEnabled) return this; // nothing to do! empty = this.get('allowsEmptySelection'); mult = this.get('allowsMultipleSelection'); //... |
if (!SC.isArray(value)) value = [value]; | if (SC.empty(value)) value = []; else if (!SC.isArray(value)) value = [value]; | triggerItemAtIndex: function(idx) { var items = this.get('displayItems'), item = items.objectAt(idx), sel, value, val, empty, mult; if (!item.isEnabled) return this; // nothing to do! empty = this.get('allowsEmptySelection'); mult = this.get('allowsMultipleSelection'); //... |
return; | return null; | trimReblogInfo : function(form){ if(!TBRL.Config['entry']['trim_reblog_info']) return; function trimQuote(entry){ entry = entry.replace(/<p><\/p>/g, '').replace(/<p><a[^<]+<\/a>:<\/p>/g, ''); entry = (function(all, contents){ return contents.replace(/<blockquote>(([\n\r]|.)+)<\/blockquote>/... |
truncate: function(length, truncation) { length = length || 30; truncation = Object.isUndefined(truncation) ? '...' : truncation; return this.length > length ? this.slice(0, length - truncation.length) + truncation : String(this); }, | 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(... | truncate: function(length, truncation) { length = length || 30; truncation = Object.isUndefined(truncation) ? '...' : truncation; return this.length > length ? this.slice(0, length - truncation.length) + truncation : String(this); }, |
"string"){d=a;a=d[b];b=w}else if(b&&!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){var b={browser:""};a=a.toLowerCase();if(/webkit/.test(a))b={browser:"webkit",version:/webkit[\/ ]([\w.]+)/};else if(/opera/.tes... | !c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.... | "string"){d=a;a=d[b];b=w}else if(b&&!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){var b={browser:""};a=a.toLowerCase();if(/webkit/.test(a))b={browser:"webkit",version:/webkit[\/ ]([\w.]+)/};else if(/opera/.tes... |
} else { alert('Please select bibliographic data to upload!'); return; | var ucsUpload = function(strUploadHandler, strData) { var confUpload = false; if (strData.strip()) { confUpload = confirm('Are you sure to upload selected data to Union Catalog Server?'); } if (!confUpload) { return; } var ajaxJSON = new Ajax.Request(strUploadHandler, { method: 'p... | |
f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){thisObject=e;e=f;f=w}var j=b==="one"?c.proxy(e,function(o){c(this).unbind(o,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e,thisObject):this.each(function(){c.event.add(this,d,j,f)})}});c.... | d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;... | f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){thisObject=e;e=f;f=w}var j=b==="one"?c.proxy(e,function(o){c(this).unbind(o,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e,thisObject):this.each(function(){c.event.add(this,d,j,f)})}});c.... |
underscore: function() { return this.gsub(/::/, '/').gsub(/([A-Z]+)([A-Z][a-z])/,'#{1}_#{2}').gsub(/([a-z\d])([A-Z])/,'#{1}_#{2}').gsub(/-/,'_').toLowerCase(); }, | 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(... | underscore: function() { return this.gsub(/::/, '/').gsub(/([A-Z]+)([A-Z][a-z])/,'#{1}_#{2}').gsub(/([a-z\d])([A-Z])/,'#{1}_#{2}').gsub(/-/,'_').toLowerCase(); }, |
UndoHistory.prototype={scheduleCommit:function(){var i=this;this.parent.clearTimeout(this.commitTimeout);this.commitTimeout=this.parent.setTimeout(function(){i.tryCommit()},this.commitDelay)},touch:function(i){this.setTouched(i);this.scheduleCommit()},undo:function(){this.commit();if(this.history.length){var i=this.his... | b,c){this.editor.replaceChars(a,b,c)},getSearchCursor:function(a,b,c){return this.editor.getSearchCursor(a,b,c)},undo:function(){this.editor.history.undo()},redo:function(){this.editor.history.redo()},historySize:function(){return this.editor.history.historySize()},clearHistory:function(){this.editor.history.clear()},g... | UndoHistory.prototype={scheduleCommit:function(){var i=this;this.parent.clearTimeout(this.commitTimeout);this.commitTimeout=this.parent.setTimeout(function(){i.tryCommit()},this.commitDelay)},touch:function(i){this.setTouched(i);this.scheduleCommit()},undo:function(){this.commit();if(this.history.length){var i=this.his... |
undoClipping: function(element) { element = $(element); if (!element._overflow) return element; element.style.overflow = element._overflow == 'auto' ? '' : element._overflow; element._overflow = null; 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(... | undoClipping: function(element) { element = $(element); if (!element._overflow) return element; element.style.overflow = element._overflow == 'auto' ? '' : element._overflow; element._overflow = null; return element; }, |
undoPositioned: function(element) { element = $(element); if (element._madePositioned) { element._madePositioned = undefined; element.style.position = element.style.top = element.style.left = element.style.bottom = element.style.right = ''; } 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(... | undoPositioned: function(element) { element = $(element); if (element._madePositioned) { element._madePositioned = undefined; element.style.position = element.style.top = element.style.left = element.style.bottom = element.style.right = ''; } return element; }, |
unescapeHTML: function() { return this.stripTags().replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>'); } | 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(... | unescapeHTML: function() { return this.stripTags().replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>'); } |
unfilterJSON: function(filter) { return this.sub(filter || Prototype.JSONFilter, '#{1}'); }, | 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(... | unfilterJSON: function(filter) { return this.sub(filter || Prototype.JSONFilter, '#{1}'); }, |
function uninstall(data, reason) { dump("dactyl: bootstrap: uninstall " + reasonToString(reason) + "\n") } | function uninstall(data, reason) { dump("dactyl: bootstrap: uninstall " + reasonToString(reason) + "\n"); } | function uninstall(data, reason) { dump("dactyl: bootstrap: uninstall " + reasonToString(reason) + "\n") } |
!TBRL.config['post']['keyconfig'] && document.removeEventListener('unload', TBRL.unload, false); document.removeEventListener('keydown', TBRL.handler, false); | document.removeEventListener('unload', TBRL.unload, false); !TBRL.config['post']['keyconfig'] && document.removeEventListener('keydown', TBRL.keyhandler, false); | unload : function(){ !TBRL.config['post']['keyconfig'] && document.removeEventListener('unload', TBRL.unload, false); document.removeEventListener('keydown', TBRL.handler, false); document.removeEventListener('mousemove', TBRL.mousehandler, false); window.removeEventListener('Taberareloo.link', TBRL.link,... |
document.removeEventListener('mousedown', TBRL.clickhandler, false); | unload : function(){ document.removeEventListener('unload', TBRL.unload, false); !TBRL.config['post']['keyconfig'] && document.removeEventListener('keydown', TBRL.keyhandler, false); document.removeEventListener('mousemove', TBRL.mousehandler, false); window.removeEventListener('Taberareloo.link', TBRL.li... | |
if(!views) debugger; | if(!views) "no view to unmap"; | unmapFromItem: function(view) { var item = view.content, views = this._viewsForItem[SC.guidFor(item)]; if(!views) debugger; views.remove(view); return view; }, |
item = this.get('content').objectAt(view.contentIndex), views = viewsForItem[SC.guidFor(item)]; | item = view.content; | unmapView: function(view) { // TODO: fix this var viewsForItem = this._viewsForItem, item = this.get('content').objectAt(view.contentIndex), views = viewsForItem[SC.guidFor(item)]; views.remove(view); this._indexMap[view.contentIndex] = null; return view; }, |
views.remove(view); | if(item) { var views = viewsForItem[SC.guidFor(item)]; if(!views) debugger; views.remove(view); } | unmapView: function(view) { // TODO: fix this var viewsForItem = this._viewsForItem, item = this.get('content').objectAt(view.contentIndex), views = viewsForItem[SC.guidFor(item)]; views.remove(view); this._indexMap[view.contentIndex] = null; return view; }, |
c.removeObserver('isHidden', this, '_scfl_layoutPropertyDidChange'); | c.removeObserver('useAbsoluteLayout', this, '_scfl_layoutPropertyDidChange'); | unobserveChildLayout: function(c) { c._scfl_isBeingObserved = NO; c.removeObserver('isVisible', this, '_scfl_layoutPropertyDidChange'); c.removeObserver('isHidden', this, '_scfl_layoutPropertyDidChange'); c.removeObserver('calculatedWidth', this, '_scfl_layoutPropertyDidChange'); c.removeObserver('calc... |
return view; | unpool: function(view) { var pool = this.domPoolForExampleView(view.createdFromExampleView); // if we are going to steal the front of the background queue we need to fix it after we're done if(view === pool._lastRendered) { // if it's the head we need to null it, otherwise just use the next one back... | |
unregister: function(responder) { this.responders = this.responders.without(responder); }, | 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(... | unregister: function(responder) { this.responders = this.responders.without(responder); }, |
let elem = dactyl.focus; | unselectText: function (toEnd) { let elem = dactyl.focus; // A error occurs if the element has been removed when "elem.selectionStart" is executed. try { if (elem && elem.selectionEnd) if (toEnd) elem.selectionStart = elem.selectionEnd; ... | |
if (elem && elem.selectionEnd) if (toEnd) elem.selectionStart = elem.selectionEnd; else elem.selectionEnd = elem.selectionStart; | Editor.getEditor(null).selection[toEnd ? "collapseToEnd" : "collapseToStart"](); | unselectText: function (toEnd) { let elem = dactyl.focus; // A error occurs if the element has been removed when "elem.selectionStart" is executed. try { if (elem && elem.selectionEnd) if (toEnd) elem.selectionStart = elem.selectionEnd; ... |
catch (e) {} | catch (e) {}; | unselectText: function (toEnd) { let elem = dactyl.focus; // A error occurs if the element has been removed when "elem.selectionStart" is executed. try { if (elem && elem.selectionEnd) if (toEnd) elem.selectionStart = elem.selectionEnd; ... |
subs[i].splice(i--, 1); | subs.splice(i--, 1); | this.unsubscribe = function(signal, ctx, method) { var subs = this._subscribers[signal]; for (var i = 0, c; c = subs[i]; ++i) { if (c._ctx == ctx && (!method || c._method == method)) { subs[i].splice(i--, 1); } } return this; } |
if (!this._subscribers || !this._subscribers[signal]) { return; } | this.unsubscribe = function(signal, ctx, method) { var subs = this._subscribers[signal]; for (var i = 0, c; c = subs[i]; ++i) { if (c._ctx == ctx && (!method || c._method == method)) { subs.splice(i--, 1); } } return this; } | |
FirebugContext.getPanel('html'); | var unusedCssLint = function() { if (PAGESPEED.Utils.isUsingFilter()) { this.score = 'disabled'; this.warnings = ''; this.information = ['This rule is not currently able to filter results ', 'and is not included in the analysis.'].join(''); return; } if (!domUtils) { this.information = ('Th... | |
this.throwIfDisposed_(); | activity.TimelineView.BarChart_.prototype.unwindToEndTime = function(endTime) { this.throwIfDisposed_(); var amountToUnwind = this.endTime_ - endTime; if (amountToUnwind < 0) { throw new Error(['Current BarChart end time', this.endTime_, 'preceeds requested end time', ... | |
var f = mappings[signature(argumentTypes)], i = 1; | var f = mappings[signature(argumentTypes)]; | wrapper.unwrap = function(argumentTypes) { argumentTypes = argumentTypes || []; var f = mappings[signature(argumentTypes)], i = 1; if (typeof f == "undefined") throw new Error("Cannot find function '" + id + "' with signature " + signature(argumentTypes)); return ma... |
up: function(element, expression, index) { element = $(element); if (arguments.length == 1) return $(element.parentNode); var ancestors = element.ancestors(); return Object.isNumber(expression) ? ancestors[expression] : Selector.findElement(ancestors, expression, index); }, | 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(... | up: function(element, expression, index) { element = $(element); if (arguments.length == 1) return $(element.parentNode); var ancestors = element.ancestors(); return Object.isNumber(expression) ? ancestors[expression] : Selector.findElement(ancestors, expression, index); }, |
context.update(); | update: function(dataSource, jquery) { var theme = dataSource.get('theme'), name = SC.guidFor(this), items = dataSource.get('items'), idx, len = items.length, item; jquery.addClass(dataSource.get('layoutDirection')); if (dataSource.get('renderState').radioCount !== len) { // just r... | |
success: function(json,status){ console.log(json) | success: function(json,status,xhr){ | update:function(request,async){ this.request = request; this.async = async; var self = this; self.element.trigger('dcmgrGUI.beforeUpdate'); $.ajax({ async: async||true, url: request.url, dataType: "json", data: request.data, success: function(json,status){ console.... |
$("#list_load_mask").unmask(); }, error: function(xhr, status, error){ $("#list_load_mask").unmask(); | update:function(request,async){ this.request = request; this.async = async; var self = this; self.element.trigger('dcmgrGUI.beforeUpdate'); $.ajax({ async: async||true, url: request.url, dataType: "json", data: request.data, success: function(json,status){ console.... | |
this.$().setClass(this.calculateClasses()).addClass(this.controlSize); | if (this._last_control_size != this.controlSize) this.$().setClass(this._last_control_size, NO); if (this.controlSize) this.$().setClass(this.controlSize, YES); this.$().setClass(this.calculateClasses()); | update: function() { this.$().setClass(this.calculateClasses()).addClass(this.controlSize); } |
if (this.contentProvider) this.contentProvider.updateContent(); | update: function() { if (this.contentProvider) this.contentProvider.updateContent(); } | |
var panelRenderDelegate = dataSource.getPath('theme').panelRenderDelegate; | var panelRenderDelegate = dataSource.get('theme').panelRenderDelegate; | update: function(dataSource, $) { var panelRenderDelegate = dataSource.getPath('theme').panelRenderDelegate; panelRenderDelegate.update(dataSource, $); var displayProperties = dataSource.getChangedDisplayProperties(); var preferType = displayProperties.preferType; var pointerPosition = displayPrope... |
var displayProperties = dataSource.getChangedDisplayProperties(); 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'); | update: function(dataSource, $) { var panelRenderDelegate = dataSource.getPath('theme').panelRenderDelegate; panelRenderDelegate.update(dataSource, $); var displayProperties = dataSource.getChangedDisplayProperties(); var preferType = displayProperties.preferType; var pointerPosition = displayPrope... |
var img = this.$('img'), src = this.icon; | var img = this.$('.img'), src = this.icon; | update: function() { var img = this.$('img'), src = this.icon; if (src) { img.attr('class', "img "+src); } else { img.attr('class', "img"); } } |
update: function() { } | update: function(dataSource, elem) { equals(dataSource, view.get('renderDelegateProxy'), "passes view's render delegate proxy as data source"); ok(elem.jquery, "passes a jQuery object as first parameter"); updateCallCount++; } | update: function() { // no op } |
var classes = []; | var classes = {}; | update: function() { var classes = []; this._controlRenderer.attr({ isEnabled: this.isEnabled, isActive: this.isActive, isSelected: this.isSelected, controlSize: this.controlSize }); this._controlRenderer.update(); classes.push((this.contentIndex % 2 === 0) ? 'even' : 'odd')... |
classes.push((this.contentIndex % 2 === 0) ? 'even' : 'odd'); if (!this.isEnabled) classes.push('disabled'); if (this.disclosureState) classes.push('has-disclosure'); if (this.checkbox) classes.push('has-checkbox'); if (this.icon) classes.push('has-icon'); if (this.rightIcon) classes.push('has-right-icon'); | classes[(this.contentIndex % 2 === 0) ? 'even' : 'odd'] = YES; if (!this.isEnabled) classes['disabled'] = YES; if (this.disclosureState) classes['has-disclosure']; if (this.checkbox) classes['has-checkbox'] = YES; if (this.icon) classes['has-icon'] = YES; if (this.rightIcon) classes['has-right-icon'] = YES; | update: function() { var classes = []; this._controlRenderer.attr({ isEnabled: this.isEnabled, isActive: this.isActive, isSelected: this.isSelected, controlSize: this.controlSize }); this._controlRenderer.update(); classes.push((this.contentIndex % 2 === 0) ? 'even' : 'odd')... |
classes.push('has-count'); | classes['has-count'] = YES; | update: function() { var classes = []; this._controlRenderer.attr({ isEnabled: this.isEnabled, isActive: this.isActive, isSelected: this.isSelected, controlSize: this.controlSize }); this._controlRenderer.update(); classes.push((this.contentIndex % 2 === 0) ? 'even' : 'odd')... |
classes.push(digit + '-digit'); | classes[digit + '-digit'] = YES; | update: function() { var classes = []; this._controlRenderer.attr({ isEnabled: this.isEnabled, isActive: this.isActive, isSelected: this.isSelected, controlSize: this.controlSize }); this._controlRenderer.update(); classes.push((this.contentIndex % 2 === 0) ? 'even' : 'odd')... |
renderer.attr('isOverflowSegment', !!segment.isOverflowSegment); | update: function() { // this is actually performance-oriented. If we are completely changing the list of segments... // it may be faster to just re-render them all in one go. Plus it's easy. // Otherwise, we'd have to try to append or something crazy like that, which wouldn't be so good; // or who knows w... | |
var cq = this.$(); var src = this.src, toolTip = this.toolTip || '', image = ''; if ((this.isSprite !== YES && src.indexOf('/') >= 0) || this.isSprite === NO) { cq.attr('src', src); this._last_sprite_class = NO; | var cq = this.$(), src = this.icon; if (src) { cq.attr('class', "img "+src); | update: function() { var cq = this.$(); var src = this.src, toolTip = this.toolTip || '', image = ''; if ((this.isSprite !== YES && src.indexOf('/') >= 0) || this.isSprite === NO) { cq.attr('src', src); this._last_sprite_class = NO; } else { if (this._last_sprite_class) context.setC... |
if (this._last_sprite_class) context.setClass(this._last_sprite_class, NO); cq.attr('src', SC.BLANK_IMAGE_URL); cq.setClass(src, YES); this._last_sprite_class = src; } cq.attr('title', toolTip); cq.attr('alt', toolTip); | cq.attr('class', "img"); } | update: function() { var cq = this.$(); var src = this.src, toolTip = this.toolTip || '', image = ''; if ((this.isSprite !== YES && src.indexOf('/') >= 0) || this.isSprite === NO) { cq.attr('src', src); this._last_sprite_class = NO; } else { if (this._last_sprite_class) context.setC... |
console.log(json) | update:function(request,async){ this.request = request; this.async = async; var self = this; self.element.trigger('dcmgrGUI.beforeUpdate'); $.ajax({ async: async||true, url: request.url, dataType: "json", data: request.data, success: function(json,status){ self.ele... | |
this._titleRenderer.attr({ title: this.title, icon: this.icon, needsEllipsis: this.needsEllipsis, escapeHTML: this.escapeHTML }); | update: function(cq) { this.updateClassNames(cq); cq.attr("aria-checked", this.classNames.contains('sel').toString()); } | |
cq.css({'text-align': this.align}) | update: function(cq) { this.updateClassNames(cq); cq.addClass(this.themeName); // this is actually performance-oriented. If we are completely changing the list of segments... // it may be faster to just re-render them all in one go. Plus it's simple. // Otherwise, we'd have to try to append or somethin... | |
theme = this.oldButtonTheme; if (theme) q.addClass(theme); | update: function() { this._controlRenderer.attr({ isEnabled: this.isEnabled, isActive: this.isActive, isSelected: this.isSelected, controlSize: this.controlSize }); this._titleRenderer.attr({ title: this.title, icon: this.icon, needsEllipsis: this.needsEllipsis, escape... | |
else { htmlNode.innerHTML = ''; } | else { this._ImageTitleCached = imgTitle; htmlNode.innerHTML = ''; } | update: function() { var icon = this.icon, image = '' , title = this.title , hint = this.hint, needsTitle = (!SC.none(title) && title.length>0), imgTitle, elem, htmlNode; if(this.escapeHTML) title = SC.RenderContext.escapeHTML(title); if (icon) { var blank = SC.BLA... |
var names = [], n = this.calculateClassNames(); for (var i in n) { if (n[i]) names.push(i); } elem.attr("class", names.join(" ")); | elem.clearClassNames().setClass(this.calculateClassNames()); | update: function() { var elem = this.$(); // and to maintain compatibility, we have to blow away the class names // SC2.0: consider breaking this compatibility for SC 2.0 var names = [], n = this.calculateClassNames(); for (var i in n) { if (n[i]) names.push(i); } elem.attr("class", ... |
this._buttonRenderer.update(cq); | update: function(cq) { this.updateClassNames(cq); // well, if we haven't changed, why not be a bit lazy if (!this.hasChanges()) return; this.updateButtonRenderer(); //this._buttonRenderer.update(cq); // update OUR stuff if (this.didChange("width")) cq.css('width', this.width ? this.width+'px' : '... | |
if (ps.type == 'photo') { | if (ps.type === 'photo') { | update : function(status, ps) { var self = this; return maybeDeferred( (status.length < 117 && !TBRL.Config['post']['always_shorten_url']) ? status : shortenUrls(status, Models[this.SHORTEN_SERVICE]) ).addCallback(function(status) { var typeCode = 'U'; var media = {}; if (ps.type == 'phot... |
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8, application/json' | 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8, application/json', 'Api-Token': self.apiToken | update : function(status, ps) { var self = this; return maybeDeferred( (status.length < 117 && !TBRL.Config['post']['always_shorten_url']) ? status : shortenUrls(status, Models[this.SHORTEN_SERVICE]) ).addCallback(function(status) { var typeCode = 'U'; var media = {}; if (ps.type == 'phot... |
var state = this.state === SC.BRANCH_OPEN ? "open" : "closed", elem = this.$(); | this.updateControlRenderer(); | update: function(context) { var state = this.state === SC.BRANCH_OPEN ? "open" : "closed", elem = this.$(); elem.setClass("open", state === "open"); elem.setClass("closed", state !== "closed"); } |
elem.setClass("open", state === "open"); elem.setClass("closed", state !== "closed"); } | var state = this.state, elem = this.$("img"); elem.setClass("open", state); elem.setClass("closed", !state); }, | update: function(context) { var state = this.state === SC.BRANCH_OPEN ? "open" : "closed", elem = this.$(); elem.setClass("open", state === "open"); elem.setClass("closed", state !== "closed"); } |
if (this.didChange('text-align')) { cq.css('text-align', this.textAlign); } if (this.didChange('font-weight')) { cq.css('font-weight', this.fontWeight); } if (this.didChange('opacity')) { cq.css('opacity', this.isEditing ? 0 : 1); } if (this.didChange('icon')) { cq.setClass("icon", !!this.icon); } this.resetChanges(); | cq.css({ 'text-align': this.textAlign, 'font-weight': this.fontWeight, 'opacity': this.isEditing ? 0 : 1 }) .setClass('icon', !!this.icon); | update: function(cq) { this.updateClassNames(cq); this.updateTitleRenderer(cq); this.updateTitle(cq); if (this.didChange('text-align')) { cq.css('text-align', this.textAlign); } if (this.didChange('font-weight')) { cq.css('font-weight', this.fontWeight); } if (this.didChange('opacity... |
if (this._last_sprite_class) context.setClass(this._last_sprite_class, NO); | if (this._last_sprite_class) cq.setClass(this._last_sprite_class, NO); | update: function() { var cq = this.$(); var src = this.src, toolTip = this.toolTip || '', image = ''; if ((this.isSprite !== YES && src.indexOf('/') >= 0) || this.isSprite === NO) { cq.attr('src', src); this._last_sprite_class = NO; } else { if (this._last_sprite_class) context.setC... |
var changedDisplayProperties = dataSource.getChangedDisplayProperties(); if (changedDisplayProperties.contains('align')) { jquery.css('text-align', changedDisplayProperties.align); } | jquery.css('text-align', dataSource.get('align')); | update: function(dataSource, jquery) { var changedDisplayProperties = dataSource.getChangedDisplayProperties(); if (changedDisplayProperties.contains('align')) { jquery.css('text-align', changedDisplayProperties.align); } }, |
if (this.didChange('text-align')) { | if (this.didChange('textAlign')) { | update: function() { var cq = this.$(); this.updateTitleRenderer(); if (this.didChange('text-align')) { cq.css('text-align', this.textAlign); } if (this.didChange('font-weight')) { cq.css('font-weight', this.fontWeight); } if (this.didChange('opacity')) { cq.css('opacity', this.isE... |
if (this.didChange('font-weight')) { | if (this.didChange('fontWeight')) { | update: function() { var cq = this.$(); this.updateTitleRenderer(); if (this.didChange('text-align')) { cq.css('text-align', this.textAlign); } if (this.didChange('font-weight')) { cq.css('font-weight', this.fontWeight); } if (this.didChange('opacity')) { cq.css('opacity', this.isE... |
var displayProperties = dataSource.getChangedDisplayProperties(), allDisplayProperties = dataSource.getDisplayProperties(); if (allDisplayProperties.isActive) { | if (dataSource.get('isActive')) { | update: function(dataSource, jquery) { var displayProperties = dataSource.getChangedDisplayProperties(), allDisplayProperties = dataSource.getDisplayProperties(); if (allDisplayProperties.isActive) { jquery.addClass('active'); } jquery.setClass('def', allDisplayProperties.isDefault); jq... |
jquery.setClass('def', allDisplayProperties.isDefault); jquery.setClass('cancel', allDisplayProperties.isCancel); | jquery.setClass('def', dataSource.get('isDefault')); jquery.setClass('cancel', dataSource.get('isCancel')); | update: function(dataSource, jquery) { var displayProperties = dataSource.getChangedDisplayProperties(), allDisplayProperties = dataSource.getDisplayProperties(); if (allDisplayProperties.isActive) { jquery.addClass('active'); } jquery.setClass('def', allDisplayProperties.isDefault); jq... |
if (displayProperties.contains('title', 'isActive')) { jquery.find('label').html(this._htmlForTitleAndIcon(allDisplayProperties)); | if (dataSource.didChangeFor('buttonRenderDelegate', 'title', 'isActive')) { jquery.find('label').html(this._htmlForTitleAndIcon(dataSource)); | update: function(dataSource, jquery) { var displayProperties = dataSource.getChangedDisplayProperties(), allDisplayProperties = dataSource.getDisplayProperties(); if (allDisplayProperties.isActive) { jquery.addClass('active'); } jquery.setClass('def', allDisplayProperties.isDefault); jq... |
jquery.setClass('def', dataSource.get('isDefault')); jquery.setClass('cancel', dataSource.get('isCancel')); | jquery.setClass('def', dataSource.get('isDefault') || NO); jquery.setClass('cancel', dataSource.get('isCancel') || NO); | update: function(dataSource, jquery) { if (dataSource.get('isActive')) { jquery.addClass('active'); } jquery.setClass('def', dataSource.get('isDefault')); jquery.setClass('cancel', dataSource.get('isCancel')); dataSource.get('theme').labelRenderDelegate.update(dataSource, jquery.find('label'))... |
var cq = this.$(), src = this.icon; | var img = this.$('img'), src = this.icon; | update: function() { var cq = this.$(), src = this.icon; if (src) { cq.attr('class', "img "+src); } else { cq.attr('class', "img"); } } |
cq.attr('class', "img "+src); | img.attr('class', "img "+src); | update: function() { var cq = this.$(), src = this.icon; if (src) { cq.attr('class', "img "+src); } else { cq.attr('class', "img"); } } |
cq.attr('class', "img"); | img.attr('class', "img"); | update: function() { var cq = this.$(), src = this.icon; if (src) { cq.attr('class', "img "+src); } else { cq.attr('class', "img"); } } |
this._titleRenderer.attr({ title: this.title, icon: this.icon, needsEllipsis: this.needsEllipsis, escapeHTML: this.escapeHTML }); this._titleRenderer.update(); | this.updateContents(); | update: function() { this._controlRenderer.attr({ isEnabled: this.isEnabled, isActive: this.isActive, isSelected: this.isSelected, controlSize: this.controlSize }); this._controlRenderer.update(); var classes, theme, q = this.$(); classes = this._TEMPORARY_CLASS_HASH ? this.... |
$("#list_load_mask").unmask(); | alert('Dcmgr connection '+status); | update:function(request,async){ this.request = request; this.async = async; var self = this; $("#list_load_mask").mask("Loading..."); self.element.trigger('dcmgrGUI.beforeUpdate'); $.ajax({ async: async||true, url: request.url, dataType: "json", data: request.data, succ... |
this.updateClassNames(); | this.updateClassNames(cq); | update: function(cq) { this.updateClassNames(); } |
this.updateControlRenderer(); | update: function() { var cq = this.$(); this.updateTitleRenderer(); if (this.didChange('textAlign')) { cq.css('text-align', this.textAlign); } if (this.didChange('fontWeight')) { cq.css('font-weight', this.fontWeight); } if (this.didChange('opacity')) { cq.css('opacity', this.isEdi... | |
var displayProperties = dataSource.getDisplayProperties(), changedDisplayProperties = dataSource.getChangedDisplayProperties(), theme = dataSource.get('theme'), | var theme = dataSource.get('theme'), | update: function(dataSource, jquery) { var displayProperties = dataSource.getDisplayProperties(), changedDisplayProperties = dataSource.getChangedDisplayProperties(), theme = dataSource.get('theme'), buttonDelegate, titleMinWidth, classes = {}; // Segment specific additions ... |
'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') || NO | update: function(dataSource, jquery) { var displayProperties = dataSource.getDisplayProperties(), changedDisplayProperties = dataSource.getChangedDisplayProperties(), theme = dataSource.get('theme'), buttonDelegate, titleMinWidth, classes = {}; // Segment specific additions ... |
classes['sc-segment-' + displayProperties.index] = YES; | classes['sc-segment-' + dataSource.get('index')] = YES; | update: function(dataSource, jquery) { var displayProperties = dataSource.getDisplayProperties(), changedDisplayProperties = dataSource.getChangedDisplayProperties(), theme = dataSource.get('theme'), buttonDelegate, titleMinWidth, classes = {}; // Segment specific additions ... |
if (changedDisplayProperties.contains('titleMinWidth')) { titleMinWidth = (displayProperties.titleMinWidth ? displayProperties.titleMinWidth + "px" : null); jquery.find('.sc-button-inner').css('min-width', titleMinWidth); } if (changedDisplayProperties.contains('title', 'isActive')) { jquery.find('label').html(buttonDe... | buttonDelegate.update(dataSource, jquery); | update: function(dataSource, jquery) { var displayProperties = dataSource.getDisplayProperties(), changedDisplayProperties = dataSource.getChangedDisplayProperties(), theme = dataSource.get('theme'), buttonDelegate, titleMinWidth, classes = {}; // Segment specific additions ... |
editor.selection.addRange(RangeFind.nodeRange(editor.rootNode)); editor.selection.deleteFromDocument(); editor.insertText(val); | while (editor.rootElement.firstChild) editor.rootElement.removeChild(editor.rootElement.firstChild); editor.rootElement.innerHTML = val; | function update(force) { if (force !== true && tmpfile.lastModifiedTime <= lastUpdate) return; lastUpdate = Date.now(); let val = tmpfile.read(); if (textBox) textBox.value = val; ... |
} | updateButtonRenderer: function() { this._buttonRenderer.attr({ title: this.title, icon: this.icon, toolTip: this.toolTip, isEnabled: this.isEnabled, isSelected: this.isSelected, isActive: this.isActive, controlSize: this.controlSize }); }, | |
this.index = 0; | this.index = -1; | updateChoices: function(choices) { if(!this.changed && this.hasFocus) { this.update.innerHTML = choices; Element.cleanWhitespace(this.update); Element.cleanWhitespace(this.update.down()); if(this.update.firstChild && this.update.down().childNodes) { this.entryCount = this.updat... |
var cn = {}, size = this.calculateSize(); | this.renderClassNames(query); | updateClassNames: function(query) { 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 < l... |
var last = this._LAST_CLASS_NAMES, current = this.classNames, len, idx; if (last) { len = last.length; for (idx = 0; idx < len; idx++) cn[last[idx]] = NO; } else { last = this._LAST_CLASS_NAMES = SC.CoreSet.create(); } last.clear(); len = current.length; for (idx = 0; idx < len; idx++) { cn[current[idx]] = YES; ... | updateClassNames: function(query) { 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 < l... | |
updateComplete: function(response) { if (this.options.decay) { this.decay = (response.responseText == this.lastText ? this.decay * this.options.decay : 1); this.lastText = response.responseText; } this.timer = this.onTimerEvent.bind(this).delay(this.decay * this.frequency); }, | 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(... | updateComplete: function(response) { if (this.options.decay) { this.decay = (response.responseText == this.lastText ? this.decay * this.options.decay : 1); this.lastText = response.responseText; } this.timer = this.onTimerEvent.bind(this).delay(this.decay * this.frequency); }, |
updateContent: function(responseText) { var receiver = this.container[this.success() ? 'success' : 'failure'], options = this.options; if (!options.evalScripts) responseText = responseText.stripScripts(); if (receiver = $(receiver)) { if (options.insertion) { if (Object.isString(options.insertion)) { var insertion = ... | 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(... | updateContent: function(responseText) { var receiver = this.container[this.success() ? 'success' : 'failure'], options = this.options; if (!options.evalScripts) responseText = responseText.stripScripts(); if (receiver = $(receiver)) { if (options.insertion) { if (Object.isString(options.in... |
var alldone = 0; | function updateFirmware(transport){ var data = transport.responseJSON; var percents = new Hash(); // Loop through the returned boards data.boards.each(function(board) { var slot = board.slot; // Loop through the returned chips board.chips.each(function(chip) { // Update the text in the table $(chip.name + "_lab... | |
if (it.value == 100) { $(it.key + "_upload").update("Upload and install").disabled = false; | if (uploading && it.value == 100) { $(it.key + "_upload").update("Uploading...").disabled = true; } else if (it.value == 100) { $(it.key + "_upload").update("Upload and install").disabled = disable; | function updateFirmware(transport){ var data = transport.responseJSON; var percents = new Hash(); // Loop through the returned boards data.boards.each(function(board) { var slot = board.slot; // Loop through the returned chips board.chips.each(function(chip) { // Update the text in the table $(chip.name + "_lab... |
$(it.key + "_upload").update(it.value + "%").disabled = true; | $(it.key + "_upload").update("Installing " + it.value + "%").disabled = true; uploading = false; | function updateFirmware(transport){ var data = transport.responseJSON; var percents = new Hash(); // Loop through the returned boards data.boards.each(function(board) { var slot = board.slot; // Loop through the returned chips board.chips.each(function(chip) { // Update the text in the table $(chip.name + "_lab... |
var disable = (alldone != percents.size()); | var disable = (alldone != percents.size() * data.boards.size()); | function updateFirmware(transport){ var data = transport.responseJSON; var percents = new Hash(); var alldone = 0; // Loop through the returned boards data.boards.each(function(board) { var slot = board.slot; // Loop through the returned chips board.chips.each(function(chip) { // Update the text in the table $(c... |
if (uploading && it.value == 100) { $(it.key + "_upload").update("Uploading...").disabled = true; } else if (it.value == 100) { | if (it.value != 100) { $(it.key + "_upload").update("Installing " + it.value + "%").disabled = true; } else { | function updateFirmware(transport){ var data = transport.responseJSON; var percents = new Hash(); var alldone = 0; // Loop through the returned boards data.boards.each(function(board) { var slot = board.slot; // Loop through the returned chips board.chips.each(function(chip) { // Update the text in the table $(c... |
} else { $(it.key + "_upload").update("Installing " + it.value + "%").disabled = true; uploading = false; | function updateFirmware(transport){ var data = transport.responseJSON; var percents = new Hash(); var alldone = 0; // Loop through the returned boards data.boards.each(function(board) { var slot = board.slot; // Loop through the returned chips board.chips.each(function(chip) { // Update the text in the table $(c... | |
function UpdateHiddenField(field) { var f=""; for (p=0;p<TreeID[field].length;p++) { if (TreeChecked[field][p]==1) { f+="," + TreeNames[field][p]; } } document.getElementById(field + "_category").value=f; | function UpdateHiddenField( field ) { var f = ""; for( var p = 0; p < TreeID[field].length; p++ ) { if ( TreeChecked[field][p] == 1 ) { f += "," + TreeNames[field][p]; } } document.getElementById( field + "_category" ).value = f; | function UpdateHiddenField(field) { var f=""; for (p=0;p<TreeID[field].length;p++) { if (TreeChecked[field][p]==1) { f+="," + TreeNames[field][p]; } } document.getElementById(field + "_category").value=f; // Update the result counter, if the function is available (e.g. on Advanced Search). if (typeof UpdateRe... |
if (typeof UpdateResultCount == 'function') {UpdateResultCount();} | if( typeof UpdateResultCount == 'function' ) { UpdateResultCount(); | function UpdateHiddenField(field) { var f=""; for (p=0;p<TreeID[field].length;p++) { if (TreeChecked[field][p]==1) { f+="," + TreeNames[field][p]; } } document.getElementById(field + "_category").value=f; // Update the result counter, if the function is available (e.g. on Advanced Search). if (typeof UpdateRe... |
} | function UpdateHiddenField(field) { var f=""; for (p=0;p<TreeID[field].length;p++) { if (TreeChecked[field][p]==1) { f+="," + TreeNames[field][p]; } } document.getElementById(field + "_category").value=f; // Update the result counter, if the function is available (e.g. on Advanced Search). if (typeof UpdateRe... | |
if( UpdateResultCount != null && typeof UpdateResultCount == 'function' ) { | if( typeof( UpdateResultCount ) != 'undefinied' && typeof( UpdateResultCount ) == 'function' ) { | function UpdateHiddenField( field ){ var f = ""; for( var p = 0; p < TreeID[field].length; p++ ) { if ( TreeChecked[field][p] == 1 ) { f += "," + TreeNames[field][p]; } } document.getElementById( field + "_category" ).value = f; // Update the result counter, if the function is available (e.g. on Advanced Search... |
if( typeof UpdateResultCount == 'function' ) { | if( UpdateResultCount != null && typeof UpdateResultCount == 'function' ) { | function UpdateHiddenField( field ){ var f = ""; for( var p = 0; p < TreeID[field].length; p++ ) { if ( TreeChecked[field][p] == 1 ) { f += "," + TreeNames[field][p]; } } document.getElementById( field + "_category" ).value = f; // Update the result counter, if the function is available (e.g. on Advanced Search... |
updateLayer: function() { | updateLayer: function(optionalContext) { | updateLayer: function() { var mixins, idx, len, renderer; this.updateViewSettings(); if (renderer = this.renderer) { this.updateRenderer(renderer); // renderers always update. if (mixins = this.updateRendererMixin) { len = mixins.length; for (idx = 0; idx < len; idx++) mixins[idx]... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.