projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2dbe2fe
)
Rename variables in hideWhenNarrow
author
Mike Taylor
<mike@indexdata.com>
Wed, 28 May 2014 14:38:59 +0000
(15:38 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 28 May 2014 14:38:59 +0000
(15:38 +0100)
src/mkws-widget.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget.js
b/src/mkws-widget.js
index
ca8b12d
..
705af74
100644
(file)
--- 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() {
// 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();
});
};
});
};