Author: jmorliaguet
Date: Tue Apr 11 11:01:00 2006
New Revision: 2809

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

- fixed possible attribute conflict since the 'id' attribute is used by DOM
  nodes already.



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 Tue Apr 11 
11:01:00 2006
@@ -253,8 +253,8 @@
     if (!id) {
       CPSSkins.warn("Component has no id: <pre>" + text + "</pre>", el);
     }
-    el.id = id;
-    this._defs[[el.className,el.id]] = def;
+    el.componentid = id;
+    this._defs[[el.className, id]] = def;
   },
 
   // second stage
@@ -270,7 +270,7 @@
   },
 
   _register: function(node, el, classid) {
-      var def = this._defs[[classid,el.id]];
+      var def = this._defs[[classid,el.componentid]];
       var id = def.id;
 
       switch(classid) {
@@ -1080,7 +1080,7 @@
     if (!node) return null;
     var model_node = this._getModelNode(node);
     if (model_node) {
-      var id = model_node.id;
+      var id = model_node.componentid;
       if (id) {
         return CPSSkins.getModelById(id);
       }
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to