X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-core.js;h=fd0c0de038ff51bd860897abe559138c772f0f0b;hb=b165ad4e81bc764ba051b3009e1582fe99c858cb;hp=6b1e0f6fcc4b2a30956d916d2afab510264efd73;hpb=7ef365454c1ca797f41f77d80187f6014b64b4ac;p=mkws-moved-to-github.git diff --git a/src/mkws-core.js b/src/mkws-core.js index 6b1e0f6..fd0c0de 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -229,6 +229,8 @@ mkws.pagerNext = function(tname) { type = cname.replace(/^mkws/, ''); } } + + if (!teamName) teamName = "AUTO"; callback.call(node, teamName, type); } @@ -369,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();