Author: jmorliaguet
Date: Sat Feb 25 23:46:39 2006
New Revision: 2473

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/ctal.js
Log:

- Object.eval is deprecated, using:

    with()

  to set the context



Modified: cpsskins/branches/jmo-perspectives/ui/framework/ctal.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/ctal.js     (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/ctal.js     Sat Feb 25 
23:46:39 2006
@@ -232,7 +232,7 @@
     return ctal.eval_pathexpr(data, value)
   } else if (etype == 'javascript') {
     // evaluate the expression in context
-    return data.eval(value);
+    with (data) { return eval(value) };
   } else {
     throw new ctal.TALESError('TALES Expression type "' + etype + 
                               '" is not implemented')
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to