All invocations of widget.hideWhenNarrow(w) changed to w.hideWhenNarrow()
authorMike Taylor <mike@indexdata.com>
Wed, 28 May 2014 14:37:52 +0000 (15:37 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 28 May 2014 14:37:52 +0000 (15:37 +0100)
src/mkws-widget-main.js

index 5951c1c..3761752 100644 (file)
@@ -216,7 +216,7 @@ mkws.registerWidgetType('Switch', function() {
 <a href="#" onclick="mkws.switchView(\'' + tname + '\', \'records\')">Records</a><span> \
 | \
 </span><a href="#" onclick="mkws.switchView(\'' + tname + '\', \'targets\')">Targets</a>');
-  widget.hideWhenNarrow(this);
+  this.hideWhenNarrow();
 });
 
 
@@ -372,7 +372,7 @@ mkws.registerWidgetType('Lang', function() {
   }
 
   this.node.html(data);
-  widget.hideWhenNarrow(this);
+  this.hideWhenNarrow();
 
 
   // set or re-set "lang" URL parameter