rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
debugConsole.displayFPS = this.originalDisplayFPS; | this.performCleanUp = function () { debugConsole.shaderMode = this.originalShaderMode; debugConsole.displayFPS = this.originalDisplayFPS; debugConsole.debugFlags = this.originalDebugFlags; delete this.passID; delete this.maxPassID; delete this.nextTestIndex; delete this.originalShaderMode; delete this.origin... | |
delete this.originalHUD; | this.performCleanUp = function () { debugConsole.shaderMode = this.originalShaderMode; debugConsole.displayFPS = this.originalDisplayFPS; debugConsole.debugFlags = this.originalDebugFlags; delete this.passID; delete this.maxPassID; delete this.nextTestIndex; delete this.originalShaderMode; delete this.origin... | |
delete this.originalReducedDetailMode; | this.performCleanUp = function () { debugConsole.shaderMode = this.originalShaderMode; debugConsole.debugFlags = this.originalDebugFlags; player.ship.hud = this.originalHUD; delete this.passID; delete this.maxPassID; delete this.nextTestIndex; delete this.originalShaderMode; delete this.originalDisplayFPS; ... | |
delete this.maxPassID; | this.performCleanUp = function () { debugConsole.shaderMode = this.originalShaderMode; debugConsole.displayFPS = this.originalDisplayFPS; debugConsole.debugFlags = this.originalDebugFlags; delete this.passID; delete this.nextTestIndex; delete this.originalShaderMode; delete this.originalDisplayFPS; delete th... | |
delete this.originalDebugFlags; | this.performCleanUp = function () { debugConsole.shaderMode = this.originalShaderMode; debugConsole.displayFPS = this.originalDisplayFPS; delete this.passID; delete this.nextTestIndex; delete this.originalShaderMode; delete this.originalDisplayFPS; delete this.shipLaunchedFromStation; } | |
drawBar(points[i], points[i + 1], points[i + 2], barLeft, barRight, offset, fillStyleCallback, axisx, axisy, ctx, series.bars.horizontal); | drawBar(points[i], points[i + 1], points[i + 2], barLeft, barRight, offset, fillStyleCallback, axisx, axisy, ctx, series.bars.horizontal, series.bars.lineWidth); | function plotBars(datapoints, barLeft, barRight, offset, fillStyleCallback, axisx, axisy) { var points = datapoints.points, ps = datapoints.pointsize; for (var i = 0; i < points.length; i += ps) { if (points[i] == null) ... |
nodeTitleChanged: function PM_nodeTitleChanged(aPlacesNode, aNewTitle) { | function PM_nodeTitleChanged(aPlacesNode, aNewTitle) { | nodeTitleChanged: function PM_nodeTitleChanged(aPlacesNode, aNewTitle) { let elt = aPlacesNode._DOMElement; if (!elt) throw "aPlacesNode must have _DOMElement set"; // There's no UI representation for the root node, thus there's // nothing to be done when the title changes. if (elt == this._rootEl... |
elt.label = aNewTitle || PlacesUIUtils.getBestTitle(aPlacesNode); | if (elt.localName == "menupopup") elt = elt.parentNode; if (!aNewTitle && elt.localName != "toolbarbutton") { elt.label = PlacesUIUtils.getBestTitle(aPlacesNode); } else { elt.label = aNewTitle; } | nodeTitleChanged: function PM_nodeTitleChanged(aPlacesNode, aNewTitle) { let elt = aPlacesNode._DOMElement; if (!elt) throw "aPlacesNode must have _DOMElement set"; // There's no UI representation for the root node, thus there's // nothing to be done when the title changes. if (elt == this._rootEl... |
} | }, | pop: function () { return this.scope.shift(); } |
"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,k,l,q,p){h=g[1].replace(/\\/g,"");if(!p&&m.attrMap[h])g[1]=m.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,k,l,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]... | g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:functi... | "2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,k,l,q,p){h=g[1].replace(/\\/g,"");if(!p&&m.attrMap[h])g[1]=m.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,k,l,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]... |
(function(c){c.ui=c.ui||{};var m=/left|center|right/,n=/top|center|bottom/,p=c.fn.position,q=c.fn.offset;c.fn.position=function(a){if(!a||!a.of)return p.apply(this,arguments);a=c.extend({},a);var b=c(a.of),d=(a.collision||"flip").split(" "),e=a.offset?a.offset.split(" "):[0,0],g,h,i;if(a.of.nodeType===9){g=b.width();h=... | (function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width(... | (function(c){c.ui=c.ui||{};var m=/left|center|right/,n=/top|center|bottom/,p=c.fn.position,q=c.fn.offset;c.fn.position=function(a){if(!a||!a.of)return p.apply(this,arguments);a=c.extend({},a);var b=c(a.of),d=(a.collision||"flip").split(" "),e=a.offset?a.offset.split(" "):[0,0],g,h,i;if(a.of.nodeType===9){g=b.width();h=... |
d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=... | e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+... | d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=... |
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previ... | c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},pa... | d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previ... |
a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.st... | c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ca;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=ca;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation... | a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.st... |
this.element.children(b))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(":first"));else{var b=this.active.offset().top,c=this.element.height(),d=this.element.children("li").filter(function(){var f=e(this).offset().top-b-c+e(this).height();return f<10&&f>-10... | c)}else this.activate(a,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(a){if(this.hasScroll())if(!this.active||this.first())this.activate(a,this.element.children(".ui-menu-item:last"));else{var b=this.active.offset().top,f=this.element.height();result=t... | this.element.children(b))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(":first"));else{var b=this.active.offset().top,c=this.element.height(),d=this.element.children("li").filter(function(){var f=e(this).offset().top-b-c+e(this).height();return f<10&&f>-10... |
printAttr: function(attr) { | printAttr: function(attr, first) { | printAttr: function(attr) { this.writer.write({ prefix: this.prefCache.getPref("attribute.listSeparator"), value: attr.nodeName, join: this.prefCache.getPref("attribute.separatorBeforeEquals") }); this.writer.write({ value: "=", join: this.prefCache.getPref("attribute.separatorBe... |
prefix: this.prefCache.getPref("attribute.listSeparator"), | prefix: first ? "" : this.prefCache.getPref("attribute.listSeparator"), | printAttr: function(attr) { this.writer.write({ prefix: this.prefCache.getPref("attribute.listSeparator"), value: attr.nodeName, join: this.prefCache.getPref("attribute.separatorBeforeEquals") }); this.writer.write({ value: "=", join: this.prefCache.getPref("attribute.separatorBe... |
this.printAttr(sortedAttrs[i]); | this.printAttr(sortedAttrs[i], !i); | printElement: function(el) { var childNodes = el.childNodes, tagName = el.tagName; if (!this.isXML && this.prefCache.getPref("element.htmlNameToLower")) { tagName = tagName.toLowerCase(); } this.writer.write({ value: "<" + tagName, nowrap: true, indentOffset: true }); var at... |
if (curLineCount >= attrsPerLine) { | if (attrsPerLine >= 0 && curLineCount >= attrsPerLine) { | printElement: function(el) { var childNodes = el.childNodes, tagName = el.tagName; if (!this.isXML && this.prefCache.getPref("element.htmlNameToLower")) { tagName = tagName.toLowerCase(); } this.writer.write({ value: "<" + tagName, nowrap: true, indentOffset: true }); var at... |
this.writer.write({ value: replaceEntities(text.data), nowrap: true, preformatted: true }); | var parentTag = ((text.parentNode || {}).tagName || ""), cdata = parentTag == "SCRIPT" || parentTag == "STYLE"; this.writer.write({ value: !cdata ? replaceEntities(text.data) : text.data, nowrap: true, preformatted: true }); | printText: function(text) { this.writer.write({ value: replaceEntities(text.data), nowrap: true, preformatted: true }); }, |
logger.log("Check if ", propName, ':', value, compareOperator, compareValue, '[is/should]BeInSet', isInSet, couldBeInSet) | logger.log("Check if ", propName, ':', value, compareOperator, compareValue, 'couldBeInSet', couldBeInSet) | function processProperty(propIndex) { var propName = properties[propIndex], itemPropKey = shared.keys.getItemPropertyKey(itemId, propName) self._redisCommandClient.get(itemPropKey, function(err, valueBytes) { var value = valueBytes ? bytesToString(valueBytes) : null, propCondition = query[propName], ... |
if (!isInSet) { return } self._mutate('srem', itemId) | self._maybeRemove(itemId) | function processProperty(propIndex) { var propName = properties[propIndex], itemPropKey = shared.keys.getItemPropertyKey(itemId, propName) self._redisCommandClient.get(itemPropKey, function(err, valueBytes) { var value = valueBytes ? bytesToString(valueBytes) : null, propCondition = query[propName], ... |
if (isInSet) { return } self._mutate('sadd', itemId) | self._maybeAdd(itemId) | function processProperty(propIndex) { var propName = properties[propIndex], itemPropKey = shared.keys.getItemPropertyKey(itemId, propName) self._redisCommandClient.get(itemPropKey, function(err, valueBytes) { var value = valueBytes ? bytesToString(valueBytes) : null, propCondition = query[propName], ... |
logger.log('Check property "' + propName +'":', '[db: ' + JSON.stringify(value) + ']', compareOperator, '[query: ' + JSON.stringify(compareValue) + ']', 'match?', couldBeInSet) | logger.log('Check ' + itemPropKey +':', '[in db: ' + JSON.stringify(value) + ']', compareOperator, '[query wants: ' + JSON.stringify(compareValue) + ']', 'match?', couldBeInSet) | function processProperty(propIndex) { var propName = properties[propIndex], itemPropKey = shared.keys.getItemPropertyKey(itemId, propName) self._redisCommandClient.get(itemPropKey, function(err, valueBytes) { var value = valueBytes ? bytesToString(valueBytes) : false, propCondition = query[propNa... |
self._maybeRemove(itemId) | self._removeIfMember(itemId) | function processProperty(propIndex) { var propName = properties[propIndex], itemPropKey = shared.keys.getItemPropertyKey(itemId, propName) self._redisCommandClient.get(itemPropKey, function(err, valueBytes) { var value = valueBytes ? bytesToString(valueBytes) : false, propCondition = query[propNa... |
if (propIndex == 0) { self._maybeAdd(itemId) } else { processProperty(propIndex - 1) } | if (propIndex == 0) { self._addIfNotMember(itemId) } else { processProperty(propIndex - 1) } | function processProperty(propIndex) { var propName = properties[propIndex], itemPropKey = shared.keys.getItemPropertyKey(itemId, propName) self._redisCommandClient.get(itemPropKey, function(err, valueBytes) { var value = valueBytes ? bytesToString(valueBytes) : false, propCondition = query[propNa... |
new Ajax.Request(url + '?' + param + '=' + encodeURIComponent(value), {asynchronous:true, evalScripts:true}); | var sep = (url.indexOf('?') < 0 ? '?' : '&' ) new Ajax.Request(url + sep + param + '=' + encodeURIComponent(value), {asynchronous:true, evalScripts:true}); | function promptToRemote(text, param, url) { value = prompt(text + ':'); if (value) { new Ajax.Request(url + '?' + param + '=' + encodeURIComponent(value), {asynchronous:true, evalScripts:true}); return false; }} |
ORBEON.util.Property = function(name, defaultValue) { this.name = name; this.defaultValue = defaultValue; }; | Property: function() { var Property = function(name, defaultValue) { this.name = name; this.defaultValue = defaultValue; }; Property.prototype.get = function() { return YAHOO.lang.isUndefined(opsXFormsProperties) || YAHOO.lang.isUndefined(opsXFormsProperties[this.name]) ? this.defaultValue : opsXFormsProperties[this.n... | ORBEON.util.Property = function(name, defaultValue) { this.name = name; this.defaultValue = defaultValue;}; |
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,... | s){var v=j.length,z=0;if(typeof s.length==="number")for(var H=s.length;z<H;z++)j[v++]=s[z];else for(;s[z]!==B;)j[v++]=s[z++];j.length=v;return j},grep:function(j,s,v){var z=[],H;v=!!v;for(var G=0,K=j.length;G<K;G++){H=!!s(j[G],G);v!==H&&z.push(j[G])}return z},map:function(j,s,v){for(var z=[],H,G=0,K=j.length;G<K;G++){H... | a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,... |
"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,k,l,q,p){h=g[1].replace(/\\/g,"");if(!p&&m.attrMap[h])g[1]=m.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,k,l,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]... | CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g... | "2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,k,l,q,p){h=g[1].replace(/\\/g,"");if(!p&&m.attrMap[h])g[1]=m.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,k,l,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]... |
a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a... | toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=t... | a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a... |
"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}f... | "margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,funct... | "&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}f... |
if (!query || !callback) { logger.error("query requires two arguments", query, callback); debugger } | if (!query || !callback) { logger.error("query requires two arguments", query, callback); } | this.query = function(query, callback) { if (!query || !callback) { logger.error("query requires two arguments", query, callback); debugger } var queryJSON = JSON.stringify(query), queryChannel = shared.keys.getQueryChannel(queryJSON), subId = this._subscriptionPool.add(queryChannel, callback) if (this._subsc... |
queryChannel = shared.keys.getQueryChannel(queryJSON), subId = this._subscriptionPool.add(queryChannel, callback), cachedMutation = this._mutationCache[queryChannel] if (this._subscriptionPool.count(queryChannel) == 1) { this.send('FIN_REQUEST_QUERY', queryJSON) } else if (cachedMutation) { this._handleQueryMutation(c... | key = shared.keys.getQueryKey(queryJSON), subId = this._observe({ key: key, type: 'SET' }, callback) if (this._subscriptionPool.count(key) == 1) { this.send('FIN_REQUEST_MONITOR_QUERY', queryJSON) | this.query = function(query, callback) { if (!query || !callback) { logger.error("query requires two arguments", query, callback) } var queryJSON = JSON.stringify(query), queryChannel = shared.keys.getQueryChannel(queryJSON), subId = this._subscriptionPool.add(queryChannel, callback), cachedMutation = this._... |
for (var key in query) { var value = query[key] if (typeof value == 'boolean') { query[key] = (value ? 1 : 0) } } | this.query = function(query, callback) { if (!query || !callback) { logger.error("query requires two arguments", query, callback); debugger } var queryJSON = JSON.stringify(query), queryChannel = shared.keys.getQueryChannel(queryJSON), subId = this._subscriptionPool.add(queryChannel, callback) if (this._subsc... | |
a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if... | c.data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(ty... | a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if... |
16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return m.transparent;return m[f.trim(c).toLowerCase()]}function r(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="tran... | 3:2)+"}");p=b.substring(s).match(p);if(!p)throw"Missing number at position "+s;s+=p[0].length;return parseInt(p[0],10)},n=function(p,w,H){p=o(p)?H:w;for(w=0;w<p.length;w++)if(b.substr(s,p[w].length).toLowerCase()==p[w].toLowerCase()){s+=p[w].length;return w+1}throw"Unknown name at position "+s;},r=function(){if(b.charA... | 16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return m.transparent;return m[f.trim(c).toLowerCase()]}function r(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="tran... |
return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,... | text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g... | return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,... |
var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { if (request.results.inline) { chrome.extension.sendRequest({ validateLocal : true, html : xhr.responseText } ); | if (request.results.inline) { chrome.extension.sendRequest({ validateLocal : true, html : getPageHTMLCode() | receiveRequest = function (request, sender, sendResponse) { var requestResults = request.results, showFailedValidation = function () { chrome.extension.sendRequest({ setBadgeValues : true, errors : "X" } ); showMessage('Validation failed. Please try again or <a href="http://validator.w3.org/c... |
else { var htmlForm = document.createElement("form"), htmlInput = document.createElement("input"); htmlForm.action = "http: htmlForm.method = "post"; htmlForm.enctype = "multipart/form-data"; htmlForm.target = "_blank"; htmlInput.type = "text"; htmlInput.name = "fragment"; htmlInput.value = xhr.responseText; htmlFor... | ); } else { chrome.extension.sendRequest({ openNewTabForForm : true, url : location.href | receiveRequest = function (request, sender, sendResponse) { var requestResults = request.results, showFailedValidation = function () { chrome.extension.sendRequest({ setBadgeValues : true, errors : "X" } ); showMessage('Validation failed. Please try again or <a href="http://validator.w3.org/c... |
} }; xhr.open("GET", location.href, true); xhr.send(null); | ); } | receiveRequest = function (request, sender, sendResponse) { var requestResults = request.results, showFailedValidation = function () { chrome.extension.sendRequest({ setBadgeValues : true, errors : "X" } ); showMessage('Validation failed. Please try again or <a href="http://validator.w3.org/c... |
var htmlForm = $("#post-html-for-validation"); if (htmlForm.length === 0) { htmlForm = $('<form id="post-html-for-validation" method="post" action="' + "http: } htmlForm[0].submit(); | var htmlForm = document.createElement("form"), htmlInput = document.createElement("input"); htmlForm.action = "http: htmlForm.method = "post"; htmlForm.enctype = "multipart/form-data"; htmlForm.target = "_blank"; htmlInput.type = "text"; htmlInput.name = "fragment"; htmlInput.value = xhr.responseText; htmlForm.appen... | receiveRequest = function (request, sender, sendResponse) { var requestResults = request.results; if (typeof requestResults === "object") { var requestResultsMessage = requestResults.message; if (requestResultsMessage === "show-loading") { loading.show(); } else if (requestResultsMessage === "hide-loading... |
$('<form id="post-html-for-validation" method="post" action="' + "http: | htmlForm = $('<form id="post-html-for-validation" method="post" action="' + "http: | receiveRequest = function (request, sender, sendResponse) { var requestResults = request.results; if (typeof requestResults === "object") { var requestResultsMessage = requestResults.message; if (requestResultsMessage === "show-loading") { loading.show(); } else if (requestResultsMessage === "hide-loading... |
chrome.extension.sendRequest({ sendPageHTMLToValidator : true, pageHTML : xhr.responseText } ); | $('<form id="post-html-for-validation" method="post" action="' + "http: | receiveRequest = function (request, sender, sendResponse) { var requestResults = request.results; if (typeof requestResults === "object") { var requestResultsMessage = requestResults.message; if (requestResultsMessage === "show-loading") { loading.show(); } else if (requestResultsMessage === "hide-loading... |
$('<form id="post-html-for-validation" method="post" action="' + "http: | var htmlForm = $("#post-html-for-validation"); if (htmlForm.length === 0) { $('<form id="post-html-for-validation" method="post" action="' + "http: } htmlForm[0].submit(); | receiveRequest = function (request, sender, sendResponse) { var requestResults = request.results; if (typeof requestResults === "object") { var requestResultsMessage = requestResults.message; if (requestResultsMessage === "show-loading") { loading.show(); } else if (requestResultsMessage === "hide-loading... |
__.rect = function(pos, width, height, attrs){ return __.raphael.rect(pos.x, pos.y, width, height).attr(attrs); }; | rect: function(pos, width, height, attrs){ return this.raphael.rect(pos.x, pos.y, width, height).attr(attrs); }, | __.rect = function(pos, width, height, attrs){ return __.raphael.rect(pos.x, pos.y, width, height).attr(attrs); }; |
res.sendBody('Redirecting...'); res.finish(); | res.write('Redirecting...'); res.close(); | exports.redirect = redirect = function(res, location, status) { status = status || 301; res.sendHeader(status || 200, { 'Content-Type': 'text/html; charset=utf-8', 'Location': location }); res.sendBody('Redirecting...'); res.finish();} |
if (error) { result_callback(error); } | if (error) { return result_callback(error); } | exports.reduce = function reduce(array, iter_callback, initial, result_callback) { var index = 0; var depth = 0; if (!result_callback) { throw 'no result callback!!!'; } (function inner (error, value) { if (error) { result_callback(error); } if (index < array.length) { proce... |
var depth = 0; | exports.reduce = function reduce(array, iter_callback, initial, result_callback) { var index = 0; var depth = 0; if (!result_callback) { throw 'no result callback!!!'; } (function inner (error, value) { if (error) { return result_callback(error); } if (index < array.l... | |
if (ORBEON.util.Dom.hasClass(repeatElement, "xforms-dnd-vertical")) | if (YAHOO.util.Dom.hasClass(repeatElement, "xforms-dnd-vertical")) | registerDraggableListenersOnRepeatElement: function(repeatElement) { var draggableItem = new ORBEON.xforms.DnD.DraggableItem(repeatElement); if (ORBEON.util.Dom.hasClass(repeatElement, "xforms-dnd-vertical")) draggableItem.setXConstraint(0, 0); else if (ORBEON.util.Dom.hasClass(repea... |
else if (ORBEON.util.Dom.hasClass(repeatElement, "xforms-dnd-horizontal")) | else if (YAHOO.util.Dom.hasClass(repeatElement, "xforms-dnd-horizontal")) | registerDraggableListenersOnRepeatElement: function(repeatElement) { var draggableItem = new ORBEON.xforms.DnD.DraggableItem(repeatElement); if (ORBEON.util.Dom.hasClass(repeatElement, "xforms-dnd-vertical")) draggableItem.setXConstraint(0, 0); else if (ORBEON.util.Dom.hasClass(repea... |
this._subscriptionPool.remove(channel) | this._subscriptionPool.remove(channel, subId) | this.release = function(subId, options) { options = options || {} if (typeof subId == 'string') { var channel = this._subIdToChannel[subId] this._subscriptionPool.remove(channel) if (this._subscriptionPool.count() == 0) { if (options.local !== true) { this.send('FIN_REQUEST_UNSUBSCRIBE', channel) ... |
if (this._subscriptionPool.count() == 0) { | if (this._subscriptionPool.count(channel) == 0) { | this.release = function(subId, options) { options = options || {} if (typeof subId == 'string') { var channel = this._subIdToChannel[subId] this._subscriptionPool.remove(channel) if (this._subscriptionPool.count() == 0) { if (options.local !== true) { this.send('FIN_REQUEST_UNSUBSCRIBE', channel) ... |
var channel = this._subIdToChannel[subId], key = this._subscriptionPool.remove(channel, subId), | var key = this._subIdToKey[subId], | this.release = function(subId) { if (typeof subId == 'string') { var channel = this._subIdToChannel[subId], key = this._subscriptionPool.remove(channel, subId), keyInfo = shared.keys.getKeyInfo(key), itemID = keyInfo.id if (this._subscriptionPool.count(channel) == 0) { if (itemID != this._localID) ... |
if (this._subscriptionPool.count(channel) == 0) { | this._subscriptionPool.remove(key, subId) if (this._subscriptionPool.count(key) == 0) { | this.release = function(subId) { if (typeof subId == 'string') { var channel = this._subIdToChannel[subId], key = this._subscriptionPool.remove(channel, subId), keyInfo = shared.keys.getKeyInfo(key), itemID = keyInfo.id if (this._subscriptionPool.count(channel) == 0) { if (itemID != this._localID) ... |
this.send('FIN_REQUEST_UNSUBSCRIBE', channel) | this.send('FIN_REQUEST_UNSUBSCRIBE', key) | this.release = function(subId) { if (typeof subId == 'string') { var channel = this._subIdToChannel[subId], key = this._subscriptionPool.remove(channel, subId), keyInfo = shared.keys.getKeyInfo(key), itemID = keyInfo.id if (this._subscriptionPool.count(channel) == 0) { if (itemID != this._localID) ... |
delete this._listLength[channel] | delete this._listLength[key] | this.release = function(subId) { if (typeof subId == 'string') { var channel = this._subIdToChannel[subId], key = this._subscriptionPool.remove(channel, subId), keyInfo = shared.keys.getKeyInfo(key), itemID = keyInfo.id if (this._subscriptionPool.count(channel) == 0) { if (itemID != this._localID) ... |
delete this._subIdToChannel[subId] | delete this._subIdToKey[subId] | this.release = function(subId) { if (typeof subId == 'string') { var channel = this._subIdToChannel[subId], key = this._subscriptionPool.remove(channel, subId), keyInfo = shared.keys.getKeyInfo(key), itemID = keyInfo.id if (this._subscriptionPool.count(channel) == 0) { if (itemID != this._localID) ... |
Ext.getCmp("tabs").setActiveTab(1); | function reloadData(){ s = Ext.getCmp("wfoselector").getValue(); sts = Ext.getCmp("datepicker1").getValue().format('m/d/Y') +" "+ Ext.getCmp("timepicker1").getValue(); sdt = new Date(sts); start_utc = sdt.toUTC(); /* Set the nexradSlider to the top of the hour */ nexradSlider.minValue = (start... | |
nexradSlider.enable(); | nexradSlider.fireEvent('changecomplete'); | function reloadData(){ s = Ext.getCmp("wfoselector").getValue(); sts = Ext.getCmp("datepicker1").getValue().format('m/d/Y') +" "+ Ext.getCmp("timepicker1").getValue(); sdt = new Date(sts); start_utc = sdt.toUTC(); /* Set the nexradSlider to the top of the hour */ nexradSlider.minValue = (start... |
k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if... | d.guid}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof ... | k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if... |
this.remove = function(signal, id) { delete this._pool[signal][id] | this.remove = function(name, id) { delete this._pool[name][id] if (this._counts[name]-- == 0) { delete this._counts[name] } | this.remove = function(signal, id) { delete this._pool[signal][id] } |
cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(thi... | colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.e... | cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(thi... |
i){c[i]&&e[i+"Class"](c[i])});q=o(n.call(this));e.attr("className",u);e.animate(t(h,q),a,b,function(){f.each(p,function(v,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments)})})};f.fn.extend({_addClass:... | f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effec... | i){c[i]&&e[i+"Class"](c[i])});q=o(n.call(this));e.attr("className",u);e.animate(t(h,q),a,b,function(){f.each(p,function(v,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments)})})};f.fn.extend({_addClass:... |
i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").spl... | 1)if(f.className){for(var h=" "+f.className+" ",l=f.className,k=0,o=b.length;k<o;k++)if(h.indexOf(" "+b[k]+" ")<0)l+=" "+b[k];f.className=c.trim(l)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(o){var x=c(this);x.removeClass(a.call(this,o,x.attr("class")))});if(a&&... | i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").spl... |
a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if... | a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(b===B){d=this.triggerHandler("getData"+k[1]+"!",[k[0]]);if(d===B&&this.length){d=c.data(this[0],a);d=ka(this[0],a,d)}return d===B&&k[1]?this.data(k[0]):d}else return this.each(function(){var o=c(this),x=[k[0],b];o.triggerHandler("setData"+k[1]+"!",x);c.data(this,a,b);o.t... | a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if... |
this.removeFromSet = function(setId, itemId, callback) { | this.removeFromSet = function(setId, itemIds, callback) { | this.removeFromSet = function(setId, itemId, callback) { if (!isArray(itemIds)) { itemIds = [itemIds] } for (var i=0, itemId; itemId = itemIds[i]; i++) { delete this._itemSets[setId][itemId] } setTimeout(function() { callback(null) }) } |
this.removeFromSet = function(setId, itemId, callback) { | this.removeFromSet = function(setId, itemIds, callback) { | this.removeFromSet = function(setId, itemId, callback) { if (!isArray(itemIds)) { itemIds = [itemIds] } var remaining = itemIds.length function onItemRemoved(err) { if (err) { throw err } if (--remaining == 0) { callback(null) } } for (var i=0, itemId; itemId = itemIds[i]; i++) { this._redisClient.sadd(setI... |
this._redisClient.sadd(setId, itemId, onItemRemoved) | this._redisClient.srem(setId, itemId, onItemRemoved) | this.removeFromSet = function(setId, itemId, callback) { if (!isArray(itemIds)) { itemIds = [itemIds] } var remaining = itemIds.length function onItemRemoved(err) { if (err) { throw err } if (--remaining == 0) { callback(null) } } for (var i=0, itemId; itemId = itemIds[i]; i++) { this._redisClient.sadd(setI... |
if (!this._panels || !(panel in this._panels)) { return; } | this.removePanel = function(panel) { var panelId = this._extractPanelFromOrder(panel); delete this._panels[panelId]; this._element.removeChild(panel.getElement()); if (panel == this._focusedPanel) { this.focusPanel(this._panels[this._panelOrder[0]]); } this._positionPanels(); } | |
if (panelIndex > this._panelsByIndex.length) { panelIndex -= 1; } | if (panelIndex >= this._panelsByIndex.length) { panelIndex -= 1; } | this.removePanel = function(panel) { var panelIndex = this._getPanelIndex(panel); this._panelsByIndex.splice(panelIndex, 1); delete this._panelsByItem[panel.getItem()]; dom.remove(panel.getElement()); if (panelIndex == this._focusIndex) { // panelIndex will now refer to panel on the right of removed panel if... |
this.removePanel = function() { if (!this._labelViewPanel) { return; } | this.removePanel = function(panel) { if (!panel || panel != this._labelViewPanel) { return; } | this.removePanel = function() { if (!this._labelViewPanel) { return; } this.removeClassName('labelListOpen'); this._labelViewPanel.unsubscribe('ItemSelected', this._itemViewClickCallback); dom.remove(this._labelViewPanel.getElement()); this._labelViewPanel = null; browser.resizeManager.fireResize(); } |
this.focus(); | this.removePanel = function() { if (!this._labelViewPanel) { return; } this.removeClassName('labelListOpen'); this._labelViewPanel.unsubscribe('ItemSelected', this._itemViewClickCallback); dom.remove(this._labelViewPanel.getElement()); this._labelViewPanel = null; browser.resizeManager.fireResize(); } | |
c.css({position:"relative",top:0,left:0})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({e... | {position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});c.css({position:"relative",top:0,left:0})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replace... | c.css({position:"relative",top:0,left:0})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({e... |
var parent_template = template_loader.load(context.extends); | var parent_template = exports.load(context.extends); | render: function (o) { var context = (o instanceof Context) ? o : new Context(o || {}); context.extends = ''; var rendered = this.node_list.evaluate(context); if (context.extends) { var parent_template = template_loader.load(context.extends); rendered = parent_templ... |
if (error) { callback(error); } | if (error) { return callback(error); } | render: function (o, callback) { if (!callback) { throw 'template.render() must be called with a callback'; } var context = (o instanceof Context) ? o : new Context(o || {}); context.extends = ''; this.node_list.evaluate(context, function (error, rendered) { if (error) { callb... |
exports.load(context.extends, function (error, parent_template) { parent_template.render(context, callback); }); | var template_loader = require('./loader'); template_loader.load_and_render(context.extends, context, callback); | render: function (o, callback) { if (!callback) { throw 'template.render() must be called with a callback'; } var context = (o instanceof Context) ? o : new Context(o || {}); context.extends = ''; this.node_list.evaluate(context, function (error, rendered) { if (error) { callb... |
var control = YAHOO.util.Dom.get(fullId); var formElement = ORBEON.util.Dom.getElementByTagName(control, ["input", "textarea"]); YAHOO.util.Assert.isFalse(formElement.disabled, "form element must not be disabled after recreation"); | repeatRebuildWorker: function(controlId) { var fullId = controlId + XFORMS_SEPARATOR_1 + "1"; YAHOO.util.Assert.areEqual("true", ORBEON.xforms.Document.getValue(fullId)); ORBEON.util.Test.executeCausingAjaxRequest(this, function() { ORBEON.xforms.Document.setValue("repeat-shown", "fa... | |
""):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)}... | else if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1></$2>");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(e){this.empty().append(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)}... |
height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b=e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=ty... | a.preventDefault()}if(g){c(a.target).attr("tabIndex",-1);c(g).attr("tabIndex",0);g.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.br... | height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b=e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=ty... |
resizeInfo.snap('topleft', false, self.keepProportional); | resizeInfo.snap(UI.rtl ? 'topright' : 'topleft', false, self.keepProportional); | resize: function(e,ui) { // TODO: maybe the stationaryCorner should be topright for rtl langs? resizeInfo.snap('topleft', false, self.keepProportional); }, |
datatable.reset(); | if (datatable.isDisplayed()) datatable.reset(); | resizeWhenStabilized: function () { var width = YAHOO.util.Dom.getViewportWidth(); if (YAHOO.xbl.fr.DatatableManager.previousBodyWidth != width) { // The window width is still changing, wait till it get stabilized YAHOO.xbl.fr.DatatableManager.previousBodyWidth = width; ... |
datatable.isInitialized = false; datatable.draw(datatable.innerTableWidth); | if (datatable.isDisplayed()) { datatable.isInitialized = false; datatable.draw(datatable.innerTableWidth); } | resizeWhenStabilized: function () { var width = YAHOO.util.Dom.getViewportWidth(); if (YAHOO.xbl.fr.DatatableManager.previousBodyWidth != width) { // The window width is still changing, wait till it get stabilized YAHOO.xbl.fr.DatatableManager.previousBodyWidth = width; ... |
datatable.draw(datatable.innerTableWidth); | datatable.draw(); | resizeWhenStabilized: function () { var width = YAHOO.util.Dom.getViewportWidth(); if (YAHOO.xbl.fr.DatatableManager.previousBodyWidth != width) { // The window width is still changing, wait till it get stabilized YAHOO.xbl.fr.DatatableManager.previousBodyWidth = width; ... |
return out.map( utils.html.escape ); | return out.map( function (o) { return typeof o === 'string' ? utils.html.escape(o) : o; } ); | resolve: function (context) { var value; if (this.hasOwnProperty('constant')) { value = this.constant; } else { value = context.get(this.variable); } var safety = { is_safe: false, must_escape: context.autoescaping, }; var ... |
var filter = template_defaults.filters[c.name]; | var filter = context.filters[c.name]; | resolve: function (context) { var value; if (this.hasOwnProperty('constant')) { value = this.constant; } else { value = context.get(this.variable); } var safety = { is_safe: false, must_escape: context.autoescaping }; var o... |
return utils.html.escape(out); | return html.escape(out); | resolve: function (context) { var value; if (this.hasOwnProperty('constant')) { value = this.constant; } else { value = context.get(this.variable); } var safety = { is_safe: false, must_escape: context.autoescaping }; var o... |
return out.map( function (o) { return typeof o === 'string' ? utils.html.escape(o) : o; } ); | return out.map( function (o) { return typeof o === 'string' ? html.escape(o) : o; } ); | resolve: function (context) { var value; if (this.hasOwnProperty('constant')) { value = this.constant; } else { value = context.get(this.variable); } var safety = { is_safe: false, must_escape: context.autoescaping }; var o... |
res.sendBody(body, 'utf8'); res.finish(); | res.write(body, 'utf8'); res.close(); | function respond(res, body, content_type, status) { content_type = content_type || 'text/html'; res.sendHeader(status || 200, { 'Content-Type': content_type + '; charset=utf-8' }); res.sendBody(body, 'utf8'); res.finish();} |
break}}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){ret... | break}}}).bind("keypress.autocomplete",function(c){if(f){f=false;c.preventDefault()}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.c... | break}}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){ret... |
null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b=0;break;case "middle":b=0.5;br... | [{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.6",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hid... | null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b=0;break;case "middle":b=0.5;br... |
return utils.string.sprintf('%' + arg + 's', value).substr(0, arg); | return string_utils.sprintf('%' + arg + 's', value).substr(0, arg); | rjust: function (value, arg) { try { return utils.string.sprintf('%' + arg + 's', value).substr(0, arg); } catch (e) { return ''; } }, |
e){this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.4"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(a,e){var b=this,c=this.options,h=b._rotate||(b._rotate=function(i){clearTimeout(b.rotation);b.... | e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.6"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.... | e){this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.4"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(a,e){var b=this,c=this.options,h=b._rotate||(b._rotate=function(i){clearTimeout(b.rotation);b.... |
if (window.event) k=window.event.keyCode; else if (event) k=event.which; | if (event) k=event.keyCode; else if (event) var k=event.which; | function rTN(event){if (window.event) k=window.event.keyCode;else if (event) k=event.which;else return true;kC=String.fromCharCode(k);if ((k==null) || (k==0) || (k==8) || (k==9) || (k==13) || (k==27)) return true;else if ((("0123456789,.-").indexOf(kC)>-1)) return true;else return false;} |
kC=String.fromCharCode(k); | var kC=String.fromCharCode(k); | function rTN(event){if (window.event) k=window.event.keyCode;else if (event) k=event.which;else return true;kC=String.fromCharCode(k);if ((k==null) || (k==0) || (k==8) || (k==9) || (k==13) || (k==27)) return true;else if ((("0123456789,.-").indexOf(kC)>-1)) return true;else return false;} |
var count = 0, failed = 0, errors = 0; | var count = 0, error_cnt = 0, failed_cnt = 0; var testcase_idx = testcases.length - 1; | run: function (stop_on_error) { var count = 0, failed = 0, errors = 0; testcases.reverse(); try { testcases.forEach( function (testcase) { sys.puts('\n[Testcase: ' + testcase.name + ']'); testcase.tests.forEach( function (test) { coun... |
testcases.reverse(); | (function run_testcases() { | run: function (stop_on_error) { var count = 0, failed = 0, errors = 0; testcases.reverse(); try { testcases.forEach( function (testcase) { sys.puts('\n[Testcase: ' + testcase.name + ']'); testcase.tests.forEach( function (test) { coun... |
try { | var idx = 0; var testcase = testcases[testcase_idx--]; | run: function (stop_on_error) { var count = 0, failed = 0, errors = 0; testcases.reverse(); try { testcases.forEach( function (testcase) { sys.puts('\n[Testcase: ' + testcase.name + ']'); testcase.tests.forEach( function (test) { coun... |
testcases.forEach( function (testcase) { | if (testcase) { | run: function (stop_on_error) { var count = 0, failed = 0, errors = 0; testcases.reverse(); try { testcases.forEach( function (testcase) { sys.puts('\n[Testcase: ' + testcase.name + ']'); testcase.tests.forEach( function (test) { coun... |
testcase.tests.forEach( function (test) { | (function run_tests() { | run: function (stop_on_error) { var count = 0, failed = 0, errors = 0; testcases.reverse(); try { testcases.forEach( function (testcase) { sys.puts('\n[Testcase: ' + testcase.name + ']'); testcase.tests.forEach( function (test) { coun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.