FIX: Don't reopen instance of controller.

This commit is contained in:
Guo Xiang Tan 2016-07-05 12:22:14 +08:00
parent 7e076d63ba
commit a382d5d2d2
No known key found for this signature in database
GPG Key ID: 19C321C8952B0F72
2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,5 @@
import { withPluginApi } from 'discourse/lib/plugin-api';
import ComposerController from 'discourse/controllers/composer';
function initializeDetails(api) {
api.decorateCooked($elem => $("details", $elem).details());
@ -11,8 +12,6 @@ function initializeDetails(api) {
};
});
const ComposerController = api.container.lookup("controller:composer");
ComposerController.reopen({
actions: {
insertDetails() {

View File

@ -1,9 +1,8 @@
import { withPluginApi } from 'discourse/lib/plugin-api';
import showModal from 'discourse/lib/show-modal';
import ComposerController from 'discourse/controllers/composer';
function initializePollUIBuilder(api) {
const ComposerController = api.container.lookup("controller:composer");
ComposerController.reopen({
actions: {
showPollBuilder() {