rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if(exampleView !== view.createdFromExampleView) { this._indexMap[index] = null; var f = view.get("frame"); view.adjust({ top: -f.height }); this.sendToDOMPool(view); view = null; } else if(this.isInvalid(index)) { view.update(); } | view = this.updateView(view); | 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); ... |
if(!view ) { var attrs = this._tempAttrs; this.setAttributes(index, attrs); | var attrs = this._tempAttrs; this.setAttributes(index, attrs); if(!view && (view = this.pooledViewForItem(index))) { pool = this.domPoolForExampleView(view.createdFromExampleView); pool.remove(view); this.configureItemView(view, attrs); | 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); ... |
if(view = this.pooledViewForItem(index)) { this.configureItemView(view, attrs); if(view._cfp_dirty) { view.update(); view._cfp_dirty = NO; } } else if(view = this.viewFromDOMPoolFor(index)) { this.configureItemView(view, attrs); view.update(); | view = this.updateView(view); } if(!view && (view = this.viewFromDOMPoolFor(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); ... |
} else { view = this.renderItem(this.exampleViewForIndex(index), attrs); } | this.configureItemView(view, attrs); this._ignore = YES; SC.Binding.flushPendingChanges(); this._ignore = NO; view = this.updateView(view, YES); | 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); ... |
this.validate(index); this.mapView(view, index); | if(!view) { view = this.renderItem(this.exampleViewForIndex(index), attrs); } | 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); ... |
this.mapView(view, index); | renderForeground: function(index) { var view = this.renderFast(index); // if it was just rendered it's obviously not invalid anymore this.validate(index); this._curShowing.add(index); this.mapView(view, index); return view; }, | |
this.mapView(view, index); | renderForeground: function(index) { var view = this.renderFast(index); this._curShowing.add(index); return view; }, | |
if (this.didReload) this.didReload(reloaded || SC.IndexSet.create(index)); | renderForeground: function(index) { var view = this.renderFast(index); // if it was just rendered it's obviously not invalid anymore this.validate(index); this._curShowing.add(index); return view; }, | |
this.deprecatedRenderWarning(); | renderIcon: function(context, icon) { this.deprecatedRenderWarning(); // get a class name and url to include if relevant var url = null, className = null , classArray=[]; if (icon && SC.ImageView.valueIsUrl(icon)) { url = icon; className = '' ; } else { className = icon; url = SC.BLANK_IMAGE_... | |
SC.Binding.flushPendingChanges(); | renderItem: function(exampleView, attrs) { var view = exampleView.create(attrs); SC.Binding.flushPendingChanges(); this.appendChild(view); return view; }, | |
this.flushBindings(); this._ignore = NO; | renderItem: function(exampleView, attrs) { var view = exampleView.create(attrs); SC.Binding.flushPendingChanges(); this.appendChild(view); return view; }, | |
SC.Binding.flushPendingChanges(); | renderItem: function(exampleView, attrs) { var view = exampleView.create(attrs); this.appendChild(view); return view; }, | |
view.createdFromExampleView = exampleView; | renderItem: function(index, attrs) { var exampleView = this.exampleViewForIndex(index), view; if(!attrs) { attrs = this._tempAttrs; this.setAttributes(index, attrs); } view = exampleView.create(attrs); view.createdFromExampleView = exampleView; this.appendChild(view); ... | |
view.awake(); | renderItem: function(exampleView, attrs) { var view = exampleView.create(attrs); view.awake(); this.appendChild(view); return view; }, | |
this.deprecatedRenderWarning(); | renderLabel: function(context, label) { this.deprecatedRenderWarning(); context.push('<label>', label || '', '</label>') ; }, | |
this._viewRenderer.render(context); | renderLayout: function(context, firstTime) { this._viewRenderer.attr({ layoutStyle: this.get('layoutStyle') }); }, | |
this._scv_willRenderAnimations(); | this.get('layoutStyleCalculator').willRenderAnimations(); | renderLayout: function(context, firstTime) { this._scv_willRenderAnimations(); context.addStyle(this.get('layoutStyle')); this._scv_didRenderAnimations(); }, |
this._scv_didRenderAnimations(); | this.get('layoutStyleCalculator').didRenderAnimations(); | renderLayout: function(context, firstTime) { this._scv_willRenderAnimations(); context.addStyle(this.get('layoutStyle')); this._scv_didRenderAnimations(); }, |
this._scv_didRenderAnimations(); | renderLayout: function(context, firstTime) { this._scv_willRenderAnimations(); context.addStyle(this.get('layoutStyle')); }, | |
this._scv_didRenderAnimations(); | renderLayout: function(context, firstTime) { context.addStyle(this.get('layoutStyle')); this._scv_didRenderAnimations(); }, | |
this._viewRenderer.render(context); | renderLayout: function(context, firstTime) { this._viewRenderer.attr({ layoutStyle: this.get('layoutStyle') }); this._viewRenderer.render(context); }, | |
n=DOM.add(tr,'td');n=DOM.add(n,'img',{src:op_get_relative_uri_root()+"/images/emoji/"+s.carrier+"/"+s.carrier+i+".gif",alt:"["+s.carrier+":"+i+"]"});Event.add(n,'mousedown',function(e){if(Prototype.Browser.IE){tinyMCE.execCommand("mceInsertContent",false,e.srcElement.getAttribute("alt"));}else{tinyMCE.execCommand("mceI... | n=DOM.add(tr,'td');n=DOM.add(n,'img',{src:op_get_relative_uri_root()+"/images/emoji/"+s.carrier+"/"+s.carrier+i+".gif",alt:"["+s.carrier+":"+i+"]",width:12,height:12});Event.add(n,'mousedown',function(e){if(Prototype.Browser.IE){tinyMCE.execCommand("mceInsertContent",false,e.srcElement.getAttribute("alt"));}else{tinyMC... | return h;},postRender:function(){tinymce.dom.Event.add(this.id,'click',this.showMenu,this);},setColor:function(c){this.value=c;this.hideMenu();this.settings.onselect(c);}});tinymce.create('tinymce.ui.OpenPNEEmojiButton:tinymce.ui.ColorSplitButton',{OpenPNEEmojiButton:function(id,s){var t=this;t.parent(id,s);t.settings=... |
attrs = this._tempAttrs; this.setAttributes(index, attrs); | attrs = this.setAttributes(index, this._tempAttrs); | renderNew: function(index) { var exampleView = this.exampleViewForIndex(index), view, attrs; // 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 var pool = this.domPoolForExa... |
this.mapView(view, index); | renderNew: function(index) { var exampleView = this.exampleViewForIndex(index), view, attrs; // 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 var pool = this.domPoolForExa... | |
attrs = this._tempAttrs; this.setAttributes(index, attrs); | if(view = this._indexMap[index]) { var pool = this.domPoolForExampleView(view.createdFromExampleView); if(pool._lastRendered == view) debugger; pool.remove(view); view = this.updateView(view); } | renderNew: function(index) { var exampleView = this.exampleViewForIndex(index), view, attrs; attrs = this._tempAttrs; this.setAttributes(index, attrs); view = this.renderItem(exampleView, attrs); // if it was just rendered it's obviously not invalid anymore this.validate(index); t... |
view = this.renderItem(exampleView, attrs); | if(!view) { attrs = this._tempAttrs; this.setAttributes(index, attrs); | renderNew: function(index) { var exampleView = this.exampleViewForIndex(index), view, attrs; attrs = this._tempAttrs; this.setAttributes(index, attrs); view = this.renderItem(exampleView, attrs); // if it was just rendered it's obviously not invalid anymore this.validate(index); t... |
this.validate(index); this.mapView(view, index); | view = this.renderItem(exampleView, attrs); } | renderNew: function(index) { var exampleView = this.exampleViewForIndex(index), view, attrs; attrs = this._tempAttrs; this.setAttributes(index, attrs); view = this.renderItem(exampleView, attrs); // if it was just rendered it's obviously not invalid anymore this.validate(index); t... |
if(this._invalidIndexes.contains(index) && (view = this._indexMap[index])) { | view = this._indexMap[index]; if(view && view._SCCFP_dirty) { | renderNextBackground: function() { var index = this.getNextBackground(); if(index === undefined) return; var exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView), view; if(pool._lastRendered && !pool.head) debugger; // if the last rendered is t... |
if(pool._lastRendered && !pool.head) console.log("something is wrong"); | if(pool._lastRendered && !pool.head) debugger; | renderNextBackground: function() { var index = this.getNextBackground(), exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView), view; if(pool._lastRendered && !pool.head) console.log("something is wrong"); // if the last rendered is the tail and is about t... |
if(pool.length >= this.domPoolSize && pool._lastRendered && pool._lastRendered === pool.head._prev) { | if(pool.length >= this.domPoolSize && pool._lastRendered && (pool._lastRendered === pool.head._prev)) { | renderNextBackground: function() { var index = this.getNextBackground(), exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView), view; if(pool._lastRendered && !pool.head) console.log("something is wrong"); // if the last rendered is the tail and is about t... |
if(pool._lastRendered && !pool.head) throw "pool.lastRendered not cleared"; | if(pool._lastRendered && !pool.head) throw "New background render cycle started but last rendered view was not cleared"; | renderNextBackground: function() { var index = this.getNextBackground(); if(index === undefined) return; var exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView), view; if(pool._lastRendered && !pool.head) throw "pool.lastRendered not cleared"; ... |
if(pool.length >= this.domPoolSize && pool._lastRendered && (pool._lastRendered === pool.head._SCCFP_prev)) { | if(pool.length >= this.DOMPoolSize && pool._lastRendered && (pool._lastRendered === pool.head._SCCFP_prev)) { | renderNextBackground: function() { var index = this.getNextBackground(); if(index === undefined) return; var exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView), view; if(pool._lastRendered && !pool.head) throw "pool.lastRendered not cleared"; ... |
var index = this.getNextBackground(), exampleView = this.exampleViewForIndex(index), | var index = this.getNextBackground(); if(index === undefined) return; var exampleView = this.exampleViewForIndex(index), | renderNextBackground: function() { var index = this.getNextBackground(), exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView), view; if(pool._lastRendered && !pool.head) debugger; // if the last rendered is the tail and is about to be reused, that means w... |
return; } if(index === undefined) { | renderNextBackground: function() { var index = this.getNextBackground(), exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView), view; if(pool._lastRendered && !pool.head) debugger; // if the last rendered is the tail and is about to be reused, that means w... | |
console.log("stopping"); | renderNextBackground: function() { var index = this.getNextBackground(), exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView); // dont render if the last view rendered is the tail if(index === undefined || (pool.length >= this.domPoolSize && pool._lastRende... | |
console.log("background rendering: ", index); | renderNextBackground: function() { var index = this.getNextBackground(), exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView); // dont render if the last view rendered is the tail if(index === undefined || (pool.length >= this.domPoolSize && pool._lastRende... | |
if(pool._lastRendered && !pool.head) debugger; | if(pool._lastRendered && !pool.head) throw "pool.lastRendered not cleared"; | renderNextBackground: function() { var index = this.getNextBackground(); if(index === undefined) return; var exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView), view; if(pool._lastRendered && !pool.head) debugger; // if the last rendered is t... |
pool = this.domPoolForExampleView(exampleView); | pool = this.domPoolForExampleView(exampleView), view; | renderNextBackground: function() { var index = this.getNextBackground(), exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView); // dont render if the last view rendered is the tail if(index === undefined || (pool.length >= this.domPoolSize && pool._lastRende... |
if(index === undefined || (pool.length >= this.domPoolSize && pool._lastRendered && pool._lastRendered === pool.head._prev) ) { | if(pool._lastRendered && !pool.head) console.log("something is wrong"); if(pool.length >= this.domPoolSize && pool._lastRendered && pool._lastRendered === pool.head._prev) { pool._lastRendered = null; return; } if(index === undefined) { | renderNextBackground: function() { var index = this.getNextBackground(), exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView); // dont render if the last view rendered is the tail if(index === undefined || (pool.length >= this.domPoolSize && pool._lastRende... |
return this.renderBackground(index); | if(this._invalidIndexes.contains(index) && (view = this._indexMap[index])) { view = this.updateView(view); } if(!view) { view = this.renderBackground(index); } return view; | renderNextBackground: function() { var index = this.getNextBackground(), exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(exampleView); // dont render if the last view rendered is the tail if(index === undefined || (pool.length >= this.domPoolSize && pool._lastRende... |
var html = this.current_page + ' to ' + this.page_count + ' of ' + this.page_count; | this.start = this.getStartCount(); this.offset = this.getOffsetCount(); var html = this.start + ' to ' + this.offset + ' of ' + this.total; | renderPagenate: function(){ var html = this.current_page + ' to ' + this.page_count + ' of ' + this.page_count; $("#viewPagenate").html(html+' '+this.view); }, |
this.deprecatedRenderWarning(); | renderRightIcon: function(context, icon) { this.deprecatedRenderWarning(); // get a class name and url to include if relevant var url = null, className = null, classArray=[]; if (icon && SC.ImageView.valueIsUrl(icon)) { url = icon; className = '' ; } else { className = icon; url = SC.BLANK_IM... | |
this.renderIcon(context, this.rightIcon, "right-icon"); | if (this.rightIcon) { this.renderIcon(context, this.rightIcon, "right-icon"); } | renderRightIcon: function(context) { this.renderIcon(context, this.rightIcon, "right-icon"); }, |
if (!this.renderer) { this.renderer = this.createRenderer(); this.renderer.contentProvider = this; if (mixins = this.createRendererMixin) { len = mixins.length; for (idx = 0; idx < len; idx++) mixins[idx].call(this); | var theme = this.get("theme"); if (!this.renderer && theme) { this.renderer = this.createRenderer(theme); if (this.renderer) { this.renderer.contentProvider = this; if (mixins = this.createRendererMixin) { len = mixins.length; for (idx = 0; idx < len; idx++) mixins[idx].call(this, theme); } | renderToContext: function(context) { var mixins, idx, len; this.beginPropertyChanges() ; this.set('layerNeedsUpdate', NO) ; this.renderViewSettings(context); /* Now, the actual rendering, which will use a renderer if possible */ // even if we don't use the renderer to update, we must mak... |
this.updateRenderer(this.renderer); if (mixins = this.updateRendererMixin) { len = mixins.length; for (idx = 0; idx < len; idx++) mixins[idx].call(this, this.renderer); | if (this.renderer){ this.updateRenderer(this.renderer); if (mixins = this.updateRendererMixin) { len = mixins.length; for (idx = 0; idx < len; idx++) mixins[idx].call(this, this.renderer); } | renderToContext: function(context) { var mixins, idx, len; this.beginPropertyChanges() ; this.set('layerNeedsUpdate', NO) ; this.renderViewSettings(context); /* Now, the actual rendering, which will use a renderer if possible */ // even if we don't use the renderer to update, we must mak... |
this.renderer.render(context); | if (this.renderer) this.renderer.render(context); | renderToContext: function(context) { var mixins, idx, len; this.beginPropertyChanges() ; this.set('layerNeedsUpdate', NO) ; this.renderViewSettings(context); /* Now, the actual rendering, which will use a renderer if possible */ // even if we don't use the renderer to update, we must mak... |
renderToContext: function(context) { | renderToContext: function(context, firstTime) { | renderToContext: function(context) { var mixins, idx, len; this.beginPropertyChanges() ; this.set('layerNeedsUpdate', NO) ; this.renderViewSettings(context); /* Now, the actual rendering, which will use a renderer if possible */ // even if we don't use the renderer to update, we must mak... |
this.render(context, YES); | if (SC.none(firstTime)) firstTime = YES; this.render(context, firstTime); | renderToContext: function(context) { var mixins, idx, len; this.beginPropertyChanges() ; this.set('layerNeedsUpdate', NO) ; this.renderViewSettings(context); /* Now, the actual rendering, which will use a renderer if possible */ // even if we don't use the renderer to update, we must mak... |
for(idx=0; idx<len; ++idx) mixins[idx].call(this, context, YES) ; | for(idx=0; idx<len; ++idx) mixins[idx].call(this, context, firstTime) ; | renderToContext: function(context) { var mixins, idx, len; this.beginPropertyChanges() ; this.set('layerNeedsUpdate', NO) ; this.renderViewSettings(context); /* Now, the actual rendering, which will use a renderer if possible */ // even if we don't use the renderer to update, we must mak... |
}, | } | renderToContext: function(context) { equals(context.prevObject, curContext, 'passed child context of curContext'); equals(context.tagName(), this.get('tagName'), 'context setup with current tag name'); runCount++; // record run }, |
this.renderViewSettings(context); | this.renderViewSettings(context, YES); | renderToContext: function(context, firstTime) { var mixins, idx, len; this.beginPropertyChanges() ; this.set('layerNeedsUpdate', NO) ; this.renderViewSettings(context); /* Now, the actual rendering, which will use a renderer if possible */ // the renderer will have been created when the ... |
renderViewSettings: function(context) { | renderViewSettings: function(context, firstTime) { if (SC.none(firstTime)) firstTime = YES; | renderViewSettings: function(context) { this._updateViewRenderer(); this._viewRenderer.render(context); this.renderLayout(context, YES); // provide backwards compatibility }, |
this.renderLayout(context, YES); | if (firstTime) this.renderLayout(context, YES); | renderViewSettings: function(context) { this._updateViewRenderer(); this._viewRenderer.render(context); this.renderLayout(context, YES); // provide backwards compatibility }, |
classArray.splice(0, 0, this.get("theme").classNames); | classArray = classArray.concat(this.get("theme").classNames); | renderViewSettings: function(context) { /* MUCH OF THIS SHOULD POSSIBLY BE MOVED INTO A RENDERER FOR VIEWS */ // first, render view stuff. var layerId, bgcolor, cursor, classArray=[], mixins, len, idx; // do some initial setup only needed at create time. layerId = this.layerId ? this.get('layerId') : S... |
this.renderLayout(context, YES); | renderViewSettings: function(context) { this._updateViewRenderer(); this._viewRenderer.render(context); }, | |
if(SC.typeOf(views) === SC.T_ARRAY) views = arguments; | if(!SC.typeOf(views) === SC.T_ARRAY) views = arguments; | reorder: function(views) { if(SC.typeOf(views) === SC.T_ARRAY) views = arguments; var i = views.length, childViews = this.childViews, view; // childViews.[] should be observed this.beginPropertyChanges(); while(i-- > 0) { view = views[i]; childViews.removeObject(view); ... |
this.set(mode, null, null, { push: this.topOfStack, pop: this._modeStack.pop() }); | if (this._modeStack.length > 1) this.set(mode, null, null, { push: this.topOfStack, pop: this._modeStack.pop() }); | replace: function (mode, oldMode) { while (oldMode && this._modeStack.length > 1 && this.main != oldMode) this.pop(); this.set(mode, null, null, { push: this.topOfStack, pop: this._modeStack.pop() }); this.push(mode); }, |
this.enumerableContentDidChange(idx, amt, len - amt); | replace: function(idx, amt, recs) { if (!this.get('isEditable')) { throw "%@.%@[] is not editable".fmt(this.get('record'), this.get('propertyName')); } var storeIds = this.get('editableStoreIds'), len = recs ? (recs.get ? recs.get('length') : recs.length) : 0, record = this... | |
true;if(a){if(!g)return b();g=this.history.nodeBefore(g);h=this.history.textAfter(g).length}else{f=this.history.nodeAfter(g);if(!f){h=this.history.textAfter(g).length;return b()}g=f;h=0}}},select:function(){if(this.atOccurrence){select.setCursorPos(this.editor.container,this.pos.from,this.pos.to);select.scrollToCursor(... | d}else if(d)j=p*d;if(j)b.wrapping.style.height=Math.max(m+j,b.options.minHeight)+"px"}var b=this,c=b.options.cursorActivity,e=b.win,g=e.document.body,d=null,f=null,m=2*b.frame.offsetTop;g.style.overflowY="hidden";e.document.documentElement.style.overflowY="hidden";this.frame.scrolling="no";setTimeout(a,300);b.options.c... | true;if(a){if(!g)return b();g=this.history.nodeBefore(g);h=this.history.textAfter(g).length}else{f=this.history.nodeAfter(g);if(!f){h=this.history.textAfter(g).length;return b()}g=f;h=0}}},select:function(){if(this.atOccurrence){select.setCursorPos(this.editor.container,this.pos.from,this.pos.to);select.scrollToCursor(... |
Element.Methods.replace = function(element, content) { element = $(element); if (content && content.toElement) content = content.toElement(); if (Object.isElement(content)) { element.parentNode.replaceChild(content, element); return element; } content = Object.toHTML(content); var parent = element.parentNode, tagName... | 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.Methods.replace = function(element, content) { element = $(element); if (content && content.toElement) content = content.toElement(); if (Object.isElement(content)) { element.parentNode.replaceChild(content, element); return element; } content = Object.toHTML(content); var parent =... |
selection:function(){this.focusIfIE();return this.editor.selectedText()},reindent:function(){this.editor.reindent()},reindentSelection:function(){this.focusIfIE();this.editor.reindentSelection(null)},focusIfIE:function(){this.win.select.ie_selection&&this.focus()},focus:function(){this.win.focus();this.editor.selection... | selection:function(){this.focusIfIE();return this.editor.selectedText()},reindent:function(){this.editor.reindent()},reindentSelection:function(){this.focusIfIE();this.editor.reindentSelection(null)},focusIfIE:function(){this.win.select.ie_selection&&this.focus()},focus:function(){this.win.focus();this.editor.selection... | selection:function(){this.focusIfIE();return this.editor.selectedText()},reindent:function(){this.editor.reindent()},reindentSelection:function(){this.focusIfIE();this.editor.reindentSelection(null)},focusIfIE:function(){this.win.select.ie_selection&&this.focus()},focus:function(){this.win.focus();this.editor.selection... |
false);if(!b||!d)return"";if(b.node==d.node)return a.textAfter(b.node).slice(b.offset,d.offset);var f=[a.textAfter(b.node).slice(b.offset)];for(b=a.nodeAfter(b.node);b!=d.node;b=a.nodeAfter(b))f.push(a.textAfter(b));f.push(a.textAfter(d.node).slice(0,d.offset));return cleanText(f.join("\n"))},replaceSelection:function(... | selection:function(){this.focusIfIE();return this.editor.selectedText()},reindent:function(){this.editor.reindent()},reindentSelection:function(){this.focusIfIE();this.editor.reindentSelection(null)},focusIfIE:function(){this.win.select.ie_selection&&this.focus()},focus:function(){this.win.focus();this.editor.selection... | false);if(!b||!d)return"";if(b.node==d.node)return a.textAfter(b.node).slice(b.offset,d.offset);var f=[a.textAfter(b.node).slice(b.offset)];for(b=a.nodeAfter(b.node);b!=d.node;b=a.nodeAfter(b))f.push(a.textAfter(b));f.push(a.textAfter(d.node).slice(0,d.offset));return cleanText(f.join("\n"))},replaceSelection:function(... |
1?this[0].innerHTML.replace(Ga,""):null;else if(typeof a==="string"&&!/<script/i.test(a)&&(c.support.leadingWhitespace||!Y.test(a))&&!G[(Ha.exec(a)||["",""])[1].toLowerCase()])try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){T(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().a... | ""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}... | 1?this[0].innerHTML.replace(Ga,""):null;else if(typeof a==="string"&&!/<script/i.test(a)&&(c.support.leadingWhitespace||!Y.test(a))&&!G[(Ha.exec(a)||["",""])[1].toLowerCase()])try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){T(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().a... |
tweet("@" + aUserID + " ", aStatusID); | let init = "@" + aUserID + " "; tweet(init, aStatusID, init.length); | function reply(aUserID, aStatusID) { tweet("@" + aUserID + " ", aStatusID); } |
$('form.comments input[@name="parent"]').val(parent_id); | $('form.comments input[name="parent"]').val(parent_id); | replyToComment : function(parent_id) { $('form.comments input[@name="parent"]').val(parent_id); $('#comment-message').hide(); this.callJSONService('get_comment', {comment_id: parent_id}, function(c) { $('#comment-message') .addClass('info') .text(_('Replying to comment by %s.').replace('%s... |
$('form.comments input[@name="parent"]').val(''); | $('form.comments input[name="parent"]').val(''); | replyToNothing : function() { $('form.comments input[@name="parent"]').val(''); $('#comment-message').fadeOut(); }, |
this.visualizations = this.filterSufficient(); | this.visualizations = this.getSufficientVisualizations(visualizations.results.bindings); var unsufficient = this.getUnsufficientVisualizations(visualizations.results.bindings); | function Report(table, visualizations, bindings, variables, options, containers){//alert(this.typeColumns.toSource()); this.data = new google.visualization.DataTable(table, 0.6); // count columns after data is set - but before visualizations are filtered this.countColumns(); this.visualizations = visualizat... |
for (var i in this.visualizations) | for (var i = 0; i < this.visualizations.length; i++) | function Report(table, visualizations, bindings, variables, options, containers){ //alert(Report.bindingTypes.results.bindings.toSource());//alert(variables.toSource()); this.data = new google.visualization.DataTable(table, 0.6); this.visualizations = visualizations.results.bindings; this.countColumns(); ... |
if (Cu.reportError) Cu.reportError(error); try { let obj = { toString: function () String(error), stack: <>{String.replace(error.stack || Error().stack, /^/mg, "\t")}</> }; for (let [k, v] in Iterator(error)) { if (!(k in obj)) obj[k] = v; } if (dactyl.storeErrors) { let errors = storage.newArray("errors", { store: fa... | util.reportError(error); | reportError: function (error, echo) { if (error instanceof FailedAssertion) { if (error.message) dactyl.echoerr(error.message); else dactyl.beep(); return; } if (error.result == Cr.NS_BINDING_ABORTED) return; if (e... |
dump("dactyl: components: " + e + "\n" + (e.stack || Error().stack)); | dump("dactyl: command-line-handler: " + e + "\n" + (e.stack || Error().stack)); | function reportError(e) { dump("dactyl: components: " + e + "\n" + (e.stack || Error().stack)); Cu.reportError(e);} |
dump("dactyl: components: " + e + "\n" + (e.stack || Error().stack)); | dump("dactyl: protocols: " + e + "\n" + (e.stack || Error().stack)); | function reportError(e) { dump("dactyl: components: " + e + "\n" + (e.stack || Error().stack)); Cu.reportError(e);} |
this.write('<span style="color: #00f">' +this.formatOutput(example.example) +'</span>'); | this.write('<span style="color: #00f"><a href="#' + example.htmlID + '" class="doctest-failure-link" title="Go to example">' + this.formatOutput(example.example) +'</a></span>'); | doctest.Reporter.prototype.reportFailure = function (example, output) { this.write('Failed example:\n'); this.write('<span style="color: #00f">' +this.formatOutput(example.example) +'</span>'); this.write('Expected:\n'); this.write(this.formatOutput(example.output)); this.write('Got:\n'); ... |
example.markExample('doctest-success'); | if (doctest.strip(example.output) == '...') { example.markExample('doctest-success', 'Output:\n' + output); } else { example.markExample('doctest-success'); } | doctest.Reporter.prototype.reportSuccess = function (example, output) { if (this.verbosity > 0) { if (this.verbosity > 1) { this.write('Trying:\n'); this.write(this.formatOutput(example.example)); this.write('Expecting:\n'); this.write(this.formatOutput(example.output)); this.write('ok\n');... |
if (example.output.indexOf('...') >= 0 && output) { | if ((example.output.indexOf('...') >= 0 || example.output.indexOf('?') >= 0) && output) { | doctest.Reporter.prototype.reportSuccess = function (example, output) { if (this.verbosity > 0) { if (this.verbosity > 1) { this.write('Trying:\n'); this.write(this.formatOutput(example.example)); this.write('Expecting:\n'); this.write(this.formatOutput(example.output)); this.write('ok\n');... |
doctest.repr = function (o) { if (typeof o == 'undefined') { return 'undefined'; } else if (o === null) { return "null"; } try { if (typeof(o.__repr__) == 'function') { return o.__repr__(); } else if (typeof(o.repr) == 'function' && o.repr != arguments.callee) { return o.repr(); } for (var i=0; i<doctest.repr.registry.... | func.repr = function () { return 'called:'+repr(self); }; | doctest.repr = function (o) { if (typeof o == 'undefined') { return 'undefined'; } else if (o === null) { return "null"; } try { if (typeof(o.__repr__) == 'function') { return o.__repr__(); } else if (typeof(o.repr) == 'function' && o.repr != arguments.callee) { ... |
if (maxLen === undefined) { maxLen = 120; } if (typeof o == 'undefined') { return 'undefined'; } else if (o === null) { return "null"; | if (doctest._reprTracker === null) { var iAmTheTop = true; doctest._reprTracker = []; } else { var iAmTheTop = false; | doctest.repr = function (o, indent, maxLen) { indent = indent || ''; if (maxLen === undefined) { maxLen = 120; } if (typeof o == 'undefined') { return 'undefined'; } else if (o === null) { return "null"; } try { if (typeof(o.__repr__) == 'function') { return o._... |
if (typeof(o.__repr__) == 'function') { return o.__repr__(indent, maxLen); } else if (typeof(o.repr) == 'function' && o.repr != arguments.callee) { return o.repr(indent, maxLen); } for (var i=0; i<doctest.repr.registry.length; i++) { var item = doctest.repr.registry[i]; if (item[0](o)) { return item[1](o, indent, maxLe... | if (doctest._reprTrackObj(o)) { return '..recursive..'; } if (maxLen === undefined) { maxLen = 120; } if (typeof o == 'undefined') { return 'undefined'; } else if (o === null) { return "null"; } try { if (typeof(o.__repr__) == 'function') { return o.__repr__(indent, maxLen); } else if (typeof(o.repr) == 'function' && o... | doctest.repr = function (o, indent, maxLen) { indent = indent || ''; if (maxLen === undefined) { maxLen = 120; } if (typeof o == 'undefined') { return 'undefined'; } else if (o === null) { return "null"; } try { if (typeof(o.__repr__) == 'function') { return o._... |
try { var ostring = (o + ""); if (ostring == '[object Object]' || ostring == '[object]') { ostring = doctest.objRepr(o, indent, maxLen); } } catch (e) { return "[" + typeof(o) + "]"; } if (typeof(o) == "function") { var ostring = ostring.replace(/^\s+/, "").replace(/\s+/g, " "); var idx = ostring.indexOf("{"); if (idx ... | doctest.repr = function (o, indent, maxLen) { indent = indent || ''; if (maxLen === undefined) { maxLen = 120; } if (typeof o == 'undefined') { return 'undefined'; } else if (o === null) { return "null"; } try { if (typeof(o.__repr__) == 'function') { return o._... | |
request: function(form, options) { form = $(form), options = Object.clone(options || { }); var params = options.parameters, action = form.readAttribute('action') || ''; if (action.blank()) action = window.location.href; options.parameters = form.serialize(true); if (params) { if (Object.isString(params)) params = par... | 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(... | request: function(form, options) { form = $(form), options = Object.clone(options || { }); var params = options.parameters, action = form.readAttribute('action') || ''; if (action.blank()) action = window.location.href; options.parameters = form.serialize(true); if (params) { if (Object.isString(p... |
request: function(req, sender, func) { var content = req.content; (content.title ? succeed(content.title):getTitle()).addCallback(function(title){ var sel = createFlavoredString(window.getSelection()); var ctx = update({ document :document, window : window, title : title, selection : (!!sel.raw)? sel : null, target : T... | var request = function(url, opt){ var ret = new Deferred(); chrome.extension.sendRequest(TBRL.id, { request: "request", content: { "url" : url, "opt" : opt } }, function(res){ if(res.success){ ret.callback(res.content); } else { ret.errback(res.content); } }); return ret; } | request: function(req, sender, func) { var content = req.content; (content.title ? succeed(content.title):getTitle()).addCallback(function(title){ var sel = createFlavoredString(window.getSelection()); var ctx = update({ document :document, window : window, title : title, s... |
var request = function(url, opt){ | function request(url, opt){ | var request = function(url, opt){ var req = new XMLHttpRequest(), ret = new Deferred(); opt = update({ method: 'GET' }, opt || {}); if(opt.queryString){ var qs = queryString(opt.queryString, true); url += qs; } if(opt.sendContent){ opt.method = 'POST'; opt.sendContent = queryString(opt.sendContent,... |
if(!opt.headers['Content-Type']){ if(opt.sendContent){ req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); } else { req.setRequestHeader('Content-Type', 'application/octet-stream'); } | if(opt.headers['Content-Type']){ setHeader = false; | var request = function(url, opt){ var req = new XMLHttpRequest(), ret = new Deferred(); opt = update({ method: 'GET' }, opt || {}); if(opt.queryString){ var qs = queryString(opt.queryString, true); url += qs; } if(opt.sendContent){ opt.method = 'POST'; opt.sendContent = queryString(opt.sendContent,... |
} if(setHeader){ if(opt.sendContent){ req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); } else { req.setRequestHeader('Content-Type', 'application/octet-stream'); } | var request = function(url, opt){ var req = new XMLHttpRequest(), ret = new Deferred(); opt = update({ method: 'GET' }, opt || {}); if(opt.queryString){ var qs = queryString(opt.queryString, true); url += qs; } if(opt.sendContent){ opt.method = 'POST'; opt.sendContent = queryString(opt.sendContent,... | |
if(opt.sendContent){ req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); } else { req.setRequestHeader('Content-Type', 'application/octet-stream'); } | var request = function(url, opt){ var req = new XMLHttpRequest(), ret = new Deferred(); opt = update({ method: 'GET' }, opt || {}); if(opt.queryString){ var qs = queryString(opt.queryString, true); url += qs; } if(opt.sendContent){ opt.method = 'POST'; opt.sendContent = queryString(opt.sendContent,... | |
if(!opt.headers['Content-Type']){ if(opt.sendContent){ req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); } else { req.setRequestHeader('Content-Type', 'application/octet-stream'); } } | var request = function(url, opt){ var req = new XMLHttpRequest(), ret = new Deferred(); opt = update({ method: 'GET' }, opt || {}); if(opt.queryString){ var qs = queryString(opt.queryString, true); url += qs; } if(opt.sendContent){ opt.method = 'POST'; opt.sendContent = queryString(opt.sendContent,... | |
var request_v1 = function(url,opt){ | function request_v1(url,opt){ | var request_v1 = function(url,opt){ opt = update({ method: 'GET' }, opt || {}); if(opt.sendContent){ opt.method = 'POST'; opt.sendContent = queryString(opt.sendContent, false); } if(opt.method && opt.method.toUpperCase() === 'POST'){ if(!opt.headers) opt.headers = []; opt.headers.push(['Content-Type... |
}; | } | function request_v1(url,opt){ opt = update({ method: 'GET' }, opt || {}); if(opt.sendContent){ opt.method = 'POST'; opt.sendContent = queryString(opt.sendContent, false); } if(opt.method && opt.method.toUpperCase() === 'POST'){ if(!opt.headers) opt.headers = []; opt.headers.push(['Content-Type', 'ap... |
reset: function (brief) { this._startIndex = this._endIndex = this._selIndex = -1; this._div = null; if (!brief) this.selectItem(-1); }, | reset: function () { this.index = null; }, | reset: function (brief) { this._startIndex = this._endIndex = this._selIndex = -1; this._div = null; if (!brief) this.selectItem(-1); }, |
reset: function (silent) { this._modeStack = []; if (config.isComposeWindow) this.set(modes.COMPOSE, modes.NONE, silent); else this.set(modes.NORMAL, modes.NONE, silent); | reset: function () { while (this._modeStack.length > 1) this.pop(); | reset: function (silent) { this._modeStack = []; if (config.isComposeWindow) this.set(modes.COMPOSE, modes.NONE, silent); else this.set(modes.NORMAL, modes.NONE, silent); }, |
reset: function(form) { $(form).reset(); return form; }, | 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(... | reset: function(form) { $(form).reset(); return form; }, |
if (key.substring(0,6) === 'animate') { | if (key.substring(0,7) === 'animate') { | resetAnimation: function() { var layout = this.get('layout'), didChange = NO, key; for (key in layout) { if (key.substring(0,6) === 'animate') { didChange = YES; delete layout[key]; } } if (didChange) this.set('layout', layout); return this; }, |
if (didChange) this.set('layout', layout); | console.log('resetAnimation didChange', didChange); if (didChange) { this.set('layout', layout); this.notifyPropertyChange('layout'); console.log('set layout', layout); } | resetAnimation: function() { var layout = this.get('layout'), didChange = NO, key; for (key in layout) { if (key.substring(0,6) === 'animate') { didChange = YES; delete layout[key]; } } if (didChange) this.set('layout', layout); return this; }, |
function ResetChildren(field,node) { var p=0; for (p=0;p<TreeParents[field].length;p++) { if (TreeParents[field][p]==node) {TreeChecked[field][p]=0;ResetChildren(field,p);UpdateNode(field,p);} } | function ResetChildren( field, node ) { for( var p = 0; p < TreeParents[field].length; p++ ) { if( TreeParents[field][p] == node ) { TreeChecked[field][p] = 0; ResetChildren( field ,p ); UpdateNode( field, p ); } | function ResetChildren(field,node) { var p=0; for (p=0;p<TreeParents[field].length;p++) { if (TreeParents[field][p]==node) {TreeChecked[field][p]=0;ResetChildren(field,p);UpdateNode(field,p);} } } |
} | function ResetChildren(field,node) { var p=0; for (p=0;p<TreeParents[field].length;p++) { if (TreeParents[field][p]==node) {TreeChecked[field][p]=0;ResetChildren(field,p);UpdateNode(field,p);} } } | |
delete localStorage[key]; | try{ delete localStorage[key]; } catch(e) { console.warn('Deleting local storage encountered a problem. '+e); } | resetDefault: function(keyName) { var fullKeyName, userKeyName, written, localStorage, key, storageSafari3; fullKeyName = this._normalizeKeyName(keyName); userKeyName = this._userKeyName(fullKeyName); this.propertyWillChange(keyName); this.propertyWillChange(fullKeyName); written = this._w... |
var height = root.scrollHeight - window.outerHeight; var width = root.scrollWidth - window.outerWidth; | var height = root.scrollHeight - window.innerHeight; var width = root.scrollWidth - window.innerWidth; console.log(width, height); | Form.resize = function(){ if(!Form.nowResizing){ Form.nowResizing = true; var root = document.body;// var height = window.outerHeight - (window.innerHeight*2) + root.scrollHeight;// var width = window.outerWidth - (window.innerWidth*2) + root.scrollWidth; var height = root.scrollHeight - window.outerHei... |
function resolveImportRequest(context, path, request, opts) { | function resolveImportRequest(context, request, opts) { | function resolveImportRequest(context, path, request, opts) { var cmds = jsio.__cmds, imports = [], result = false; for (var i = 0, imp; imp = cmds[i]; ++i) { if ((result = imp(context, path, request, opts, imports))) { break; } } if (result !== true) { throw new (typeof SyntaxError != 'undefined' ? Sy... |
if ((result = imp(context, path, request, opts, imports))) { break; } | if ((result = imp(context, request, opts, imports))) { break; } | function resolveImportRequest(context, path, request, opts) { var cmds = jsio.__cmds, imports = [], result = false; for (var i = 0, imp; imp = cmds[i]; ++i) { if ((result = imp(context, path, request, opts, imports))) { break; } } if (result !== true) { throw new (typeof SyntaxError != 'undefined' ? Sy... |
external: match[1] == 'external', "import": {} | external: match[1] == 'external', 'import': {} | function resolveImportRequest(path, request) { var match, imports = []; if((match = request.match(/^(from|external)\s+([\w.$]+)\s+import\s+(.*)$/))) { imports[0] = { from: resolveRelativePath(match[2], path), external: match[1] == 'external', "import": {} }; match[3].replace(/\s*([\w.$*]+)(?:\s+as\s+(... |
imports[0]["import"][item] = as || item; | imports[0]['import'][item] = as || item; | function resolveImportRequest(path, request) { var match, imports = []; if((match = request.match(/^(from|external)\s+([\w.$]+)\s+import\s+(.*)$/))) { imports[0] = { from: resolveRelativePath(match[2], path), external: match[1] == 'external', "import": {} }; match[3].replace(/\s*([\w.$*]+)(?:\s+as\s+(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.