projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
033c287
)
handleNodeWithTeam is meant to invoke its callback with the "type"
author
Mike Taylor
<mike@indexdata.com>
Fri, 17 Oct 2014 16:44:15 +0000
(17:44 +0100)
committer
Mike 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
patch
|
blob
|
history
diff --git
a/src/mkws-core.js
b/src/mkws-core.js
index
36323af
..
fc63469
100644
(file)
--- 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();
}
}