Author: pyaschenko
Date: 2008-09-25 07:26:57 -0400 (Thu, 25 Sep 2008)
New Revision: 10554
Modified:
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js
Log:
optimization
Modified:
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js
===================================================================
---
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js 2008-09-25
10:59:07 UTC (rev 10553)
+++
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-dom.js 2008-09-25
11:26:57 UTC (rev 10554)
@@ -29,12 +29,12 @@
},
// Public functions
getInnerHTML : function(context) {
- var html = "";
+ var children = [];
for (var i = 0; i < this.childs.length; i++)
{
- html += this.childs[i].getContent(context);
+ children.push(this.childs[i].getContent(context));
}
- return html;
+ return children.join('');
},
// Escape XML symbols - < > & ' ...
xmlEscape : function(value) {
Show replies by date