Author: jmorliaguet
Date: Sat Feb 11 13:10:09 2006
New Revision: 2345

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

- fixed incompatibility with prototype.js



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 11 
13:10:09 2006
@@ -52,8 +52,8 @@
       nodes[0] = value;
     }
   }
-  var node;
-  for (;node=nodes.shift();) {
+  for (var i=0; i<nodes.length; i++) {
+    var node = nodes[i]; 
     if (marker) {
       parent.insertBefore(node, marker);
     } else {
@@ -82,8 +82,8 @@
 
 ctal.tal_attributes = function(tmpl, value, data) {
   var attrs = value.split(";");
-  var attr;
-  for (;attr=attrs.shift();) {
+  for (var i=0; i<attrs.length; i++) {
+    var attr = attrs[i];
     var nmx = ctal.get_nameexpr(attr);
     var aname = nmx[0]
     var avalue = ctal.eval_expr(data, nmx[1])
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to