Add missing semicolon.
[mkws-moved-to-github.git] / src / mkws-widget.js
index a3a4914..f050e77 100644 (file)
@@ -9,8 +9,7 @@ function widget($, team, type, node) {
   var that = {
     team: team,
     type: type,
-    node: node,
-    jqnode: $(node),
+    node: $(node),
     config: mkws.objectInheritingFrom(team.config())
   };
 
@@ -25,7 +24,7 @@ function widget($, team, type, node) {
 
   that.value = function() {
     return node.value;
-  }
+  };
 
   for (var i = 0; i < node.attributes.length; i++) {
     var a = node.attributes[i];
@@ -122,10 +121,10 @@ widget.autosearch = function(widget) {
 // 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.jqnode.hide();
+    widget.node.hide();
   });
   widget.team.queue("resize-wide").subscribe(function(n) {
-    widget.jqnode.show();
+    widget.node.show();
   });
 };