handleNodeWithTeam now passes "AUTO" to the callback if the node in
authorMike Taylor <mike@indexdata.com>
Fri, 11 Apr 2014 10:57:22 +0000 (11:57 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 11 Apr 2014 10:57:22 +0000 (11:57 +0100)
question has no team.

src/mkws-core.js

index 6b1e0f6..a030d5b 100644 (file)
@@ -229,6 +229,8 @@ mkws.pagerNext = function(tname) {
                type = cname.replace(/^mkws/, '');
            }
        }
+
+        if (!teamName) teamName = "AUTO";
        callback.call(node, teamName, type);
     }