mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +08:00
Get rid of extension convenience method
We might reintroduce this later, but for now I want to keep the extensions API as light as possible and get input before we add stuff
This commit is contained in:
parent
a10da1f92a
commit
93c6bf026e
|
@ -59,17 +59,3 @@ export function override(object, method, newMethod) {
|
|||
return newMethod.apply(this, [original.bind(this)].concat(args));
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a notification type.
|
||||
*
|
||||
* @param {String} name The name of the notification type (equivalent to the
|
||||
* serialized `contentType`)
|
||||
* @param {Object} Component The constructor of the component that this
|
||||
* notification type should be rendered with
|
||||
* @param {String|Array} label vDOM to render a label in the notification
|
||||
* preferences grid for this notification type
|
||||
*/
|
||||
export function notificationType(name, Component, label) {
|
||||
// TODO
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user