Author: jmorliaguet
Date: Sat Jan  7 15:55:54 2006
New Revision: 2182

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

- optimization

- the data is passed already to render(), no need to extract it



Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Sat Jan  7 
15:55:54 2006
@@ -698,13 +698,7 @@
   },
 
   render: function(data) {
-    var data = Canvas.getNodeData(this.selected);
-
-    // reset the menu
-    $A(this.widget.getElementsByTagName("*")).each(function(v) {
-      v.parentNode.removeChild(v);
-    });
-
+    this.widget.innerHTML = '';
     this._renderFragment(this.widget, this.tag, data);
   },
 
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to