diff --git a/js/src/forum/ForumApplication.js b/js/src/forum/ForumApplication.js index b47f56a47..fdac5ffa8 100644 --- a/js/src/forum/ForumApplication.js +++ b/js/src/forum/ForumApplication.js @@ -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; } /** diff --git a/js/src/forum/components/ComposerBody.js b/js/src/forum/components/ComposerBody.js index d81a2c87a..ff934bb1b 100644 --- a/js/src/forum/components/ComposerBody.js +++ b/js/src/forum/components/ComposerBody.js @@ -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() { diff --git a/js/src/forum/states/ComposerState.js b/js/src/forum/states/ComposerState.js index 4bfe0d10c..115ff0e39 100644 --- a/js/src/forum/states/ComposerState.js +++ b/js/src/forum/states/ComposerState.js @@ -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; } /**