1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

Revert "Remove deprecated "BC Layers", since BC is broken anyway"

This reverts commit 37c2956efae828e4f25448f4fdff33a79ab0aace.
This commit is contained in:
Franz Liedke
2020-09-18 15:56:43 +02:00
parent 1e4a7f3282
commit 4a5d12626b
3 changed files with 22 additions and 0 deletions

View File

@@ -90,6 +90,11 @@ export default class ForumApplication extends Application {
* @type {DiscussionListState}
*/
this.discussions = new DiscussionListState({}, this);
/**
* @deprecated beta 14, remove in beta 15.
*/
this.cache.discussionList = this.discussions;
}
/**

View File

@@ -44,6 +44,12 @@ export default class ComposerBody extends Component {
}
this.composer.fields.content(this.attrs.originalContent || '');
/**
* @deprecated BC layer, remove in Beta 15.
*/
this.content = this.composer.fields.content;
this.editor = this.composer;
}
view() {

View File

@@ -33,6 +33,11 @@ class ComposerState {
this.editor = null;
this.clear();
/**
* @deprecated BC layer, remove in Beta 15.
*/
this.component = this;
}
/**
@@ -71,6 +76,12 @@ class ComposerState {
this.fields = {
content: m.stream(''),
};
/**
* @deprecated BC layer, remove in Beta 15.
*/
this.content = this.fields.content;
this.value = this.fields.content;
}
/**