Use member-access syntax for newsearch_opacity property
authorMike Taylor <mike@indexdata.com>
Wed, 4 Feb 2015 10:16:01 +0000 (10:16 +0000)
committerMike Taylor <mike@indexdata.com>
Wed, 4 Feb 2015 10:16:01 +0000 (10:16 +0000)
src/mkws-widget-facets.js
src/mkws-widget-main.js

index d7c7ffa..2eefb95 100644 (file)
@@ -4,7 +4,7 @@ mkws.registerWidgetType('facets', function() {
   var team = this.team;
 
   this.team.queue("searchtriggered").subscribe(function() {
-    var op = that.config['newsearch_opacity'];
+    var op = that.config.newsearch_opacity;
     if (op !== undefined) { that.node.fadeTo(500, op); }
   });
 
index 81b71c7..e5c14ef 100644 (file)
@@ -115,7 +115,7 @@ mkws.registerWidgetType('records', function() {
   var team = this.team;
 
   this.team.queue("searchtriggered").subscribe(function() {
-    var op = that.config['newsearch_opacity'];
+    var op = that.config.newsearch_opacity;
     if (op !== undefined) { that.node.fadeTo(500, op); }
   });