From 225097d4f9208b4ddbcae23590aa566b14677778 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 7 Oct 2014 12:04:36 +0100 Subject: [PATCH] Make PZ2 objects only after walking the whole node tree. --- src/mkws-core.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/mkws-core.js b/src/mkws-core.js index 07c0365..20b5723 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -462,7 +462,6 @@ mkws.log("Using window.name '" + window.name + "'"); var myTeam = mkws.teams[tname]; if (!myTeam) { myTeam = mkws.teams[tname] = mkws.makeTeam($, tname); - myTeam.makePz2(); log("made MKWS team '" + tname + "'"); } @@ -583,16 +582,16 @@ mkws.log("Using window.name '" + window.name + "'"); var now = $.now(); log("walking MKWS nodes took " + (now-then) + " ms"); - - /* - for (var tName in mkws.teams) { + 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); - }); - } - */ + myTeam.makePz2(); + log("made PZ2 object for team '" + tName + "'"); + /* + myTeam.visitWidgets(function(t, w) { + log(" has widget of type '" + t + "': " + w); + }); + */ + } function sp_auth_url(config) { if (config.service_proxy_auth) { -- 1.7.10.4