Updates application route: Adds todo and some code style updates
import Ember from 'ember';
-import ApplicationRouteMixin from 'ember-simple-auth/mixins/application-route-mixin';
+import ApplicationRouteMixin
+ from 'ember-simple-auth/mixins/application-route-mixin';
-export default Ember.Route.extend(ApplicationRouteMixin, {
+const {
+ Route,
+ run
+} = Ember;
+
+export default Route.extend(ApplicationRouteMixin, {
init() {
this._super(...arguments);
- Ember.run.scheduleOnce('afterRender', this, 'processLegacyDomOperations');
+ run.scheduleOnce('afterRender', this, 'processLegacyDomOperations');
},
processLegacyDomOperations() {
window.legacySearch();
+ // TODO: DSS-6122 Refactor Remove tree legacy operations & references
// window.legacyTree();
window.legacyMain();
}
-})
\ No newline at end of file
+});
