Author: pyaschenko
Date: 2007-07-06 12:16:01 -0400 (Fri, 06 Jul 2007)
New Revision: 1527
Modified:
branches/3.0.2/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js
Log:
fixes
Modified:
branches/3.0.2/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js
===================================================================
---
branches/3.0.2/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js 2007-07-06
16:03:27 UTC (rev 1526)
+++
branches/3.0.2/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js 2007-07-06
16:16:01 UTC (rev 1527)
@@ -83,7 +83,8 @@
//ET.prototype = new JSNode();
ET.prototype.getContent = function(context) {
var value = this.value;
- if (value && value.getContent) {
+ if (typeof value=="function") value=value(context);
+ if (value && value.getContent) {
value = value.getContent(context);
}
@@ -100,9 +101,7 @@
T.prototype = new JSNode();
T.prototype.getContent = function(context) {
var value = this.value;
- if (value && value.getContent) {
- value = value.getContent(context);
- }
+ if (typeof value=="function") value=value(context);
if (value) return this.xmlEscape(value);
Show replies by date