handleNodeWithTeam is meant to invoke its callback with the "type"
authorMike Taylor <mike@indexdata.com>
Fri, 17 Oct 2014 16:44:15 +0000 (17:44 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 17 Oct 2014 16:44:15 +0000 (17:44 +0100)
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

index 36323af..fc63469 100644 (file)
@@ -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();
       }
     }