Author: jmorliaguet
Date: Sun Feb 12 19:15:07 2006
New Revision: 2368

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

- bug fix



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     Sun Feb 12 
19:15:07 2006
@@ -157,13 +157,12 @@
   var marker = tmpl.nextSibling;
   parent.removeChild(tmpl);
 
-  var current_data, saved_data;
   for (var i=0; i<datas.length; i++) {
     // do a deep copy of the data structure traversed by the repeat loop
     // to avoid corrupting it.
-    var saved_data = null;
+    var saved_data = new Object();
     var current_data = data[nmx[0]];
-    if (current_data) {
+    if (typeof current_data != "undefined") {
       saved_data = ctal.deepcopy(current_data);
     }
     data[nmx[0]] = datas[i];
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to