Author: pyaschenko
Date: 2007-07-06 11:57:52 -0400 (Fri, 06 Jul 2007)
New Revision: 1523
Modified:
branches/3.0.2/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js
Log:
some updates
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
15:08:58 UTC (rev 1522)
+++
branches/3.0.2/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js 2007-07-06
15:57:52 UTC (rev 1523)
@@ -79,17 +79,19 @@
this.value = text;
};
+
//ET.prototype = new JSNode();
ET.prototype.getContent = function(context) {
var value = this.value;
- if (typeof value == "function")
- value = value(context);
-
+ if (value && value.getContent) {
+ value = value.getContent(context);
+ }
+
if (value) return value;
return "";
};
-
+
// Text node
T = function(text) {
this.value = text;
@@ -98,8 +100,9 @@
T.prototype = new JSNode();
T.prototype.getContent = function(context) {
var value = this.value;
- if (typeof value == "function")
- value = value(context);
+ if (value && value.getContent) {
+ value = value.getContent(context);
+ }
if (value) return this.xmlEscape(value);
Show replies by date