ApplicationManager and better memory management

This commit is contained in:
Mo Bitar
2020-03-23 19:59:55 -05:00
parent 7dc3dab90b
commit ee7cb1fce6
55 changed files with 36786 additions and 3046 deletions

View File

@@ -4,14 +4,9 @@ import { PureCtrl } from '@Controllers';
class ActionsMenuCtrl extends PureCtrl {
/* @ngInject */
constructor(
$scope,
$timeout,
application,
appState,
godService
$timeout
) {
super($scope, $timeout, application, appState);
this.godService = godService;
super($timeout);
this.state = {
extensions: []
};
@@ -77,7 +72,7 @@ class ActionsMenuCtrl extends PureCtrl {
switch (action.verb) {
case 'render': {
const item = result.item;
this.godService.presentRevisionPreviewModal(
this.application.presentRevisionPreviewModal(
item.uuid,
item.content
);
@@ -111,7 +106,8 @@ export class ActionsMenu {
this.controllerAs = 'self';
this.bindToController = true;
this.scope = {
item: '='
item: '=',
application: '='
};
}
}