Rename variables in hideWhenNarrow
authorMike Taylor <mike@indexdata.com>
Wed, 28 May 2014 14:38:59 +0000 (15:38 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 28 May 2014 14:38:59 +0000 (15:38 +0100)
src/mkws-widget.js

index ca8b12d..705af74 100644 (file)
@@ -128,12 +128,12 @@ function widget($, team, type, node) {
 
   // Utility function for all widgets that want to hide in narrow windows
   that.hideWhenNarrow = function() {
-    var widget = this;
-    widget.team.queue("resize-narrow").subscribe(function(n) {
-      widget.node.hide();
+    var that = this;
+    this.team.queue("resize-narrow").subscribe(function(n) {
+      that.node.hide();
     });
-    widget.team.queue("resize-wide").subscribe(function(n) {
-      widget.node.show();
+    this.team.queue("resize-wide").subscribe(function(n) {
+      that.node.show();
     });
   };