Use w.jqnode in place of $(w.node) in a couple of places.
team: team,
type: type,
node: node,
+ jqnode: $(node),
config: mkws.objectInheritingFrom(team.config())
};
// Utility function for all widgets that want to hide in narrow windows
widget.hideWhenNarrow = function(widget) {
widget.team.queue("resize-narrow").subscribe(function(n) {
- $(widget.node).hide();
+ widget.jqnode.hide();
});
widget.team.queue("resize-wide").subscribe(function(n) {
- $(widget.node).show();
+ widget.jqnode.show();
});
};