mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 14:49:57 +08:00
Refactor component API a bit
This commit is contained in:
@ -2,7 +2,7 @@ import Component from 'flarum/component';
|
||||
|
||||
export default class Modal extends Component {
|
||||
view() {
|
||||
return m('div.modal.fade', {config: this.onload.bind(this)}, this.component && this.component.view())
|
||||
return m('div.modal.fade', {config: this.onload.bind(this)}, this.component && this.component.render())
|
||||
}
|
||||
|
||||
onload(element, isInitialized) {
|
||||
|
Reference in New Issue
Block a user