1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 23:29:42 +02:00

Prettify code

This commit is contained in:
McMatts 2018-04-26 13:44:41 +01:00
parent f2a903d054
commit b1e0e31a9e
2 changed files with 3 additions and 3 deletions

View file

@ -252,6 +252,8 @@ export default Component.extend(TooltipMixin, {
}, },
onHideSectionWizard() { onHideSectionWizard() {
if (this.get('isDestroyed') || this.get('isDestroying')) return;
this.set('newSectionLocation', ''); this.set('newSectionLocation', '');
this.set('beforePage', null); this.set('beforePage', null);
$("#new-section-wizard").insertAfter('#wizard-placeholder'); $("#new-section-wizard").insertAfter('#wizard-placeholder');

View file

@ -69,9 +69,7 @@ export default Component.extend(ModalMixin, {
}, },
setupPins() { setupPins() {
if (this.get('isDestroyed') || this.get('isDestroying')) { if (this.get('isDestroyed') || this.get('isDestroying')) return;
return;
}
this.get('pinned').getUserPins().then((pins) => { this.get('pinned').getUserPins().then((pins) => {
if (this.get('isDestroyed') || this.get('isDestroying')) { if (this.get('isDestroyed') || this.get('isDestroying')) {