mirror of
https://github.com/documize/community.git
synced 2025-07-21 14:19:43 +02:00
removed TOc dead code
This commit is contained in:
parent
26243a5a55
commit
e25f23e94c
1 changed files with 1 additions and 11 deletions
|
@ -14,9 +14,8 @@ import { schedule } from '@ember/runloop'
|
|||
import { inject as service } from '@ember/service';
|
||||
import Component from '@ember/component';
|
||||
import tocUtil from '../../utils/toc';
|
||||
import NotifierMixin from '../../mixins/notifier';
|
||||
|
||||
export default Component.extend(NotifierMixin, {
|
||||
export default Component.extend({
|
||||
documentService: service('document'),
|
||||
document: {},
|
||||
folder: {},
|
||||
|
@ -37,12 +36,6 @@ export default Component.extend(NotifierMixin, {
|
|||
didReceiveAttrs() {
|
||||
this._super(...arguments);
|
||||
|
||||
this.set('showToc', is.not.undefined(this.get('pages')) && this.get('pages').get('length') > 0);
|
||||
|
||||
// if (is.not.null(this.get('currentPageId'))) {
|
||||
// this.send('onEntryClick', this.get('currentPageId'));
|
||||
// }
|
||||
|
||||
this.setState(this.get('currentPageId'));
|
||||
},
|
||||
|
||||
|
@ -173,9 +166,6 @@ export default Component.extend(NotifierMixin, {
|
|||
target.setAttribute('data-y', y);
|
||||
target.style.position = 'fixed';
|
||||
}
|
||||
|
||||
// this is used later in the resizing and gesture demos
|
||||
// window.dragMoveListener = dragMoveListener;
|
||||
},
|
||||
|
||||
// Controls what user can do with the toc (left sidebar)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue