Add custom post icons to PluginAPI

This commit is contained in:
Robin Ward
2016-02-12 16:57:24 -05:00
parent 9b8871d7dd
commit f9722f8598
6 changed files with 74 additions and 81 deletions

View File

@ -161,7 +161,9 @@ function methodMissing() {
"and your plugin needs to be updated.");
};
['reopen', 'registerButton'].forEach(function(m) { RemovedObject.prototype[m] = methodMissing; });
Discourse.RemovedObject = RemovedObject;
['reopen', 'registerButton', 'on', 'off'].forEach(function(m) { RemovedObject.prototype[m] = methodMissing; });
['discourse/views/post', 'discourse/components/post-menu'].forEach(function(moduleName) {
define(moduleName, [], function() { return new RemovedObject(moduleName); });