Revision: 4756
          http://sourceforge.net/p/vexi/code/4756
Author:   mkpg2
Date:     2015-01-13 04:39:16 +0000 (Tue, 13 Jan 2015)
Log Message:
-----------
Only list available icons on first miss.

Modified Paths:
--------------
    branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/layout/icon.t

Modified: 
branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/layout/icon.t
===================================================================
--- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/layout/icon.t    
2015-01-13 04:38:07 UTC (rev 4755)
+++ branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/layout/icon.t    
2015-01-13 04:39:16 UTC (rev 4756)
@@ -89,11 +89,21 @@
         return r;
     };    
     
+    const listed = {};
+    
     static.getIcon = function(subdir, name){
         const key = subdir+"."+name;
         var r = icons[subdir][name];
         if(!r){
-            vexi.log.warn("[WARNING] icon not found: "+name+" 
("+subdir+")\n"+list(subdir).join("\n    "));    
+            
+            var msg = "[WARNING] icon not found: "+subdir+"/"+name;
+            if(listed[subdir]){
+                msg+= " (^^ registered icons listed already)";
+            }else{
+                listed[subdir] = true;
+                msg+="\n"+list(subdir).join("\n    ");
+            }
+            vexi.log.warn(msg);                                
             r = icon[subdir]["blank"];                       
         }
         return r;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to