Remove unnecessary test.
[mkws-moved-to-github.git] / tools / htdocs / mkws.js
index 48780b5..bcbb403 100644 (file)
@@ -184,8 +184,6 @@ function widget($, team, type, node) {
 
     function promoteTargets() {
        team.queue("targets").subscribe(function(data) {
-           if (node.length === 0) alert("huh?!");
-
            var table ='<table><thead><tr>' +
                '<td>' + M('Target ID') + '</td>' +
                '<td>' + M('Hits') + '</td>' +
@@ -1515,7 +1513,7 @@ function team($, teamName) {
        // Second pass: make the individual widget objects. This has
        // to be done separately, and after the team-creation, since
        // that sometimes makes new widget nodes (e.g. creating
-       // mkwsTermlists instead mkwsResults.
+       // mkwsTermlists inside mkwsResults.
        $('[class^="mkws"],[class*=" mkws"]').each(function () {
            mkws.handleNodeWithTeam(this, function(tname, type) {
                var myTeam = mkws.teams[tname];