Make sure components receive all children properly

This commit is contained in:
Toby Zerner 2017-10-08 08:59:18 +10:30
parent 51510319c1
commit 1f4966bbf1

View File

@ -5,7 +5,7 @@ export default function patchMithril(global) {
const m = function(comp, ...args) {
if (comp.prototype && comp.prototype instanceof Component) {
return comp.component(...args);
return comp.component(args[0], args.slice(1));
}
const node = mo.apply(this, arguments);