1
0
Fork 0
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:
Harvey Kandola 2017-12-14 20:02:49 +00:00
parent 26243a5a55
commit e25f23e94c

View file

@ -14,9 +14,8 @@ import { schedule } from '@ember/runloop'
import { inject as service } from '@ember/service'; import { inject as service } from '@ember/service';
import Component from '@ember/component'; import Component from '@ember/component';
import tocUtil from '../../utils/toc'; import tocUtil from '../../utils/toc';
import NotifierMixin from '../../mixins/notifier';
export default Component.extend(NotifierMixin, { export default Component.extend({
documentService: service('document'), documentService: service('document'),
document: {}, document: {},
folder: {}, folder: {},
@ -37,12 +36,6 @@ export default Component.extend(NotifierMixin, {
didReceiveAttrs() { didReceiveAttrs() {
this._super(...arguments); 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')); this.setState(this.get('currentPageId'));
}, },
@ -173,9 +166,6 @@ export default Component.extend(NotifierMixin, {
target.setAttribute('data-y', y); target.setAttribute('data-y', y);
target.style.position = 'fixed'; 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) // Controls what user can do with the toc (left sidebar)