[richfaces-svn-commits] JBoss Rich Faces SVN: r2116 - trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Tue Aug 7 14:31:02 EDT 2007
Author: sergeyhalipov
Date: 2007-08-07 14:31:01 -0400 (Tue, 07 Aug 2007)
New Revision: 2116
Modified:
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js
Log:
http://jira.jboss.com/jira/browse/RF-497
Modified: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js 2007-08-07 18:08:58 UTC (rev 2115)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js 2007-08-07 18:31:01 UTC (rev 2116)
@@ -157,4 +157,18 @@
}
}
-Richfaces.browser={isIE6: /MSIE\s*[6][\d,\.]+;/.test(navigator.userAgent)};
\ No newline at end of file
+Richfaces.browser={isIE6: /MSIE\s*[6][\d,\.]+;/.test(navigator.userAgent)};
+
+Richfaces.eval = function(template, object) {
+ var value = '';
+
+ try {
+ with (object) {
+ value = eval(template) ;
+ }
+ } catch (e) {
+ LOG.warn('Exception: ' + e.message + '\n[' + template + ']');
+ }
+
+ return value;
+};
\ No newline at end of file
More information about the richfaces-svn-commits
mailing list