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:
parent
1d0c914402
commit
ab99bcd20d
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue