From: Jason Skomorowski Date: Tue, 7 Oct 2014 14:43:34 +0000 (-0400) Subject: Deprecate very backwards compatibility. X-Git-Tag: 1.0.0~289^2~1 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=6ec745d7d8ac73996838bf3e2c2c8b124cbaf31f Deprecate very backwards compatibility. --- diff --git a/src/mkws-core.js b/src/mkws-core.js index d88e751..73f2b8d 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -497,21 +497,6 @@ mkws.log("Using window.name '" + window.name + "'"); if (message) greet += " :: " + message; mkws.log(greet); - // TODO: Let's remove this soon - // Backwards compatibility: set new magic class names on any - // elements that have the old magic IDs. - var ids = [ "Switch", "Lang", "Search", "Pager", "Navi", - "Results", "Records", "Targets", "Ranking", - "Termlists", "Stat", "MOTD" ]; - for (var i = 0; i < ids.length; i++) { - var id = 'mkws' + ids[i]; - var node = $('#' + id); - if (node.attr('id')) { - node.addClass(id); - log("added magic class to '" + node.attr('id') + "'"); - } - } - // MKWS is not active until init() has been run against an object with widget nodes. // We only set initial configuration when MKWS is first activated. if (!mkws.isActive) {