1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

Fix linting error

This commit is contained in:
Kevin Ansfield 2018-01-08 19:30:16 +00:00
parent 1d0c914402
commit ab99bcd20d

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) {