Add commented-out code for iterating over teams and widgets.
authorMike Taylor <mike@indexdata.com>
Tue, 15 Apr 2014 15:56:48 +0000 (16:56 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 15 Apr 2014 15:56:48 +0000 (16:56 +0100)
src/mkws-core.js

index 43867f9..07a4b2d 100644 (file)
@@ -396,6 +396,16 @@ 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));
+//            }
+//        }
+
        if (mkws.config.use_service_proxy) {
            authenticateSession(mkws.config.service_proxy_auth,
                                mkws.config.service_proxy_auth_domain,