Author: pyaschenko
Date: 2009-09-09 13:25:37 -0400 (Wed, 09 Sep 2009)
New Revision: 15514
Modified:
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces.js
Log:
https://jira.jboss.org/jira/browse/RFPL-108
Modified: root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces.js
===================================================================
---
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces.js 2009-09-09
17:11:15 UTC (rev 15513)
+++
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces.js 2009-09-09
17:25:37 UTC (rev 15514)
@@ -48,7 +48,7 @@
this.each(function() { out += xs.serializeToString(this); });
} else if (this[0].xml !== undefined) {
this.each(function() { out += this.xml; });
- } else if (this.length > 0) {
+ } else if (this.length > 0) { // PY: [if] not needed, was upper
this.each( function() { out += this; } );
}
}
@@ -123,7 +123,7 @@
var useBrowserConsole = false;
- var AM_PM = /(\s*(?:a|p)m)$/ig;
+ var AM_PM = /(\s*(?:a|p)m)$/ig; // PY: [g] not needed when $ - end of string
var getMessagePrefix = function(level) {
var date = new Date();
@@ -237,7 +237,7 @@
richfaces.interpolate = function (placeholders, context) {
var contextVarsArray = new Array();
for (var contextVar in context) {
- if (/^\w+$/.test(contextVar)) {
+ if (/^\w+$/.test(contextVar)) { // PY: define regexp before for
//guarantees that no escaping for the below RegExp is necessary
contextVarsArray.push(contextVar);
}
@@ -262,8 +262,8 @@
var ondataavailable = options.ondataavailable;
richfaces.stopPush(pushId);
-
- pushTracker[pushId] = setTimeout(function() {
+
+ pushTracker[pushId] = setTimeout(function() { // PY: may be define this function in
richfaces object to avoid definition every time when call startPush
var ajaxOptions = {
type: "HEAD",
//TODO - encodeURIComponent; URL sessionId handling check