2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-08 12:06:51 +08:00

Migrate onToolbarCreate to the DiscourseAPI

This commit is contained in:
Robin Ward 2016-02-18 12:42:15 -05:00
parent 7b8e313dac
commit f6aa1ac37a
4 changed files with 30 additions and 16 deletions

View file

@ -176,8 +176,13 @@ class Toolbar {
}
}
export function onToolbarCreate(func) {
export function addToolbarCallback(func) {
_createCallbacks.push(func);
}
export function onToolbarCreate(func) {
console.warn('`onToolbarCreate` is deprecated, use the plugin api instead.');
addToolbarCallback(func);
};
export default Ember.Component.extend({