From: Mike Taylor Date: Wed, 26 Mar 2014 11:10:31 +0000 (+0000) Subject: Simplify invocations of resizePage: no need for closures. X-Git-Tag: 1.0.0~1215 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=857d9397ed4c8bee8e96747e4619297bcaff9c87;p=mkws-moved-to-github.git Simplify invocations of resizePage: no need for closures. --- diff --git a/src/mkws-core.js b/src/mkws-core.js index dbd8cd8..b30b380 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -315,9 +315,9 @@ if (mkws_config == null || typeof mkws_config != 'object') { if (mkws_config.responsive_design_width) { // Responsive web design - change layout on the fly based on // current screen width. Required for mobile devices. - $(window).resize(function(e) { resizePage() }); + $(window).resize(resizePage); // initial check after page load - $(document).ready(function() { resizePage() }); + $(document).ready(resizePage); } // protocol independent link for pazpar2: "//mkws/sp" -> "https://mkws/sp"