Add team.widgetTypes function, returns sorted list of contained types.
authorMike Taylor <mike@indexdata.com>
Tue, 15 Apr 2014 15:54:22 +0000 (16:54 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 15 Apr 2014 15:54:22 +0000 (16:54 +0100)
src/mkws-team.js

index 88745b7..8872eb3 100644 (file)
@@ -755,6 +755,12 @@ function team($, teamName) {
         }
     }
 
+    that.widgetTypes = function() {
+        var keys = [];
+        for (var k in m_widgets) keys.push(k);
+        return keys.sort();
+    }
+
     that.widget = function(type) {
         return m_widgets[type];
     }