rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
last.width == l.width && last.height == l.height | last.width == l.width && l.width !== undefined && last.height == l.height && l.height !== undefined | flowPositionView: function(idx, item, x, y) { var spacing = item._scfl_cachedFlowSpacing, size = item._scfl_cachedCalculatedFlowSize; var last = this._scfl_itemLayouts[SC.guidFor(item)]; var l = { left: x + spacing.left, top: y + spacing.top, width: size.width, height: size.hei... |
item.set('layout', l); | item.adjust(l); | flowPositionView: function(idx, item, x, y) { var spacing = item._scfl_cachedFlowSpacing, size = item._scfl_cachedCalculatedFlowSize; var last = this._scfl_itemLayouts[SC.guidFor(item)]; var l = { left: x + spacing.left, top: y + spacing.top, width: size.width, height: size.hei... |
var spacing = item._scfl_cachedFlowSpacing, size = item._scfl_cachedFlowSize; | var spacing = item._scfl_cachedFlowSpacing, size = item._scfl_cachedCalculatedFlowSize; | flowPositionView: function(idx, item, x, y) { var spacing = item._scfl_cachedFlowSpacing, size = item._scfl_cachedFlowSize; var last = this._scfl_itemLayouts[SC.guidFor(item)]; var l = { left: x + spacing.left, top: y + spacing.top, width: size.width, height: size.height }; ... |
item.set("layout", l); | item.adjust(l); | flowPositionView: function(idx, item, x, y) { var spacing = item._scfl_cachedFlowSpacing, size = item._scfl_cachedFlowSize; var last = this._scfl_itemLayouts[SC.guidFor(item)]; var l = { left: x + spacing.left, top: y + spacing.top, width: size.width, height: size.height }; ... |
item.updateLayout(); | flowPositionView: function(idx, item, x, y) { var spacing = item._scfl_cachedFlowSpacing, size = item._scfl_cachedFlowSize; var last = this._scfl_itemLayouts[SC.guidFor(item)]; var l = { left: x + spacing.left, top: y + spacing.top, width: size.width, height: size.height }; ... | |
flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; | flowRow: function(row, rowOffset, rowSize, availableRowLength, padding, primary, secondary, align) { | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
if (primary === 'left') availableRowLength -= padding['left'] + padding['right']; else availableRowLength -= padding['top'] + padding['bottom']; | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... | |
spacePerUnit = (rowSpace - rowLength) / totalSpaceUnits; rowLength = rowSpace; | spacePerUnit = (availableRowLength - rowLength) / totalSpaceUnits; rowLength = availableRowLength; | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
var x, y, itemOffset = 0; | var x = padding['left'], y = padding['top'], width, height, itemSize = 0; if (primary === 'left') y = rowOffset; else x = rowOffset; | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
if (align === SC.ALIGN_RIGHT || align === SC.ALIGN_BOTTOM) itemOffset = (rowSpace - rowLength); else if (align === SC.ALIGN_CENTER || align === SC.ALIGN_MIDDLE) itemOffset = (rowSpace - rowLength) / 2; | if (align === SC.ALIGN_RIGHT || align === SC.ALIGN_BOTTOM) x = (availableRowLength - rowLength); else if (align === SC.ALIGN_CENTER || align === SC.ALIGN_MIDDLE) x = (availableRowLength - rowLength) / 2; | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
if (primary == "left") { x = itemOffset + padding.left; y = rowOffset + padding.top; } else { x = rowOffset + padding.left; y = itemOffset + padding.top; | width = undefined; height = undefined; if (!this.get('canWrap') && item.get("fillHeight") && primary === "left") { height = rowSize - item._scfl_cachedSpacedSize.height; } if (!this.get('canWrap') && item.get("fillWidth") && primary === "top") { width = rowSize - item._scfl_cachedSpacedSize.width; | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
if (item.get("fillHeight") && secondary === "top") item._scfl_cachedFlowSize["height"] = rowSize; if (item.get("fillWidth") && secondary === "left") item._scfl_cachedFlowSize["width"] = rowSize; | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... | |
if (item.get("isSpacer")) { | if (item.get('isSpacer')) { | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
var spacerSize = item._scfl_cachedSpacedSize[primary === "left" ? "width" : "height"]; | itemSize = item._scfl_cachedSpacedSize[primary === 'left' ? 'width' : 'height']; | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
spacerSize = Math.max(spacerSize, spacePerUnit * (item.get("spaceUnits") || 1)); itemOffset += spacerSize; | itemSize = Math.max(itemSize, spacePerUnit * (item.get('spaceUnits') || 1)); | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
item._scfl_cachedCalculatedFlowSize = {}; item._scfl_cachedCalculatedFlowSize[primary === "left" ? "width" : "height"] = spacerSize; item._scfl_cachedCalculatedFlowSize[secondary === "left" ? "width" : "height"] = rowSize; | if (primary === "left") { width = itemSize; } else { height = itemSize; } | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
itemOffset += item._scfl_cachedSpacedSize[primary === "left" ? "width" : "height"]; item._scfl_cachedCalculatedFlowSize = item._scfl_cachedFlowSize; | if (primary === "left") { itemSize = item._scfl_cachedSpacedSize.width; } else { itemSize = item._scfl_cachedSpacedSize.height; } | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
this.flowPositionView(idx, item, x, y); | this.flowPositionView(idx, item, x, y, width, height); if (primary === 'left') x += itemSize; else y += itemSize; | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
if (align === SC.ALIGN_JUSTIFY) itemOffset += spacePerUnit; | if (align === SC.ALIGN_JUSTIFY) x += spacePerUnit; | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
if (primary === 'left') return x; return y; | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... | |
rowLength += item._scfl_cachedSpacedSize[primary === "left" ? "width" : "height"]; | else rowLength += item._scfl_cachedSpacedSize[primary === "left" ? "width" : "height"]; | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
item._scfl_cachedFlowSize[primary === "left" ? "width" : "height"] = spacerSize; item._scfl_cachedFlowSize[secondary === "left" ? "width" : "height"] = rowSize; | item._scfl_cachedCalculatedFlowSize = {}; item._scfl_cachedCalculatedFlowSize[primary === "left" ? "width" : "height"] = spacerSize; item._scfl_cachedCalculatedFlowSize[secondary === "left" ? "width" : "height"] = rowSize; | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... |
item._scfl_cachedCalculatedFlowSize = item._scfl_cachedFlowSize; | flowRow: function(row, rowSpace, padding, rowOffset, rowSize, primary, secondary, align) { rowOffset += padding[secondary]; // if it is justified, we'll add padding between ALL views. var item, len = row.length, idx, layout, rowLength = 0, totalSpaceUnits = 0, spacePerUnit = 0; // first, determine... | |
if (align === SC.ALIGN_RIGHT || align === SC.ALIGN_BOTTOM) x = (availableRowLength - rowLength); else if (align === SC.ALIGN_CENTER || align === SC.ALIGN_MIDDLE) x = (availableRowLength - rowLength) / 2; | if (align === SC.ALIGN_RIGHT || align === SC.ALIGN_BOTTOM) { if (primary === 'left') x = (availableRowLength - rowLength - padding.right); else y = (availableRowLength - rowLength - padding.bottom); } else if (align === SC.ALIGN_CENTER || align === SC.ALIGN_MIDDLE) { if (primary === 'left') x = (availableRowLength - pa... | flowRow: function(row, rowOffset, rowSize, availableRowLength, padding, primary, secondary, align) { // we deal with values already offset for padding // therefore, we must adjust availableRowLength if (primary === 'left') availableRowLength -= padding['left'] + padding['right']; else availableRowLeng... |
if (!this.get('canWrap') && item.get("fillHeight") && primary === "left") { | if (item.get("fillHeight") && primary === "left") { | flowRow: function(row, rowOffset, rowSize, availableRowLength, padding, primary, secondary, align) { // we deal with values already offset for padding // therefore, we must adjust availableRowLength if (primary === 'left') availableRowLength -= padding['left'] + padding['right']; else availableRowLeng... |
if (!this.get('canWrap') && item.get("fillWidth") && primary === "top") { | if (item.get("fillWidth") && primary === "top") { | flowRow: function(row, rowOffset, rowSize, availableRowLength, padding, primary, secondary, align) { // we deal with values already offset for padding // therefore, we must adjust availableRowLength if (primary === 'left') availableRowLength -= padding['left'] + padding['right']; else availableRowLeng... |
if (align === SC.ALIGN_JUSTIFY) x += spacePerUnit; | if (align === SC.ALIGN_JUSTIFY) { if (primary === 'left') x += spacePerUnit; else y += spacePerUnit; } | flowRow: function(row, rowOffset, rowSize, availableRowLength, padding, primary, secondary, align) { // we deal with values already offset for padding // therefore, we must adjust availableRowLength if (primary === 'left') availableRowLength -= padding['left'] + padding['right']; else availableRowLeng... |
var fs = SC.clone(view.get("flowSize")); if (!SC.none(fs)) { var frame = this.get("frame"), padding = this.get('_scfl_validFlowPadding'), spacing = this.flowSpacingForView(idx, view); var expandsHorizontal = (this.get("layoutDirection") === SC.LAYOUT_HORIZONTAL && !this.get("canWrap")) || (this.get("layoutDirection"... | flowSizeForView: function(idx, view) { // first try flowSize var fs = SC.clone(view.get("flowSize")); if (!SC.none(fs)) { // if we have a flow size, adjust for a) width/heightPercentage and b) missing params. var frame = this.get("frame"), padding = this.get('_scfl_validFlowPadding'), spa... | |
if (view._scfl_cachedCalculatedFlowSize && view._scfl_cachedCalculatedFlowSize.width == f.width) { calc.width = view._scfl_cachedFlowSize.width } else { calc.width = f.width; } | calc.width = f.width; | flowSizeForView: function(idx, view) { // first try flowSize var fs = SC.clone(view.get("flowSize")); if (!SC.none(fs)) { // if we have a flow size, adjust for a) width/heightPercentage and b) missing params. var frame = this.get("frame"), padding = this.get('_scfl_validFlowPadding'), spa... |
if (view._scfl_cachedCalculatedFlowSize && view._scfl_cachedCalculatedFlowSize.height == f.height) { calc.height = view._scfl_cachedFlowSize.height } else { calc.height = f.height; } | calc.height = f.height; | flowSizeForView: function(idx, view) { // first try flowSize var fs = SC.clone(view.get("flowSize")); if (!SC.none(fs)) { // if we have a flow size, adjust for a) width/heightPercentage and b) missing params. var frame = this.get("frame"), padding = this.get('_scfl_validFlowPadding'), spa... |
if (view.get('isSpacer')) { if (this.get('layoutDirection') === SC.LAYOUT_HORIZONTAL) calc.width = 0; else calc.height = 0; } if ( !this.get('canWrap') && this.get('layoutDirection') === SC.LAYOUT_HORIZONTAL && view.get('fillHeight') ) { calc.height = 0; } else if ( !this.get('canWrap') && this.get('layoutDirection')... | flowSizeForView: function(idx, view) { // first try flowSize var fs = SC.clone(view.get("flowSize")); if (!SC.none(fs)) { // if we have a flow size, adjust for a) width/heightPercentage and b) missing params. var frame = this.get("frame"), padding = this.get('_scfl_validFlowPadding'), spa... | |
if (view.get("isSpacer")) return { width: 0, height: 0 }; | flowSizeForView: function(idx, view) { // first try flowSize var fs = SC.clone(view.get("flowSize")); if (!SC.none(fs)) { // if we have a flow size, adjust for a) width/heightPercentage and b) missing params. var frame = this.get("frame"), padding = this.get("flowPadding"), spacing = this.flowSpaci... | |
var frame = this.get("frame"), padding = this.get("flowPadding"), spacing = this.flowSpacingForView(idx, view); | var frame = this.get("frame"), padding = this.get('_scfl_validFlowPadding'), spacing = this.flowSpacingForView(idx, view); | flowSizeForView: function(idx, view) { // first try flowSize var fs = SC.clone(view.get("flowSize")); if (!SC.none(fs)) { // if we have a flow size, adjust for a) width/heightPercentage and b) missing params. var frame = this.get("frame"), padding = this.get("flowPadding"), spacing = this.flowSpaci... |
if (cw) calc.width = cw; else calc.width = f.width; | if (cw) { calc.width = cw; } else { if (view._scfl_cachedCalculatedFlowSize && view._scfl_cachedCalculatedFlowSize.width == f.width) { calc.width = view._scfl_cachedFlowSize.width } else { calc.width = f.width; } } | flowSizeForView: function(idx, view) { // first try flowSize var fs = SC.clone(view.get("flowSize")); if (!SC.none(fs)) { // if we have a flow size, adjust for a) width/heightPercentage and b) missing params. var frame = this.get("frame"), padding = this.get("flowPadding"), spacing = this.flowSpaci... |
if (ch) calc.height = ch; else calc.height = f.height; | if (ch) { calc.height = ch; } else { if (view._scfl_cachedCalculatedFlowSize && view._scfl_cachedCalculatedFlowSize.height == f.height) { calc.height = view._scfl_cachedFlowSize.height } else { calc.height = f.height; } } | flowSizeForView: function(idx, view) { // first try flowSize var fs = SC.clone(view.get("flowSize")); if (!SC.none(fs)) { // if we have a flow size, adjust for a) width/heightPercentage and b) missing params. var frame = this.get("frame"), padding = this.get("flowPadding"), spacing = this.flowSpaci... |
if (ch) cal.height = ch; | if (ch) calc.height = ch; | flowSizeForView: function(idx, view) { // first try flowSize var fs = SC.clone(view.get("flowSize")); if (!SC.none(fs)) { // if we have a flow size, adjust for a) width/heightPercentage and b) missing params. var frame = this.get("frame"), padding = this.get("flowPadding"), spacing = this.flowSpaci... |
var cw = view.get("calculatedWidth"), ch = view.get("calculatedHeight"); | var cw = view.get('calculatedWidth'), ch = view.get('calculatedHeight'); | flowSizeForView: function(idx, view) { var cw = view.get("calculatedWidth"), ch = view.get("calculatedHeight"); var calc = {}, f = view.get("frame"); view._scfl_lastFrame = f; // if there is a calculated width, use that. NOTE: if calculatedWidth === 0, // it is invalid. This is the practice in ... |
var calc = {}, f = view.get("frame"); | var calc = {}, f = view.get('frame'); | flowSizeForView: function(idx, view) { var cw = view.get("calculatedWidth"), ch = view.get("calculatedHeight"); var calc = {}, f = view.get("frame"); view._scfl_lastFrame = f; // if there is a calculated width, use that. NOTE: if calculatedWidth === 0, // it is invalid. This is the practice in ... |
!this.get('canWrap') && | flowSizeForView: function(idx, view) { var cw = view.get("calculatedWidth"), ch = view.get("calculatedHeight"); var calc = {}, f = view.get("frame"); view._scfl_lastFrame = f; // if there is a calculated width, use that. NOTE: if calculatedWidth === 0, // it is invalid. This is the practice in ... | |
if (!SC.none(cw) && !SC.none("calculatedHeight")) return { width: cw, height: ch }; | if (!SC.none(cw) && !SC.none(ch)) return { width: cw, height: ch }; | flowSizeForView: function(idx, view) { // first try flowSize var fs = SC.clone(view.get("flowSize")); if (!SC.none(fs)) { // if we have a flow size, adjust for a) width/heightPercentage and b) missing params. var frame = this.get("frame"), padding = this.get("flowPadding"), spacing = this.flowSpaci... |
if (!SC.none(cw) && !SC.none(ch)) return { width: cw, height: ch }; | var calc = {}, f = view.get("frame"); | flowSizeForView: function(idx, view) { // first try flowSize var fs = SC.clone(view.get("flowSize")); if (!SC.none(fs)) { // if we have a flow size, adjust for a) width/heightPercentage and b) missing params. var frame = this.get("frame"), padding = this.get("flowPadding"), spacing = this.flowSpaci... |
var f = view.get("frame"); return { width: f.width, height: f.height }; | if (cw) calc.width = cw; else calc.width = f.width; if (ch) cal.height = ch; else calc.height = f.height; return calc; | flowSizeForView: function(idx, view) { // first try flowSize var fs = SC.clone(view.get("flowSize")); if (!SC.none(fs)) { // if we have a flow size, adjust for a) width/heightPercentage and b) missing params. var frame = this.get("frame"), padding = this.get("flowPadding"), spacing = this.flowSpaci... |
calc.width = f.width; | if (view._scfl_cachedCalculatedFlowSize && view._scfl_cachedCalculatedFlowSize.width == f.width) { calc.width = view._scfl_cachedFlowSize.width; } else { calc.width = f.width; } | flowSizeForView: function(idx, view) { var cw = view.get('calculatedWidth'), ch = view.get('calculatedHeight'); var calc = {}, f = view.get('frame'); view._scfl_lastFrame = f; // if there is a calculated width, use that. NOTE: if calculatedWidth === 0, // it is invalid. This is the practice in ... |
calc.height = f.height; | if (view._scfl_cachedCalculatedFlowSize && view._scfl_cachedCalculatedFlowSize.height == f.height) { calc.height = view._scfl_cachedFlowSize.height; } else { calc.height = f.height; } | flowSizeForView: function(idx, view) { var cw = view.get('calculatedWidth'), ch = view.get('calculatedHeight'); var calc = {}, f = view.get('frame'); view._scfl_lastFrame = f; // if there is a calculated width, use that. NOTE: if calculatedWidth === 0, // it is invalid. This is the practice in ... |
if (view.get("isSpacer")) return {left:0,top:0,right:0,bottom:0}; var fm = view.get("flowSpacing"); if (!SC.none(fm)) return fm; return this.get("defaultFlowSpacing"); | var spacing = view.get("flowSpacing"); if (SC.none(spacing)) spacing = this.get("defaultFlowSpacing"); if (SC.typeOf(spacing) === SC.T_NUMBER) { spacing = { left: spacing, right: spacing, bottom: spacing, top: spacing }; } else { spacing['left'] = spacing['left'] || 0; spacing['right'] = spacing['right'] || 0; spacing... | flowSpacingForView: function(idx, view) { if (view.get("isSpacer")) return {left:0,top:0,right:0,bottom:0}; var fm = view.get("flowSpacing"); if (!SC.none(fm)) return fm; return this.get("defaultFlowSpacing"); }, |
for ( i=0; i<l; i++ ) { | for ( var i=0; i<len; i++ ) { | flush: function(object) { // flush any observers that we tried to setup but didn't have a path yet var oldQueue = this.queue ; if (oldQueue && oldQueue.length > 0) { var newQueue = (this.queue = []) ; for ( var i=0,l=oldQueue.length; i<l; i++ ) { var item = oldQueue[i]; if ( !item ) c... |
if ( queue && queue.members.length ) { | if ( queue && queue.getMembers().length ) { | flushApplicationQueues: function() { var hadContent = NO, // execute any methods in the invokeQueue. queue = this._invokeQueue; if ( queue && queue.members.length ) { this._invokeQueue = null; // reset so that a new queue will be created hadContent = YES ; // needs to execute again ... |
fnContentChange: function(el) { thisRef.tasksTableContent_change(el) }, | fnContentChange: function(el) { thisRef.subsTableContent_change(el) }, | fnContentChange: function(el) { thisRef.tasksTableContent_change(el) }, |
fnERClose: function(dataID) { thisRef.taskClose_click(dataID) }, | fnERClose: function(dataID) { thisRef.erClose_click(dataID) }, | fnERClose: function(dataID) { thisRef.taskClose_click(dataID) }, |
fnERContent:function(dataID){ return thisRef.taskExpand_click(dataID) }, | fnERContent:function(dataID){ return thisRef.expand_click(dataID) }, | fnERContent:function(dataID){ return thisRef.taskExpand_click(dataID) }, |
fnTableSorting: function(el) { thisRef.tableSorting_click(el,thisRef.tasksTable[0]) }, | fnTableSorting: function(el) { thisRef.tableSorting_click(el,thisRef.subsTable[0]) }, | fnTableSorting: function(el) { thisRef.tableSorting_click(el,thisRef.tasksTable[0]) }, |
services.focus.setFocus(elem, flags || Ci.nsIFocusManager.FLAG_BYMOUSE|Ci.nsIFocusManager.FLAG_BYMOVEFOCUS); | services.focus.setFocus(elem, flags || Ci.nsIFocusManager.FLAG_BYMOUSE); | focus: function (elem, flags) { try { if (elem instanceof Document) elem = elem.defaultView; if (elem instanceof Window) services.focus.clearFocus(elem); else services.focus.setFocus(elem, flags || Ci.nsIFocusManager.FLAG_BYMOUSE|C... |
node.focus(); | dactyl.focus(node); | focus: function () { if (this.lastRange) var node = util.evaluateXPath(RangeFind.selectNodePath, this.range.document, this.lastRange.commonAncestorContainer).snapshotItem(0); if (node) { node.focus(); // Re-highlight collapsed s... |
this.search(null, false); | this.selectedRange = this.lastRange; | focus: function() { if(this.lastRange) var node = util.evaluateXPath(RangeFind.selectNodePath, this.range.document, this.lastRange.commonAncestorContainer).snapshotItem(0); if(node) { node.focus(); this.search(null, false); // R... |
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... |
focus: function(element) { $(element).focus(); 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(... | focus: function(element) { $(element).focus(); return element; }, |
services.focus.setFocus(elem, flags || services.focus.FLAG_BYMOUSE); | services.focus.setFocus(elem, flags); | focus: function (elem, flags) { try { if (elem instanceof Document) elem = elem.defaultView; if (elem instanceof Window) services.focus.clearFocus(elem); else services.focus.setFocus(elem, flags || services.focus.FLAG_BYMOUSE); ... |
if (elem instanceof Window && !Editor.getEditor(window)) return true; | focusAllowed: function (elem) { let win = elem.ownerDocument && elem.ownerDocument.defaultView || elem; return !options["strictfocus"] || win.dactylFocusAllowed; }, | |
focusChange: function () { | focusChange: function (win) { | focusChange: function () { // Switch to -- PLAYER -- mode for Songbird Media Player. if (config.isPlayerWindow) dactyl.mode = modes.PLAYER; else dactyl.mode = modes.NORMAL; }, |
dactyl.mode = modes.PLAYER; | modes.set(modes.PLAYER); | focusChange: function () { // Switch to -- PLAYER -- mode for Songbird Media Player. if (config.isPlayerWindow) dactyl.mode = modes.PLAYER; else dactyl.mode = modes.NORMAL; }, |
dactyl.mode = modes.NORMAL; | if (modes.main == modes.PLAYER) modes.pop(); | focusChange: function () { // Switch to -- PLAYER -- mode for Songbird Media Player. if (config.isPlayerWindow) dactyl.mode = modes.PLAYER; else dactyl.mode = modes.NORMAL; }, |
let elem = config.mainWidget || window.content; | let elem = config.mainWidget || content; | focusContent: function (clearFocusedElement) { if (window != services.windowWatcher.activeWindow) return; let win = document.commandDispatcher.focusedWindow; let elem = config.mainWidget || window.content; // TODO: make more generic try { if (this.has("mail")... |
if (frame && frame.top == window.content && !Editor.getEditor(frame)) | if (frame && frame.top == content && !Editor.getEditor(frame)) | focusContent: function (clearFocusedElement) { if (window != services.windowWatcher.activeWindow) return; let win = document.commandDispatcher.focusedWindow; let elem = config.mainWidget || window.content; // TODO: make more generic try { if (this.has("mail")... |
else if (this.has("tabs")) { | else { | focusContent: function (clearFocusedElement) { if (window != services.get("windowWatcher").activeWindow) return; let elem = config.mainWidget || window.content; // TODO: make more generic try { if (this.has("mail") && !config.isComposeWindow) { let i ... |
if (frame && frame.top == window.content) | if (frame && frame.top == window.content && !Editor.getEditor(frame)) | focusContent: function (clearFocusedElement) { if (window != services.get("windowWatcher").activeWindow) return; let elem = config.mainWidget || window.content; // TODO: make more generic try { if (this.has("mail") && !config.isComposeWindow) { let i ... |
if (clearFocusedElement && dactyl.focus) dactyl.focus.blur(); | if (clearFocusedElement) if (dactyl.focus) dactyl.focus.blur(); else if (win) { win.blur(); if (win.frameElement) win.frameElement.blur(); } if (elem instanceof Window && Editor.getEditor(elem)) elem = window; | focusContent: function (clearFocusedElement) { if (window != services.get("windowWatcher").activeWindow) return; let elem = config.mainWidget || window.content; // TODO: make more generic try { if (this.has("mail") && !config.isComposeWindow) { let i ... |
if (clearFocusedElement) if (dactyl.focus) dactyl.focus.blur(); else if (win && Editor.getEditor(win)) { | if (clearFocusedElement) { services.focus.clearFocus(window); if (win && Editor.getEditor(win)) { | focusContent: function (clearFocusedElement) { if (window != services.windowWatcher.activeWindow) return; let win = document.commandDispatcher.focusedWindow; let elem = config.mainWidget || content; // TODO: make more generic try { if (this.has("mail") && !co... |
if (elem && elem != dactyl.focus) elem.focus(); }, | if (elem && elem != dactyl.focusedElement) dactyl.focus(elem); }, | focusContent: function (clearFocusedElement) { if (window != services.windowWatcher.activeWindow) return; let win = document.commandDispatcher.focusedWindow; let elem = config.mainWidget || content; // TODO: make more generic try { if (this.has("mail") && !co... |
elem.contentWindow.focus(); else if (elem instanceof HTMLInputElement && elem.type == "file") { | elem = elem.contentWindow; elem.dactylFocusAllowed = true; if (elem instanceof HTMLInputElement && elem.type == "file") { | focusElement: function (elem) { let win = elem.ownerDocument && elem.ownerDocument.defaultView || elem; win.dactylFocusAllowed = true; if (isinstance(elem, [HTMLFrameElement, HTMLIFrameElement])) elem.contentWindow.focus(); else if (elem instanceof HTMLInputElement && elem.typ... |
if (elem instanceof Window && elem.getSelection() && !elem.getSelection().rangeCount) elem.getSelection().addRange(RangeFind.endpoint( RangeFind.nodeRange(elem.document.body || elem.document.documentElement), true)); | focusElement: function (elem) { let win = elem.ownerDocument && elem.ownerDocument.defaultView || elem; win.dactylFocusAllowed = true; if (isinstance(elem, [HTMLFrameElement, HTMLIFrameElement])) elem.contentWindow.focus(); else if (elem instanceof HTMLInputElement && elem.typ... | |
elem.focus(); | dactyl.focus(elem); | focusElement: function (elem) { let win = elem.ownerDocument && elem.ownerDocument.defaultView || elem; win.dactylFocusAllowed = true; if (isinstance(elem, [HTMLFrameElement, HTMLIFrameElement])) elem = elem.contentWindow; elem.dactylFocusAllowed = true; if (elem instan... |
elem.contentWindow.focus(); | Buffer.focusedWindow = elem.contentWindow; | focusElement: function (elem) { let doc = window.content.document; if (elem instanceof HTMLFrameElement || elem instanceof HTMLIFrameElement) elem.contentWindow.focus(); else if (elem instanceof HTMLInputElement && elem.type == "file") { Buffer.openUploadPrompt(elem); ... |
elem.dispatchEvent(events.create(elem.ownerDocument, "mouseover", { screenX: x, screenY: y })); | events.dispatch(elem, events.create(elem.ownerDocument, "mouseover", { screenX: x, screenY: y })); | focusElement: function (elem) { let win = elem.ownerDocument && elem.ownerDocument.defaultView || elem; win.dactylFocusAllowed = true; if (isinstance(elem, [HTMLFrameElement, HTMLIFrameElement])) elem = elem.contentWindow; elem.dactylFocusAllowed = true; if (elem instan... |
dactyl.focus(elem); | if (isinstance(elem, [HTMLInputElement, XULTextBoxElement])) var flags = services.focus.FLAG_BYMOUSE; else flags = services.focus.FLAG_SHOWRING; dactyl.focus(elem, flags); | focusElement: function (elem) { let win = elem.ownerDocument && elem.ownerDocument.defaultView || elem; win.document.dactylFocusAllowed = true; if (isinstance(elem, [HTMLFrameElement, HTMLIFrameElement])) elem = elem.contentWindow; if (elem.document) elem.document.d... |
focusFirstElement: function(form) { form = $(form); form.findFirstElement().activate(); 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(... | focusFirstElement: function(form) { form = $(form); form.findFirstElement().activate(); return form; }, |
ret = Array.some(window.content.frames, followFrame); | ret = Array.some(buffer.allFrames.frames, followFrame); | followDocumentRelationship: function (rel) { let regexes = options.get(rel + "pattern").values .map(function (re) RegExp(re, "i")); function followFrame(frame) { function iter(elems) { for (let i = 0; i < elems.length; i++) if (e... |
ret = Array.some(window.content.frames, followFrame); | ret = Array.some(buffer.allFrames.slice(1), followFrame); | followDocumentRelationship: function (rel) { let regexes = options.get(rel + "pattern").values .map(function (re) RegExp(re, "i")); function followFrame(frame) { function iter(elems) { for (let i = 0; i < elems.length; i++) if (e... |
let res = util.evaluateXPath(options.get("hinttags").defaultValue, frame.document); | let res = util.evaluateXPath(options.get("hinttags").defaultValues, frame.document); | followDocumentRelationship: function (rel) { let regexes = options[rel + "pattern"].map(function (re) RegExp(re, "i")); function followFrame(frame) { function iter(elems) { for (let i = 0; i < elems.length; i++) if (elems[i].rel.toLowerCase() == rel || elem... |
let res = util.evaluateXPath(options.get("hinttags").defaultValue, frame.document); | let res = util.evaluateXPath(options.get("hinttags").defaultValues, frame.document); | function followFrame(frame) { function iter(elems) { for (let i = 0; i < elems.length; i++) if (elems[i].rel.toLowerCase() == rel || elems[i].rev.toLowerCase() == rel) yield elems[i]; } // <link>s have higher priority than... |
if (isinstance(elem [HTMLFrameElement, HTMLIFrameElement])) { | if (isinstance(elem, [HTMLFrameElement, HTMLIFrameElement])) { | followLink: function (elem, where) { let doc = elem.ownerDocument; let view = doc.defaultView; let offsetX = 1; let offsetY = 1; if (isinstance(elem [HTMLFrameElement, HTMLIFrameElement])) { buffer.focusElement(elem); return; } else if (elem ins... |
["mousedown", "mouseup", "click"].slice(0, util.haveGecko("2.0") ? 2 : 3) | ["mousedown", "mouseup", "click"].slice(0, util.haveGecko("2b") ? 2 : 3) | followLink: function (elem, where) { let doc = elem.ownerDocument; let view = doc.defaultView; let { left: offsetX, top: offsetY } = elem.getBoundingClientRect(); if (isinstance(elem, [HTMLFrameElement, HTMLIFrameElement])) return buffer.focusElement(elem); if (isinstan... |
ctrlKey: ctrlKey, shiftKey: shiftKey, metaKey: false | ctrlKey: ctrlKey, shiftKey: shiftKey, metaKey: ctrlKey | followLink: function (elem, where) { let doc = elem.ownerDocument; let view = doc.defaultView; let { left: offsetX, top: offsetY } = elem.getBoundingClientRect(); if (isinstance(elem, [HTMLFrameElement, HTMLIFrameElement])) return buffer.focusElement(elem); if (isinstan... |
["mousedown", "mouseup"].forEach(function (event) { | ["mousedown", "mouseup", "click"].slice(0, util.haveGecko("2.0") ? 2 : 3) .forEach(function (event) { | followLink: function (elem, where) { let doc = elem.ownerDocument; let view = doc.defaultView; let { left: offsetX, top: offsetY } = elem.getBoundingClientRect(); if (isinstance(elem, [HTMLFrameElement, HTMLIFrameElement])) return buffer.focusElement(elem); if (isinstan... |
let offsetX = 1; let offsetY = 1; | let { left: offsetX, top: offsetY } = elem.getBoundingClientRect(); | followLink: function (elem, where) { let doc = elem.ownerDocument; let view = doc.defaultView; let offsetX = 1; let offsetY = 1; if (isinstance(elem, [HTMLFrameElement, HTMLIFrameElement])) return buffer.focusElement(elem); if (isinstance(elem, HTMLLinkElement)) ... |
["mousedown", "mouseup", "click"].forEach(function (event) { elem.dispatchEvent(events.create(doc, event, { | ["mousedown", "mouseup"].forEach(function (event) { events.dispatch(elem, events.create(doc, event, { | followLink: function (elem, where) { let doc = elem.ownerDocument; let view = doc.defaultView; let offsetX = 1; let offsetY = 1; if (isinstance(elem, [HTMLFrameElement, HTMLIFrameElement])) return buffer.focusElement(elem); if (isinstance(elem, HTMLLinkElement)) ... |
ctrlKey: ctrlKey, shiftKey: shiftKey, metaKey: ctrlKey | ctrlKey: ctrlKey, shiftKey: shiftKey, metaKey: false | followLink: function (elem, where) { let doc = elem.ownerDocument; let view = doc.defaultView; let offsetX = 1; let offsetY = 1; if (isinstance(elem, [HTMLFrameElement, HTMLIFrameElement])) return buffer.focusElement(elem); if (isinstance(elem, HTMLLinkElement)) ... |
if (self.self !== window && self.self !== self) { | if ((! self.ignoreThis) && self.self !== window && self.self !== self) { | self.formatCall = function () { var s = ''; if (self.self !== window && self.self !== self) { s += doctest.repr(self.self) + '.'; } s += self._name; if (self.args === null) { return s + ':never called'; } s += '('; for (var i=0; i<self.args.length; i++) { if (i) { s += ',... |
s += self.name; | s += self._name; | self.formatCall = function () { var s = ''; if (self.self !== window && self.self !== self) { s += doctest.repr(self.self) + '.'; } s += self.name; if (self.args === null) { return s + ':never called'; } s += '('; for (var i=0; i<self.args.length; i++) { if (i) { s += ', ... |
warnings.push(buildHtml(child.format)); | var warning = buildHtml(child.format); | function formatChildren(children, opt_grand) { if (!children) { return null; } var warnings = []; for (var i = 0; i < children.length; ++i) { var child = children[i]; warnings.push(buildHtml(child.format)); if (child.children) { warnings.push(formatChildren(child.children, true)); } } if (opt_... |
warnings.push(formatChildren(child.children, true)); | warning += ' ' + formatChildren(child.children, true); | function formatChildren(children, opt_grand) { if (!children) { return null; } var warnings = []; for (var i = 0; i < children.length; ++i) { var child = children[i]; warnings.push(buildHtml(child.format)); if (child.children) { warnings.push(formatChildren(child.children, true)); } } if (opt_... |
warnings.push(warning); | function formatChildren(children, opt_grand) { if (!children) { return null; } var warnings = []; for (var i = 0; i < children.length; ++i) { var child = children[i]; warnings.push(buildHtml(child.format)); if (child.children) { warnings.push(formatChildren(child.children, true)); } } if (opt_... | |
return warnings.join('\n'); | return warnings.join('\n<p>\n'); | function formatChildren(children, opt_grand) { if (!children) { return null; } var warnings = []; for (var i = 0; i < children.length; ++i) { var child = children[i]; warnings.push(buildHtml(child.format)); if (child.children) { warnings.push(formatChildren(child.children, true)); } } if (opt_... |
continue; } if (stack[i].indexOf('@') == -1) { lines.push(stack[i]); | doctest.formatTraceback = function (e, skipFrames) { skipFrames = skipFrames || 0; var lines = []; if (typeof e == 'undefined' || !e) { var caughtErr = null; try { (null).foo; } catch (caughtErr) { e = caughtErr; } skipFrames++; } if (e.stack) { var stack = e.stack.split('\n'); for (... | |
} | },changePanel: function(mainPanel,changePanel,no){ | formsFailureBox: function(form){ if(!form.isValid()){ Ext.Msg.show({ icon: Ext.Msg.WARNING, title: 'Bad Request', msg: 'Please confirm the input value' }); }else{ Ext.Msg.show({ icon: Ext.Msg.ERROR, title: 'Bad Request'... |
"string")e=document.getElementById(e);return function(c){e.parentNode.replaceChild(c,e)}};o.fromTextArea=function(e,c){if(typeof e=="string")e=document.getElementById(e);c=c||{};if(e.style.width&&c.width==null)c.width=e.style.width;if(e.style.height&&c.height==null)c.height=e.style.height;if(c.content==null)c.content=e... | "string")a=document.getElementById(a);return function(b){a.parentNode.replaceChild(b,a)}};s.fromTextArea=function(a,b){if(typeof a=="string")a=document.getElementById(a);b=b||{};if(a.style.width&&b.width==null)b.width=a.style.width;if(a.style.height&&b.height==null)b.height=a.style.height;if(b.content==null)b.content=a... | "string")e=document.getElementById(e);return function(c){e.parentNode.replaceChild(c,e)}};o.fromTextArea=function(e,c){if(typeof e=="string")e=document.getElementById(e);c=c||{};if(e.style.width&&c.width==null)c.width=e.style.width;if(e.style.height&&c.height==null)c.height=e.style.height;if(c.content==null)c.content=e... |
this.Data.noreload = false; | this.fromTill_Change = function(el) { if( !this.Data.changeFromTill(el.id, ($.datepicker.formatDate('@',$(el).datepicker( "getDate" )))) ) { if (this.Data[el.id] == 0) $(el).datepicker( "setDate", null ); else $(el).datepicker( "setDate", $.datepicker.parseDate('@',(this.Data[el.id])) )... | |
g1 = arg1 ; g2 = arg2 ; fired = YES ; | g1 = arg1 ; g2 = arg2 ; fired = YES ; target = this ; | func: function(arg1, arg2) { g1 = arg1 ; g2 = arg2 ; fired = YES ; } |
function f(){for(;!c.lookAhead("?>")&&!c.endOfLine();)c.next();return{type:"comment",style:"php-comment"}}function g(l){var m="/*";for(l=l=="*";;){if(c.endOfLine())break;var r=c.next();if(r=="/"&&l){m=null;break}l=r=="*"}a(m);return{type:"comment",style:"php-comment"}}function h(l){for(var m=l,r=false;;){if(c.endOfLine... | r=f.addEventHandler(f,"resize",h,true);x=function(){o();r();if(k.updateNumbers==h)k.updateNumbers=null};h()}function g(){function h(n,z){q||(q=j.appendChild(document.createElement("DIV")));H&&H(q,z,n);t.push(q);t.push(n);A=q.offsetHeight+q.offsetTop;q=q.nextSibling}function o(){for(var n=0;n<t.length;n+=2)t[n].innerHTM... | function f(){for(;!c.lookAhead("?>")&&!c.endOfLine();)c.next();return{type:"comment",style:"php-comment"}}function g(l){var m="/*";for(l=l=="*";;){if(c.endOfLine())break;var r=c.next();if(r=="/"&&l){m=null;break}l=r=="*"}a(m);return{type:"comment",style:"php-comment"}}function h(l){for(var m=l,r=false;;){if(c.endOfLine... |
id: 'taberareloo_background' | id: 'taberareloo_background', style: TBRL.styles.div | general: function(ev){ // fix stack overflow => reset stack callLater(0, function(){ if(TBRL.field_shown){ TBRL.field_delete(); } else { if(!TBRL.field){ TBRL.field = $N('div', { id: 'taberareloo_background' }); TBRL.ol = $N('ol', { id: 't... |
id: 'taberareloo_list' | id: 'taberareloo_list', style: TBRL.styles.ol | general: function(ev){ // fix stack overflow => reset stack callLater(0, function(){ if(TBRL.field_shown){ TBRL.field_delete(); } else { if(!TBRL.field){ TBRL.field = $N('div', { id: 'taberareloo_background' }); TBRL.ol = $N('ol', { id: 't... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.