Comment.
[mkws-moved-to-github.git] / src / mkws-widgets.js
index 19f1066..65c0bb9 100644 (file)
@@ -267,14 +267,15 @@ mkws.registerWidgetType('Navi', function() {
     var M = mkws.M;
 
     this.team.queue("navi").subscribe(function() {
+       // This is very low-level poking around inside the filter structure
        var filters = that.team.filters();
        var text = "";
 
        for (var i in filters) {
+           var filter = filters[i];
            if (text) {
                text += " | ";
            }
-           var filter = filters[i];
            if (filter.id) {
                text += M('source') + ': <a class="crossout" href="#" onclick="mkws.delimitTarget(\'' + teamName +
                    "', '" + filter.id + "'" + ');return false;">' + filter.name + '</a>';