From: Mike Taylor Date: Wed, 30 Apr 2014 15:54:33 +0000 (+0100) Subject: Consolidate both narrow/wide clauses. X-Git-Tag: 1.0.0~772 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=f4271d2e2040c8dded22da50c9593787f5a1d63b Consolidate both narrow/wide clauses. --- diff --git a/src/mkws-core.js b/src/mkws-core.js index ab536f5..e01b3e1 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -338,12 +338,6 @@ mkws.pagerNext = function(tname) { if (mkws.width === undefined) { // No state change, since we have no previous state } else if (mkws.width > threshhold && width <= threshhold) { - log("wide -> narrow"); - } else if (mkws.width <= threshhold && width > threshhold) { - log("narrow -> wide"); - } - - if (mkws.width > threshhold && width <= threshhold) { log("changing from wide to narrow: " + width); $(".mkwsTermlist-Container-wide").hide(); $(".mkwsTermlist-Container-narrow").show();