From: Mike Taylor Date: Fri, 17 Oct 2014 16:44:15 +0000 (+0100) Subject: handleNodeWithTeam is meant to invoke its callback with the "type" X-Git-Tag: 1.0.0~155^2~10 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=cea8956db8e8fb34da25915bbbab9622fb86cbdf;hp=033c287ec63e95848ef6b5f637b07cc20d5016db handleNodeWithTeam is meant to invoke its callback with the "type" parameter set to the new-style widget type. It now does so for widgets with no explicit _old2new mapping, by simple lowercasing. --- diff --git a/src/mkws-core.js b/src/mkws-core.js index 36323af..fc63469 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -329,7 +329,7 @@ mkws.log("Using window.name '" + window.name + "'"); } else if (cname.match(/^mkws/)) { // Old-style names of the form mkwsFooBar var tmp = cname.replace(/^mkws/, ''); - type = _old2new[tmp] || tmp; + type = _old2new[tmp] || tmp.toLowerCase(); } }