Skip to content
Permalink
Browse files

Remove unnecessary digesting

  • Loading branch information...
raitisbe committed Jul 20, 2019
1 parent fd031a7 commit f6ff0ffcc491d5e1b4c0545964a7c6bf95f32369
Showing with 0 additions and 5 deletions.
  1. +0 −5 components/info/info.component.js
@@ -73,7 +73,6 @@ export default {
$scope.composition_title = temp_title;
$scope.composition_abstract = temp_abstract;
$scope.info_image = 'icon-map';
if (!$scope.$$phase) $scope.$digest();
}, 3000);
}
$scope.composition_loaded = true;
@@ -85,15 +84,13 @@ export default {
* @description Status of composition edit (true for edited composition)
*/
$scope.composition_edited = false;
if (!$scope.$$phase) $scope.$digest();
});

$scope.$on('layermanager.layer_loading', function (event, layer) {
if (!(layer.get('title') in $scope.layer_loading)) {
$scope.layer_loading.push(layer.get('title'));
}
$scope.composition_loaded = false;
if (!$scope.$$phase) $scope.$digest();
})

$scope.$on('layermanager.layer_loaded', function (event, layer) {
@@ -106,14 +103,12 @@ export default {
if ($scope.layer_loading.length == 0) {
$scope.composition_loaded = true;
}
if (!$scope.$$phase) $scope.$digest();
})

$scope.$on('compositions.composition_deleted', function (event, id) {
if (id == $scope.composition_id) {
delete $scope.composition_title;
delete $scope.composition_abstract;
if (!$scope.$$phase) $scope.$digest();
}
});

0 comments on commit f6ff0ff

Please sign in to comment.
You can’t perform that action at this time.