rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var context = this.renderContext(this.get('layer')) ;
var context = optionalContext || this.renderContext(this.get('layer')) ;
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]...
this.renderer.update();
if (renderer) renderer.update();
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]...
var mixins, idx, len, renderer = this.renderer;
var mixins, idx, len, renderer = this.renderer, viewRenderer = this._viewRenderer;
updateLayer: function(optionalContext) { var mixins, idx, len, renderer = this.renderer; this.updateViewSettings(); // make sure to update any renderers this._updateRenderer(); // Now, update using renderer if possible; render() otherwise if (!this._useRenderFirst && this.createRenderer) { ...
if (viewRenderer) viewRenderer.update();
updateLayer: function(optionalContext) { var mixins, idx, len, renderer = this.renderer; this.updateViewSettings(); // make sure to update any renderers this._updateRenderer(); // Now, update using renderer if possible; render() otherwise if (!this._useRenderFirst && this.createRenderer) { ...
this.renderViewSettings(context);
this.renderViewSettings(context, NO);
updateLayer: function(optionalContext) { var mixins, idx, len, renderer = this.renderer, viewRenderer = this._viewRenderer; // make sure to update any renderers this._updateRenderer(); // Now, update using renderer if possible; render() otherwise if (!this._useRenderFirst && this.createRenderer...
this.renderLayout(context);
this.renderLayout(context, NO);
updateLayout: function() { var layer = this.get('layer'), context; if (layer) { context = this.renderContext(layer); this.renderLayout(context); context.update(); // If this view uses static layout, then notify if the frame changed. // (viewDidResize will do a comparison) if (this....
function UpdateNode(field,node) { if (document.getElementById(field + "_node" + node)) { document.getElementById(field + "_node" + node).innerHTML=DrawFromNode(field,node,true); }
function UpdateNode( field, node ) { if( document.getElementById( field + "_node" + node ) ) { document.getElementById( field + "_node" + node ).innerHTML = DrawFromNode( field, node, true );
function UpdateNode(field,node) { if (document.getElementById(field + "_node" + node)) { document.getElementById(field + "_node" + node).innerHTML=DrawFromNode(field,node,true); } }
}
function UpdateNode(field,node) { if (document.getElementById(field + "_node" + node)) { document.getElementById(field + "_node" + node).innerHTML=DrawFromNode(field,node,true); } }
}
},
updatePage: function(event){ var self = event.data.obj; var name = $(this).attr('class'); if(self.current_page >= 1 && self.current_page < self.page_count) { if(name === 'next'){ self.next_page = self.current_page +1; self.current_page = self.next_page; } } if(self.curre...
sel: isArray ? value.indexOf(item.value) : value === item.value
sel: isArray ? value.indexOf(item.value) > -1 : value === item.value
updateRenderer: function(r) { var items = this.get('displayItems'), value = this.get('value'), isArray = SC.isArray(value), activeIndex = this.get("activeIndex"), item; for (var idx = 0, len = items.length; idx < len; idx++) { item = items[idx]; item.classNames = { active: activeIndex ==...
for (idx = 0, len = overflowItems.length; idx < len; idx++) { item = overflowItems[idx]; if (isArray ? value.indexOf(item.value) >= 0 : value === item.value) { items[items.length - 1].isSelected = YES;
if (SC.empty(this.overflowIndex)) { this.invokeLast(function() { this.elementWidths = null; this.measureForOverflow(); }, this); } else { for (idx = 0, len = overflowItems.length; idx < len; idx++) { item = overflowItems[idx]; if (isArray ? value.indexOf(item.value) >= 0 : value === item.value) { items[items.length ...
updateRenderer: function(r) { var items = this.get('displayItems'), overflowItems = this.overflowItems, value = this.get('value'), isArray = SC.isArray(value), activeIndex = this.get("activeIndex"), item; // Check displayed items for (var idx = 0, len = items.length; idx < len; idx++) { item ...
if (isArray ? value.indexOf(item.value) : value === item.value) {
if (isArray ? value.indexOf(item.value) >= 0 : value === item.value) {
updateRenderer: function(r) { var items = this.get('displayItems'), value = this.get('value'), isArray = SC.isArray(value), activeIndex = this.get("activeIndex"), item; for (var idx = 0, len = items.length; idx < len; idx++) { item = items[idx]; // change active if (activeIndex == id...
if (this.get("localize")) toolTip = toolTip.loc();
if (toolTip && this.get("localize")) toolTip = toolTip.loc();
updateRenderer: function(r) { var toolTip = this.get("toolTip"); if (this.get("localize")) toolTip = toolTip.loc(); r.attr({ toolTip: toolTip, isAnchor: this.get("tagName") === 'a', href: this.get("href"), isDefault: this.get('isDefault'), isCancel: this.get('isCancel'), ico...
var items = this.get('displayItems'), value = this.get('value'), isArray = SC.isArray(value),
var items = this.get('displayItems'), overflowItems = this.overflowItems, value = this.get('value'), isArray = SC.isArray(value),
updateRenderer: function(r) { var items = this.get('displayItems'), value = this.get('value'), isArray = SC.isArray(value), activeIndex = this.get("activeIndex"), item; for (var idx = 0, len = items.length; idx < len; idx++) { item = items[idx]; // change active if (activeIndex == id...
for (idx = 0, len = overflowItems.length; idx < len; idx++) { item = overflowItems[idx]; if (isArray ? value.indexOf(item.value) >= 0 : value === item.value) { items[items.length - 1].isSelected = YES; } }
updateRenderer: function(r) { var items = this.get('displayItems'), value = this.get('value'), isArray = SC.isArray(value), activeIndex = this.get("activeIndex"), item; for (var idx = 0, len = items.length; idx < len; idx++) { item = items[idx]; // change active if (activeIndex == id...
needsEllipsis: this.get("needsEllipsis"), oldButtonTheme: this.get("oldButtonTheme")
needsEllipsis: this.get("needsEllipsis")
updateRenderer: function(r) { var toolTip = this.get("toolTip"); if (toolTip && this.get("localize")) toolTip = toolTip.loc(); r.attr({ toolTip: toolTip, isAnchor: this.get("tagName") === 'a', href: this.get("href"), isDefault: this.get('isDefault'), isCancel: this.get('isCancel'...
attrs.disclosureState = value;
attrs.disclosureState = value === SC.BRANCH_OPEN ? YES : NO;
updateRenderer: function(renderer) { var content = this.get('content'), del = this.displayDelegate, key, value; var attrs = { contentIndex: this.get('contentIndex'), contentIsEditable: this.get('contentIsEditable'), escapeHTML: this.get('escapeHTML'), isEnabled: this.get('i...
r.isSelected = this.get("isSelected"); r.isEnabled = this.get("isEnabled"); r.isActive = this.get("isActive");
r.attr({ isSelected: this.get('isSelected'), isEnabled: this.get('isEnabled'), isActive: this.get('isActive') });
updateRendererMixin: function(r) { r.isSelected = this.get("isSelected"); r.isEnabled = this.get("isEnabled"); r.isActive = this.get("isActive"); // we have to figure out if we are passing control size through, or our layout. var controlSize = this.get('controlSize'); if (controlSize === SC.AUTO...
controlSize = frame; controlSize.left = controlSize.x; controlSize.top = controlSize.y;
controlSize.width = frame.width; controlSize.height = frame.height;
updateRendererMixin: function(r) { r.isSelected = this.get("isSelected"); r.isEnabled = this.get("isEnabled"); r.isActive = this.get("isActive"); // we have to figure out if we are passing control size through, or our layout. var controlSize = this.get('controlSize'); if (controlSize === SC.AUTO...
r.controlSize = controlSize;
r.attr('controlSize', controlSize);
updateRendererMixin: function(r) { r.isSelected = this.get("isSelected"); r.isEnabled = this.get("isEnabled"); r.isActive = this.get("isActive"); // we have to figure out if we are passing control size through, or our layout. var controlSize = this.get('controlSize'); if (controlSize === SC.AUTO...
if (controlSize !== SC.CALCULATED_CONTROL_SIZE) {
if (this.get("controlSize") !== SC.CALCULATED_CONTROL_SIZE) {
updateRendererMixin: function(r) { r.isSelected = this.get("isSelected"); r.isEnabled = this.get("isEnabled"); r.isActive = this.get("isActive"); // we have to figure out if we are passing control size through, or our layout. var controlSize = this.get('controlSize'); if (controlSize === SC.AUTO...
controlSize = SC.clone(this.get("frame")); controlSize.left = controlSize.x; controlSize.top = controlSize.y;
var frame = SC.clone(this.get("frame")); if (frame) { controlSize = frame; controlSize.left = controlSize.x; controlSize.top = controlSize.y; }
updateRendererMixin: function(r) { r.isSelected = this.get("isSelected"); r.isEnabled = this.get("isEnabled"); r.isActive = this.get("isActive"); // we have to figure out if we are passing control size through, or our layout. var controlSize = this.get('controlSize'); if (controlSize === SC.AUTO...
this.updateIcon(this.rightIcon, "right-icon");
if (this.rightIcon) { this.updateIcon(this.rightIcon, "right-icon"); }
updateRightIcon: function() { this.updateIcon(this.rightIcon, "right-icon"); },
this.throwIfDisposed_();
activity.TimelineView.Row_.prototype.updateRowCss = function(primary) { this.throwIfDisposed_(); if (primary) { this.row_.setAttribute('class', 'primaryTimelineRow'); } else { this.row_.setAttribute('class', 'secondaryTimelineRow'); }};
var parts = $H(partsOrElement); if ((this.target_element.disabled || this.target_element.readOnly) && this.options.get("popup") != "force") return false; if (parts.get("day")) { var t_selected_date = this.selected_date, vdc = this.options.get("valid_date_check"); for (var x = 0; x<=3; x++) t_selected_date.setDate(parts...
var parts = $H(partsOrElement); if ((this.target_element.disabled || this.target_element.readOnly) && this.options.get("popup") != "force") return false; if (parts.get("day")) { var t_selected_date = this.selected_date, vdc = this.options.get("valid_date_check"); for (var x = 0; x<=3; x++) t_selected_date.setDate(parts...
updateSelectedDate:function(partsOrElement, via_click) { var parts = $H(partsOrElement); if ((this.target_element.disabled || this.target_element.readOnly) && this.options.get("popup") != "force") return false; if (parts.get("day")) { var t_selected_date = this.selected_date, vdc = this.options.get("val...
if (vdc && ! vdc(t_selected_date.stripTime())) { return false; } this.selected_date = t_selected_date; this.selection_made = true; } if (!isNaN(parts.get("hour"))) this.selected_date.setHours(parts.get("hour")); if (!isNaN(parts.get("minute"))) this.selected_date.setMinutes( Math.floor_to_interval(parts.get("minute"),...
if (!isNaN(parts.get("hour"))) this.selected_date.setHours(parts.get("hour")); if (!isNaN(parts.get("minute"))) this.selected_date.setMinutes( Math.floor_to_interval(parts.get("minute"), this.options.get("minute_interval")) ); if (parts.get("hour") === "" || parts.get("minute") === "") this.setUseTime(false); else if (...
updateSelectedDate:function(partsOrElement, via_click) { var parts = $H(partsOrElement); if ((this.target_element.disabled || this.target_element.readOnly) && this.options.get("popup") != "force") return false; if (parts.get("day")) { var t_selected_date = this.selected_date, vdc = this.options.get("val...
if (!tabs) { if (this.getTab() == this._alternates[0] || this.alternate && this.allTabs.indexOf(this._alternates[0]) == -1 || this.alternate && config.tabbrowser._removingTabs && config.tabbrowser._removingTabs.indexOf(this._alternates[0]) >= 0) tabs = [this.getTab(), this.alternate]; }
updateSelectionHistory: function (tabs) { this._alternates = tabs || [this.getTab(), this._alternates[0]]; }
else if ( oldShippSelIndex != 'undefined' )
else if ( oldShippSelIndex )
function updateShipping() { YUI().use( 'node', 'io', 'io-ez', 'dump', 'json-parse', function( Y ) { if ( !Y.Node.get('#shippingtype') ) { return false; } if ( Y.Node.get( '#shipping-checkbox' ).get( 'checked' ) ) { var selectedIndex = Y.Node.get( '#country' ).get( 'selectedIndex' ); var country = Y.Node.ge...
ez18nAlert("The shipping method '%old%' is not available for your country of destination and was changed to '%new%'.", replace);
if ( oldname ) { ez18nAlert("The shipping method '%old%' is not available for your country of destination and was changed to '%new%'.", replace); }
function updateShipping() { YUI().use( 'node', 'io', 'io-ez', 'dump', 'json-parse', function( Y ) { if ( !Y.Node.get('#shippingtype') ) { return false; } if ( Y.Node.get( '#shipping-checkbox' ).get( 'checked' ) ) { var selectedIndex = Y.Node.get( '#country' ).get( 'selectedIndex' ); var country = Y.Node.ge...
function UpdateStatusBox(field) { var nodes=""; for (i=0;i<TreeParents[field].length;i++) { if (TreeChecked[field][i]==1) { var c=CountTickedChildren(field,i); if (c==0) { nodes+=DescribeNode(field,i) + "<br/>"; }
function UpdateStatusBox( field ) { var nodes = ""; for( var i = 0; i < TreeParents[field].length; i++ ) { if( TreeChecked[field][i] == 1 ) { var c = CountTickedChildren( field, i ); if( c == 0 ) { nodes += DescribeNode( field, i ) + "<br/>";
function UpdateStatusBox(field) { var nodes=""; for (i=0;i<TreeParents[field].length;i++) { if (TreeChecked[field][i]==1) { var c=CountTickedChildren(field,i); if (c==0) { nodes+=DescribeNode(field,i) + "<br/>"; } } } if (nodes=="") {document.getElementById(field + "_statusbox").innerHTML="<b>" +...
} if (nodes=="") {document.getElementById(field + "_statusbox").innerHTML="<b>" + nocategoriesmessage + "</b>";} else { document.getElementById(field + "_statusbox").innerHTML=nodes; }
}
function UpdateStatusBox(field) { var nodes=""; for (i=0;i<TreeParents[field].length;i++) { if (TreeChecked[field][i]==1) { var c=CountTickedChildren(field,i); if (c==0) { nodes+=DescribeNode(field,i) + "<br/>"; } } } if (nodes=="") {document.getElementById(field + "_statusbox").innerHTML="<b>" +...
if( nodes == "" ) { document.getElementById( field + "_statusbox" ).innerHTML = "<b>" + nocategoriesmessage + "</b>"; } else { document.getElementById( field + "_statusbox" ).innerHTML = nodes; } }
function UpdateStatusBox(field) { var nodes=""; for (i=0;i<TreeParents[field].length;i++) { if (TreeChecked[field][i]==1) { var c=CountTickedChildren(field,i); if (c==0) { nodes+=DescribeNode(field,i) + "<br/>"; } } } if (nodes=="") {document.getElementById(field + "_statusbox").innerHTML="<b>" +...
YUI().use( 'node', 'io', 'io-ez', function( Y ) { var country = country_node.get( 'options' ).item( country_node.get( 'selectedIndex' ) ).get( 'value' );
YUI().use( 'node', 'io', 'io-ez', function( Y ) { var country = country_node.get( 'options' ).item( country_node.get( 'selectedIndex' ) ).get( 'value' ); Y.io.ez( 'xrowecommerce::getSubdivisions::' + country, { arguments: country_node, on: { success: function( id, r, country_node) { YUI().use('node', function(Y) { var...
function updateSubdivisions( country_node ) { YUI().use( 'node', 'io', 'io-ez', function( Y ) { var country = country_node.get( 'options' ).item( country_node.get( 'selectedIndex' ) ).get( 'value' ); Y.io.ez( 'xrowecommerce::getSubdivisions::' + country, { arguments: country_node, on: ...
Y.io.ez( 'xrowecommerce::getSubdivisions::' + country, { arguments: country_node, on: { success: function( id, r, country_node) { YUI().use('node', function(Y) { var data = r.responseJSON.content; if( country_node.get('id') == 'country' ) { var subdivision_node = Y.Node.get( '#state' ); } else { var subdivision_node =...
if( country_node.get('id') == 'country' ) { var subdivision_node = Y.Node.get( '#state' ); } else { var subdivision_node = Y.Node.get( '#s_state' ); } if ( subdivision_node.get( 'selectedIndex' ) > 0 ) { var stateSelIndex = subdivision_node.get( 'selectedIndex' ); var oldStateValue = subdivision_node.get( 'options' )...
function updateSubdivisions( country_node ) { YUI().use( 'node', 'io', 'io-ez', function( Y ) { var country = country_node.get( 'options' ).item( country_node.get( 'selectedIndex' ) ).get( 'value' ); Y.io.ez( 'xrowecommerce::getSubdivisions::' + country, { arguments: country_node, on: ...
this._trace("target.textContent::"+target.textContent);
MyanmarConverterExtension.updateText = function(target, prevValue, newValue){ if (!prevValue) prevValue = ""; if (!newValue) newValue = ""; var s = 0; var prevE = prevValue.length - 1; var newE = newValue.length - 1; // find common text at start for (s = 0; s < prevValue.length && s < newValue.leng...
new activity.JsEventFetcher.EventDispatcher_(this.timelineModel_);
new activity.JsEventFetcher.EventDispatcher_( this.timelineModel_, this.aggregateBrowserJS_);
activity.JsEventFetcher.prototype.updateTimelineModel_ = function(events) { // Pause the JSD so as to minimize the overhead introduced by our // own JS execution. activity.Profiler.pause(); try { if (this.isDisposed()) { return; } var dispatcher = new activity.JsEventFetcher.EventDispatcher_(th...
updateTitle: function() { this.titleRenderer.update(); this.$().css("font-weight", ""); },
updateTitle: function(cq) { this.titleRenderer.update(cq); cq.css("font-weight", ""); }
updateTitle: function() { this.titleRenderer.update(); this.$().css("font-weight", ""); },
if (key in Set('gzipOk', 'contentType') && value != this.variables[key] && this.cometResponse) {
if (updatedHeaders.contains(key) && value != this.variables[key] && this.cometResponse) {
this.updateVars = function (params) { for (param in params) { var key = varNames[param]; if (!key) continue; var value = params[param]; // if gzipOk or contentType changes value, finish up any comet response // with the previous values if (key in Set('gzipOk', 'contentType') && value != this.variables[key...
} else if(force || view._SCCFP_dirty || item !== view.content || oldIndex !== newIndex || this._invalidIndexes.contains(newIndex)) {
} else if(force || view._SCCFP_dirty || item !== view.content || oldIndex !== newIndex || SC.none(oldIndex)) {
updateView: function(view, attrs, force) { // if an attribute hash is provided to update to, use that as the target index var oldIndex = view.contentIndex, newIndex = attrs ? attrs.contentIndex : view.contentIndex, exampleView = this.exampleViewForIndex(newIndex), content = this.get('content'), item...
updateView: function(view, force) { var index = view.contentIndex,
updateView: function(view, attrs, force) { var index = attrs ? attrs.contentIndex : view.contentIndex,
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var index = view.contentIndex, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(view.c...
view.adjust({ top: -f.height });
view.adjust({ top: -f.height - this.get('rowSpacing')});
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var index = view.contentIndex, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(view.c...
if(item !== view.content) { this.unmapView(view); view.set('content', item); SC.Binding.flushPendingChanges(); this.mapView(view, index); }
if(!attrs) attrs = this.setAttributes(index, this._tempAttrs);
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var index = view.contentIndex, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(view.c...
view.set('layout', this.layoutForContentIndex(index));
this._ignore = YES; this.configureItemView(view, attrs); this.flushBindings(); this._ignore = NO; this.mapView(view, index);
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var index = view.contentIndex, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(view.c...
this.mapView(view);
this.mapView(view, view.contentIndex);
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var exampleView = this.exampleViewForIndex(view.contentIndex), pool = this.domPoolForExampleView(view.createdFromExampleV...
} else if(force || view._SCCFP_dirty || item !== view.content || oldIndex !== newIndex || SC.none(oldIndex)) {
} else if(force || view._SCCFP_dirty || item !== view.content || oldIndex !== newIndex) {
updateView: function(view, attrs, force) { // if an attribute hash is provided to update to, use that as the target index var oldIndex = view.contentIndex, newIndex = attrs ? attrs.contentIndex : view.contentIndex, exampleView = this.exampleViewForIndex(newIndex), content = this.get('content'), item...
pool = this.domPoolForExampleView(view.createdFromExampleView);
pool = this.domPoolForExampleView(view.createdFromExampleView), item = this.get('content').objectAt(view.contentIndex);
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var exampleView = this.exampleViewForIndex(view.contentIndex), pool = this.domPoolForExampleView(view.createdFromExampleV...
if(item !== view.content) { view.set('content', item); SC.Binding.flushPendingChanges(); }
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var exampleView = this.exampleViewForIndex(view.contentIndex), pool = this.domPoolForExampleView(view.createdFromExampleV...
view.set('layout', this.layoutForContentIndex(index));
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var index = view.contentIndex, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(view.c...
var exampleView = this.exampleViewForIndex(view.contentIndex),
var index = view.contentIndex, exampleView = this.exampleViewForIndex(index),
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var exampleView = this.exampleViewForIndex(view.contentIndex), pool = this.domPoolForExampleView(view.createdFromExampleV...
item = this.get('content').objectAt(view.contentIndex);
content = this.get('content'), item = content.objectAt(index);
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var exampleView = this.exampleViewForIndex(view.contentIndex), pool = this.domPoolForExampleView(view.createdFromExampleV...
if(exampleView !== view.createdFromExampleView) {
if(exampleView !== view.createdFromExampleView || index >= content.get('length') || index < 0) {
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var exampleView = this.exampleViewForIndex(view.contentIndex), pool = this.domPoolForExampleView(view.createdFromExampleV...
this._indexMap[view.contentIndex] = null; this._curShowing.remove(view.contentIndex);
this._indexMap[index] = null; this._curShowing.remove(index);
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var exampleView = this.exampleViewForIndex(view.contentIndex), pool = this.domPoolForExampleView(view.createdFromExampleV...
} else if(force || view._SCCFP_dirty || this._invalidIndexes.contains(view.contentIndex)) {
} else if(force || view._SCCFP_dirty || this._invalidIndexes.contains(index)) {
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var exampleView = this.exampleViewForIndex(view.contentIndex), pool = this.domPoolForExampleView(view.createdFromExampleV...
this.mapView(view, view.contentIndex);
this.mapView(view, index);
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var exampleView = this.exampleViewForIndex(view.contentIndex), pool = this.domPoolForExampleView(view.createdFromExampleV...
this.validate(view.contentIndex);
this.validate(index);
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var exampleView = this.exampleViewForIndex(view.contentIndex), pool = this.domPoolForExampleView(view.createdFromExampleV...
var index = attrs ? attrs.contentIndex : view.contentIndex, exampleView = this.exampleViewForIndex(index),
var oldIndex = view.contentIndex, newIndex = attrs ? attrs.contentIndex : view.contentIndex, exampleView = this.exampleViewForIndex(newIndex),
updateView: function(view, attrs, force) { // if an attribute hash is provided to update to, use that as the target index var index = attrs ? attrs.contentIndex : view.contentIndex, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(view.createdFromExampleView), content = ...
item = content.objectAt(index);
item = content.objectAt(newIndex);
updateView: function(view, attrs, force) { // if an attribute hash is provided to update to, use that as the target index var index = attrs ? attrs.contentIndex : view.contentIndex, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(view.createdFromExampleView), content = ...
if(exampleView !== view.createdFromExampleView || index >= content.get('length') || index < 0) {
if(exampleView !== view.createdFromExampleView || newIndex >= content.get('length') || newIndex < 0) {
updateView: function(view, attrs, force) { // if an attribute hash is provided to update to, use that as the target index var index = attrs ? attrs.contentIndex : view.contentIndex, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(view.createdFromExampleView), content = ...
this._indexMap[index] = null; this._curShowing.remove(index);
this._indexMap[oldIndex] = null; this._curShowing.remove(oldIndex);
updateView: function(view, attrs, force) { // if an attribute hash is provided to update to, use that as the target index var index = attrs ? attrs.contentIndex : view.contentIndex, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(view.createdFromExampleView), content = ...
} else if(force || view._SCCFP_dirty || this._invalidIndexes.contains(index)) {
} else if(force || view._SCCFP_dirty || oldIndex != newIndex || this._invalidIndexes.contains(newIndex)) {
updateView: function(view, attrs, force) { // if an attribute hash is provided to update to, use that as the target index var index = attrs ? attrs.contentIndex : view.contentIndex, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(view.createdFromExampleView), content = ...
if(!attrs) attrs = this.setAttributes(index, this._tempAttrs);
if(!attrs) attrs = this.setAttributes(newIndex, this._tempAttrs);
updateView: function(view, attrs, force) { // if an attribute hash is provided to update to, use that as the target index var index = attrs ? attrs.contentIndex : view.contentIndex, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(view.createdFromExampleView), content = ...
this.mapView(view, index);
this.mapView(view, newIndex);
updateView: function(view, attrs, force) { // if an attribute hash is provided to update to, use that as the target index var index = attrs ? attrs.contentIndex : view.contentIndex, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(view.createdFromExampleView), content = ...
this.validate(index);
this.validate(newIndex);
updateView: function(view, attrs, force) { // if an attribute hash is provided to update to, use that as the target index var index = attrs ? attrs.contentIndex : view.contentIndex, exampleView = this.exampleViewForIndex(index), pool = this.domPoolForExampleView(view.createdFromExampleView), content = ...
this.mapView(view);
updateView: function(view, force) { // if the item changed types we have to move the view to an offscreen pool (like the original fastpath) and replace it with a new view for the new type var exampleView = this.exampleViewForIndex(view.contentIndex), pool = this.domPoolForExampleView(view.createdFromExampleV...
if (!node.collapsed == !visible) {
if (node && !node.collapsed == !visible) {
updateVisibility: function () { for (let elem in values(this.elements)) if (elem.getGroup) { let value = elem.getValue ? elem.getValue.call(this) : elem.noValue || this[elem.name]; let activeGroup = this.getGroup(elem.name, value); ...
function url(path) addon.getResourceURI(path).spec;
function url(path) getURI(path).spec;
function url(path) addon.getResourceURI(path).spec;
document.getElementById("myanmarConverter.options.urlHostnameExact").selected = true;
hostExact.parentNode.selectedItem = hostExact;
urlOnSelect : function() { var urlList = document.getElementById("myanmarConverter.options.urlList"); var selectedIndex = urlList.selectedIndex; if (selectedIndex > -1) { var urlData = MyanmarConverterOptions.urlPatterns[selectedIndex]; document.getElementById("m...
document.getElementById("myanmarConverter.options.urlHostnameSuffix").selected = true;
hostSuffix.parentNode.selectedItem = hostSuffix;
urlOnSelect : function() { var urlList = document.getElementById("myanmarConverter.options.urlList"); var selectedIndex = urlList.selectedIndex; if (selectedIndex > -1) { var urlData = MyanmarConverterOptions.urlPatterns[selectedIndex]; document.getElementById("m...
document.getElementById("myanmarConverter.options.urlPathnameExact").selected = true;
pathExact.parentNode.selectItem = pathExact;
urlOnSelect : function() { var urlList = document.getElementById("myanmarConverter.options.urlList"); var selectedIndex = urlList.selectedIndex; if (selectedIndex > -1) { var urlData = MyanmarConverterOptions.urlPatterns[selectedIndex]; document.getElementById("m...
document.getElementById("myanmarConverter.options.urlPathnamePrefix").selected = true;
pathPrefix.parentNode.selectItem = pathPrefix;
urlOnSelect : function() { var urlList = document.getElementById("myanmarConverter.options.urlList"); var selectedIndex = urlList.selectedIndex; if (selectedIndex > -1) { var urlData = MyanmarConverterOptions.urlPatterns[selectedIndex]; document.getElementById("m...
urls: function (context, tags) {
urls: function (context, args, tags) {
urls: function (context, tags) { let compare = String.localeCompare; let contains = String.indexOf; if (context.ignoreCase) { compare = util.compareIgnoreCase; contains = function (a, b) a && a.toLowerCase().indexOf(b.toLowerCase()) > -1; } if (tags) ...
ulistPanels.refresh();
ulistPanel.refresh();
WakameGUI.User = function(){ var ulistPanel = new WakameGUI.UserList(); var ulogPanel = new WakameGUI.UserLog(); WakameGUI.User.superclass.constructor.call(this, { split: true, header: false, border: false, layout: 'border', items: [ulistPanel,ulogPanel] }); this.refresh = function(){ ulistPanels...
ulistPanel.refresh();
ulistPanels.refresh();
WakameGUI.User = function(){ var ulistPanel = new WakameGUI.UserList(); var ulogPanel = new WakameGUI.UserLog(); WakameGUI.User.superclass.constructor.call(this, { split: true, header: false, border: false, layout: 'border', items: [ulistPanel,ulogPanel] }); this.refresh = function(){ ulistPanel....
context.keys = { text: "name", description: "replacementText" }; context.completions = commands.getUserCommands();
context.completions = [ [command.name, command.replacementText || "function () { ... }"] for each (command in commands.getUserCommands()) ];
completion.userCommand = function userCommand(context) { context.title = ["User Command", "Definition"]; context.keys = { text: "name", description: "replacementText" }; context.completions = commands.getUserCommands(); };
this.Data.noreload = false;
this.userDropDown_Change = function(el) { $('.tablePlus').attr('src', 'media/images/table_plus.png'); //this.Data.or = []; this.Data.tid = ''; this.Data.sorting = []; this.Data.user = $(el).val(); this.setupURL(); };
return Cu.evalInSandbox("eval('with (window) {'+" + EVAL_STRING + "+'}')", context, "1.8", fileName, lineNumber);
return Cu.evalInSandbox("with (window) { eval(" + EVAL_STRING + ") }", context, "1.8", fileName, lineNumber);
userEval: function (str, context, fileName, lineNumber) { if (fileName == null) if (io.sourcing) ({ file: fileName, line: lineNumber }) = io.sourcing; else if (String.indexOf(commandline.command, str) > -1) [fileName, lineNumber] = ["[Command Line]", 1]; ...
return Cu.evalInSandbox("with (window) { eval(" + EVAL_STRING + ") }", context, "1.8", fileName, lineNumber);
return Cu.evalInSandbox("eval('with (window) {'+" + EVAL_STRING + "+'}')", context, "1.8", fileName, lineNumber);
userEval: function (str, context, fileName, lineNumber) { if (fileName == null) if (io.sourcing) ({ file: fileName, line: lineNumber }) = io.sourcing; else if (String.indexOf(commandline.command, str) > -1) [fileName, lineNumber] = ["[Command Line]", 1]; ...
return Cu.evalInSandbox(str, context, "1.8", fileName, lineNumber);
if (!window.XPCSafeJSObjectWrapper) return Cu.evalInSandbox(str, context, "1.8", fileName, lineNumber); return Cu.evalInSandbox("with (window) { with (modules) { this.eval(" + str.quote() + ") } }", context, "1.8", fileName, lineNumber);
userEval: function (str, context, fileName, lineNumber) { if (fileName == null) if (io.sourcing) ({ file: fileName, line: lineNumber }) = io.sourcing; else if (String.indexOf(commandline.command, str) > -1) [fileName, lineNumber] = ["[Command Line]", 1]; ...
if (!window.XPCSafeJSObjectWrapper)
if (window.isPrototypeOf(modules))
userEval: function (str, context, fileName, lineNumber) { if (fileName == null) if (io.sourcing) ({ file: fileName, line: lineNumber }) = io.sourcing; else if (String.indexOf(commandline.command, str) > -1) [fileName, lineNumber] = ["[Command Line]", 1]; ...
this.Data.noreload = false;
this.userListItem_Click = function(el) { this.Data.user = $(el).text(); this.setupURL(); };
$("#utrTemplateManager").hide();
function utrIntro(){ historyAction = new Array();//Reset history of actions pathProperties = new Array(); $("#divInitialInstances").html(""); $("#contextClasses").html(""); $("#contextProperties").html(""); $("#propertyBinding").hide(); $("#divPathWizard").hide(); $("#menuPathBuilder").hide()...
historyAction = new Array();
function utrIntro(){ pathProperties = new Array(); $("#divInitialInstances").html(""); $("#contextClasses").html(""); $("#contextProperties").html(""); $("#propertyBinding").hide(); $("#divPathWizard").hide(); $("#menuPathBuilder").hide(); $("#pieStat").hide();//remove session //$("#tablePrev...
a("}"),A,b)}function x(t){t.type=="function"?r():e(f(["function"],[r]))}function y(t){function I(P){P.type==","&&e(t,I)}return function(){c(t,I)}}function A(t){t.type=="}"?e():c(h,A)}function v(t){t.content=="array"&&e(f("("),f(")"))}function z(t){t.content=="="&&e(f(["t_string","string","number","atom"],[v,null,null])...
l.nextSibling)for(var z=l.offsetTop+l.offsetHeight;j.offsetHeight&&z-3>A;)h("&nbsp;");if(l)l=l.nextSibling;if((new Date).getTime()>n){o();u=setTimeout(r,k.options.lineNumberDelay);return}}for(;q;)h(B++);o();b()}}function v(n){b();c(n);l=p.firstChild;q=j.firstChild;A=0;B=k.options.firstLineNumber;r()}function w(){u&&cle...
a("}"),A,b)}function x(t){t.type=="function"?r():e(f(["function"],[r]))}function y(t){function I(P){P.type==","&&e(t,I)}return function(){c(t,I)}}function A(t){t.type=="}"?e():c(h,A)}function v(t){t.content=="array"&&e(f("("),f(")"))}function z(t){t.content=="="&&e(f(["t_string","string","number","atom"],[v,null,null])...
" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(za," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.opt...
this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{...
" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(za," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.opt...
validate: function(start, range) { this._invalidIndexes.remove(start, range);
validate: function(index) { var view = this._indexMap[index]; if(view) view._SCCFP_dirty = NO;
validate: function(start, range) { this._invalidIndexes.remove(start, range); },
validate: function(index) { var invalidIndexes = this._invalidIndexes; return invalidIndexes.remove(index);
validate: function(start, range) { this._invalidIndexes.remove(start, range);
validate: function(index) { var invalidIndexes = this._invalidIndexes; return invalidIndexes.remove(index); },
if(invalidIndexes.isIndexSet) { invalidIndexes.remove(index); } return invalidIndexes;
return invalidIndexes.remove(index);
validate: function(index) { var invalidIndexes = this._invalidIndexes; if(invalidIndexes.isIndexSet) { invalidIndexes.remove(index); } return invalidIndexes; },
if(email != "" && ! /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)) {
if(email != "" && ! /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,6})+$/.test(email)) {
function validate(type) { var form = document.forms['signupform']; var pw1 = form.pw1.value; var pw2 = form.pw2.value; var email = form.email.value; if(type == 'RESET') { if(! confirm(gt.gettext("This will PERMANENTLY delete ALL YOUR FLIGHTS. Have you exported a backup copy, and are you sure you want to do thi...
return Object.keys(util.compileMacro(value).seen).every(function (k) ["column", "file", "line"].indexOf(k) >= 0)
return Object.keys(util.compileMacro(value).seen).every(function (k) ["column", "file", "line"].indexOf(k) >= 0);
validator: function (value) { this.format({}, value); return Object.keys(util.compileMacro(value).seen).every(function (k) ["column", "file", "line"].indexOf(k) >= 0) }
var val = this.get('value'); if (val && val.length>0) this.set('hintON', NO); else this.set('hintON', YES);
var val = this.get('value'), max; if (val && val.length>0) { this.set('hintON', NO); max = this.get('maxLength'); if(!SC.browser.safari && val.length>max){ this.set('value', val.substr(0, max)); } }else this.set('hintON', YES);
valueObserver: function(){ // console.log('value observer'); var val = this.get('value'); if (val && val.length>0) this.set('hintON', NO); else this.set('hintON', YES); }.observes('value')
{
function variableExists(variables, bindingType, value){//alert(variables.toSource()); for (var i in variables) { //alert("variables[i].bindingType: " + variables[i].bindingType + "\nbindingType.type: " + bindingType.type + "\nvariables[i].variable: " + variables[i].variable + "\nvalue: " + value); if (var...
}
function variableExists(variables, bindingType, value){//alert(variables.toSource()); for (var i in variables) { //alert("variables[i].bindingType: " + variables[i].bindingType + "\nbindingType.type: " + bindingType.type + "\nvariables[i].variable: " + variables[i].variable + "\nvalue: " + value); if (var...
callLater(0.1, Form.resize);
callLater(0.5, Form.resize);
video: function(){ var ps = this.ps; var title = this.savers['item'] = this.title = new Title(ps); var link = this.savers['itemUrl'] = this.link = new Link(ps, true); var tags = this.savers['tags'] = this.tags = new Tags(ps, true); var desc = this.savers['description'] = this.desc = new Desc(ps, tr...
viewportOffset: function(forElement) { var valueT = 0, valueL = 0; var element = forElement; do { valueT += element.offsetTop || 0; valueL += element.offsetLeft || 0; if (element.offsetParent == document.body && Element.getStyle(element, 'position') == 'absolute') break; } while (element = element.offsetParent); ...
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(...
viewportOffset: function(forElement) { var valueT = 0, valueL = 0; var element = forElement; do { valueT += element.offsetTop || 0; valueL += element.offsetLeft || 0; // Safari fix if (element.offsetParent == document.body && Element.getStyle(element, 'position') == 'absolute') br...
this.tasksTable = Array(); this.drawJobsTable();
$("#siteTabs").tabs("enable",1); $("#siteTabs").tabs("select",0); this.mainsTable = Array(); this.drawSubsTable();
this.viewUpdater = function() { var _Settings = this.Settings.Application; // Shortcut if (this.Data.user || !_Settings.userSelection) { if (this.Data.tid) { // Show jobs this.tasksTable = Array(); this.drawJobsTable(); } el...
$("#siteTabs").tabs("enable",1); $("#siteTabs").tabs("select",0);
this.viewUpdater = function() { var _Settings = this.Settings.Application; // Shortcut if (this.Data.user || !_Settings.userSelection) { if (this.Data.tid) { // Show jobs this.tasksTable = Array(); this.drawJobsTable(); } el...
this.jobsTable = Array(); this.drawTaskTable();
this.subsTable = Array(); this.drawMainsTable();
this.viewUpdater = function() { var _Settings = this.Settings.Application; // Shortcut if (this.Data.user || !_Settings.userSelection) { if (this.Data.tid) { // Show jobs this.tasksTable = Array(); this.drawJobsTable(); } el...
this.tasksTable = Array(); this.jobsTable = Array();
this.mainsTable = Array(); this.subsTable = Array();
this.viewUpdater = function() { var _Settings = this.Settings.Application; // Shortcut if (this.Data.user || !_Settings.userSelection) { if (this.Data.tid) { // Show jobs this.tasksTable = Array(); this.drawJobsTable(); } el...
f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var qb=K(),rb=/<script(.|\s)*?\/...
a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month...
f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var qb=K(),rb=/<script(.|\s)*?\/...
visible: function(element) { return $(element).style.display != 'none'; },
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(...
visible: function(element) { return $(element).style.display != 'none'; },