Author: jmorliaguet
Date: Sun Feb 12 22:25:25 2006
New Revision: 2370

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

- bug fix: 'tmpl' can only be removed in the end of the loop otherwise it
  cannot be cloned inside the loop. (could not produce a test case though)



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 
22:25:25 2006
@@ -156,7 +156,6 @@
   var parent = tmpl.parentNode;
   if (!parent) return;
   var marker = tmpl.nextSibling;
-  parent.removeChild(tmpl);
 
   // the iterator variable has the same name as the looped through array.
   if (nmx[0] == nmx[1]) {
@@ -183,6 +182,7 @@
       data = ctal.deepcopy(saved_data);
     }
   }
+  parent.removeChild(tmpl);
 }
 
 /* general processor */
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to