From: Mike Taylor Date: Wed, 28 May 2014 14:38:59 +0000 (+0100) Subject: Rename variables in hideWhenNarrow X-Git-Tag: 1.0.0~581 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=66631818bfe2c891a3adf58e689253c9f526e356 Rename variables in hideWhenNarrow --- diff --git a/src/mkws-widget.js b/src/mkws-widget.js index ca8b12d..705af74 100644 --- a/src/mkws-widget.js +++ b/src/mkws-widget.js @@ -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(); }); };