X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget-main.js;h=3761752ad4003164d347fd145b64275306acbc79;hb=ed4b067f8083566fa9de056fd7629278228bb2a5;hp=5951c1c140c802f98a2c9d64e2969baf182ae93a;hpb=c302068454a4f0a77574eae189b582a01138e763;p=mkws-moved-to-github.git diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 5951c1c..3761752 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -216,7 +216,7 @@ mkws.registerWidgetType('Switch', function() { Records \ | \ Targets'); - 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