Remove unnecessary (and unused) hardwired default.
authorMike Taylor <mike@indexdata.com>
Thu, 6 Nov 2014 09:44:09 +0000 (09:44 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 6 Nov 2014 09:44:09 +0000 (09:44 +0000)
src/mkws-widget-main.js

index c161686..53e2f5c 100644 (file)
@@ -288,7 +288,7 @@ mkws.registerWidgetType('lang', function() {
   var list = [];
 
   /* display a list of configured languages, or all */
-  var lang_options = this.config.lang_options || [];
+  var lang_options = this.config.lang_options;
   var toBeIncluded = {};
   for (var i = 0; i < lang_options.length; i++) {
     toBeIncluded[lang_options[i]] = true;