From: Mike Taylor Date: Fri, 11 Apr 2014 10:57:47 +0000 (+0100) Subject: Don't decorate teamless widget nodes with mkwsTeam_AUTO. X-Git-Tag: 1.0.0~972^2 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=f9269251b1400fda0143284902f8a6d4cce195f0 Don't decorate teamless widget nodes with mkwsTeam_AUTO. --- diff --git a/src/mkws-core.js b/src/mkws-core.js index a030d5b..fd0c0de 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -371,15 +371,6 @@ mkws.pagerNext = function(tname) { } } - // For all MKWS-classed nodes that don't have a team - // specified, set the team to AUTO. - $('[class^="mkws"],[class*=" mkws"]').each(function() { - if (!this.className.match(/mkwsTeam_/)) { - log("adding AUTO team to node with class '" + this.className + "'"); - $(this).addClass('mkwsTeam_AUTO'); - } - }); - // Find all nodes with an MKWS class, and determine their team from // the mkwsTeam_* class. Make all team objects. var then = $.now();