1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

props -> attrs in code

This commit is contained in:
Franz Liedke
2020-09-18 15:55:40 +02:00
parent cbcb0429d0
commit 1e4a7f3282

View File

@@ -98,9 +98,9 @@ export default abstract class Component<T extends ComponentAttrs = any> implemen
* @see https://mithril.js.org/hyperscript.html#mselector,-attributes,-children
*/
static component(attrs = {}, children = null): Mithril.Vnode {
const componentProps = Object.assign({}, attrs);
const componentAttrs = Object.assign({}, attrs);
return m(this as any, componentProps, children);
return m(this as any, componentAttrs, children);
}
/**