From 857d9397ed4c8bee8e96747e4619297bcaff9c87 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 26 Mar 2014 11:10:31 +0000 Subject: [PATCH] Simplify invocations of resizePage: no need for closures. --- src/mkws-core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 1.7.10.4