Fix linting error

This commit is contained in:
Kevin Ansfield 2018-01-08 19:30:16 +00:00
parent eef41d2cd7
commit bde0b9768e

View File

@ -234,7 +234,14 @@ export default Component.extend(ShortcutsMixin, {
},
willDestroyElement() {
if (this.get('_isSplitScreen')) {
this._disconnectSplitPreview();
}
this.removeShortcuts();
this._super(...arguments);
if (this._preventBodyScrollId) {
window.cancelAnimationFrame(this._preventBodyScrollId);
}
@ -476,16 +483,6 @@ export default Component.extend(ShortcutsMixin, {
);
},
willDestroyElement() {
if (this.get('_isSplitScreen')) {
this._disconnectSplitPreview();
}
this.removeShortcuts();
this._super(...arguments);
},
actions: {
// put the markdown into a new mobiledoc card, trigger external update
updateMarkdown(markdown) {