From 98b2fe9badf8633f28c1e6ff3684466fb9dedb21 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 26 Mar 2014 11:09:39 +0000 Subject: [PATCH] resizePage() is now a local function, not a member. --- src/mkws-core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mkws-core.js b/src/mkws-core.js index 09ae8aa..dbd8cd8 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -129,7 +129,7 @@ if (mkws_config == null || typeof mkws_config != 'object') { } - mkws.resizePage = function () { + function resizePage() { var list = ["mkwsSwitch", "mkwsLang"]; var width = mkws_config.responsive_design_width; @@ -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) { mkws.resizePage() }); + $(window).resize(function(e) { resizePage() }); // initial check after page load - $(document).ready(function() { mkws.resizePage() }); + $(document).ready(function() { resizePage() }); } // protocol independent link for pazpar2: "//mkws/sp" -> "https://mkws/sp" -- 1.7.10.4