From cea8956db8e8fb34da25915bbbab9622fb86cbdf Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 17 Oct 2014 17:44:15 +0100 Subject: [PATCH] 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. --- src/mkws-core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } } -- 1.7.10.4