Commented-out code to walk team->widgets structure uses visitWidgets
authorMike Taylor <mike@indexdata.com>
Thu, 1 May 2014 13:08:53 +0000 (14:08 +0100)
committerMike Taylor <mike@indexdata.com>
Thu, 1 May 2014 13:08:53 +0000 (14:08 +0100)
src/mkws-core.js

index ec2b4a6..eda02a3 100644 (file)
@@ -503,15 +503,13 @@ mkws.pagerNext = function(tname) {
        var now = $.now();
        log("Walking MKWS nodes took " + (now-then) + " ms");
 
-//        for (var tName in mkws.teams) {
-//            var myTeam = mkws.teams[tName]
-//            var types = myTeam.widgetTypes();
-//            log("TEAM '" + tName + "' = " + myTeam + " has widget types " + types);
-//            for (var i = 0; i < types.length; i++) {
-//                var type = types[i];
-//                log("  has widget of type '" + type + "': " + myTeam.widget(type));
-//            }
-//        }
+        //for (var tName in mkws.teams) {
+        //    var myTeam = mkws.teams[tName]
+        //    log("TEAM '" + tName + "' = " + myTeam + " ...");
+        //    myTeam.visitWidgets(function(t, w) {
+        //        log("  has widget of type '" + t + "': " + w);
+        //    });
+        //}
 
        if (mkws.config.use_service_proxy) {
            authenticateSession(mkws.config.service_proxy_auth,