From: Mike Taylor Date: Wed, 26 Mar 2014 11:20:18 +0000 (+0000) Subject: handleNodeWithTeam is now a local function, not a member. X-Git-Tag: 1.0.0~1211 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=2893e2e505c2b6d6e53afb2e866c44638ce9f0b1 handleNodeWithTeam is now a local function, not a member. --- diff --git a/src/mkws-core.js b/src/mkws-core.js index b30b380..0a175e4 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -103,7 +103,7 @@ if (mkws_config == null || typeof mkws_config != 'object') { var log = mkws.log; - mkws.handleNodeWithTeam = function(node, callback) { + function handleNodeWithTeam(node, callback) { // First branch for DOM objects; second branch for jQuery objects var classes = node.className || node.attr('class'); if (!classes) { @@ -353,7 +353,7 @@ if (mkws_config == null || typeof mkws_config != 'object') { // the mkwsTeam_* class. Make all team objects. var then = $.now(); $('[class^="mkws"],[class*=" mkws"]').each(function () { - mkws.handleNodeWithTeam(this, function(tname, type) { + handleNodeWithTeam(this, function(tname, type) { if (!mkws.teams[tname]) { mkws.teams[tname] = team(j, tname); log("Made MKWS team '" + tname + "'"); @@ -365,7 +365,7 @@ if (mkws_config == null || typeof mkws_config != 'object') { // that sometimes makes new widget nodes (e.g. creating // mkwsTermlists inside mkwsResults. $('[class^="mkws"],[class*=" mkws"]').each(function () { - mkws.handleNodeWithTeam(this, function(tname, type) { + handleNodeWithTeam(this, function(tname, type) { var myTeam = mkws.teams[tname]; var myWidget = widget(j, myTeam, type, this); });