Author: jmorliaguet
Date: Fri Feb 10 10:59:32 2006
New Revision: 2334

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

- raise an error if the widget type is unknown



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 Fri Feb 10 
10:59:32 2006
@@ -233,8 +233,8 @@
 
         case "view": {
           var widget_type = def.widget.type;
-          if (!(widget_type in Widgets)) {
-            return;
+          if (widget_type && !(widget_type in Widgets)) {
+            CPSSkins.warn("Unknown widget type: " + widget_type, el);
           }
           /* create the view */
           var factory = Widgets[widget_type];
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to