removing unnecessary if statement

This commit is contained in:
Alejandro Ocampo
2017-11-03 11:51:39 +01:00
parent 27115e5794
commit 29f93160b7

View File

@@ -10,11 +10,7 @@ function textboxController($scope) {
}
if ($scope.model.config && $scope.model.config.maxChars) {
if ($scope.model.config.maxChars < 500) {
$scope.model.showcharacterslefttext = true;
} else {
$scope.model.showcharacterslefttext = false;
}
$scope.model.showcharacterslefttext = $scope.model.config.maxChars < 500;
if ($scope.model.value == undefined) {
$scope.model.count = ($scope.model.config.maxChars * 1);