[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6718] trunk/UI/lib/Loader.js



Revision: 6718
          http://sourceforge.net/p/ledger-smb/code/6718
Author:   tshvr
Date:     2014-01-31 10:50:09 +0000 (Fri, 31 Jan 2014)
Log Message:
-----------
avoid typeerror is undefined;commented debugging? alert

Modified Paths:
--------------
    trunk/UI/lib/Loader.js

Modified: trunk/UI/lib/Loader.js
===================================================================
--- trunk/UI/lib/Loader.js	2014-01-31 10:11:26 UTC (rev 6717)
+++ trunk/UI/lib/Loader.js	2014-01-31 10:50:09 UTC (rev 6718)
@@ -261,12 +261,15 @@
                    widget = myself.createWidget(dnode);
                    if (undefined !== widget){
                        ready(function(){
-                           registry.byId(dnode.id).startup();
+                           //console.log('tshvr4 Loader setup widget=',widget,'id='+dnode.id);
+                           var wdgt_tmp=registry.byId(dnode.id);
+                           //registry.byId(dnode.id).startup();
+                           if(wdgt_tmp) wdgt_tmp.startup();//avoid TypeError: wdgt_tmp is undefined
                         });
                    }
                    if (null !== onclick){
-                       alert(onclick); 
-                       ready(function(){ on(dnode, 'click', onclick)});
+                       //alert(onclick); 
+                       ready(function(){on(dnode, 'click', onclick)});
                    }
                 });
             });

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


------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits