Skip to content

Commit b9988da

Browse files
committed
fix services
1 parent a4444a2 commit b9988da

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

app/js/services.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,13 @@ angular.module('bootstrapVariablesEditor.services', []).
7979
var variables = {};
8080
var fonts = [];
8181
for (var i = 0; i < $scope.variables.length; i++ ) {
82-
if (all == false && $scope.variables[i].name == "Private") {
83-
$scope.variables.splice(i,1);
84-
}else{
85-
for (var j = 0; j < $scope.variables[i].data.length; j++ ) {
86-
// if type = font, push it to an array
87-
if ($scope.variables[i].data[j].type == "font") {
88-
fonts.push($scope.variables[i].data[j].value);
89-
};
90-
variables[$scope.variables[i].data[j].key] = $scope.variables[i].data[j].value;
91-
}
92-
}
82+
for (var j = 0; j < $scope.variables[i].data.length; j++ ) {
83+
// if type = font, push it to an array
84+
if ($scope.variables[i].data[j].type == "font") {
85+
fonts.push($scope.variables[i].data[j].value);
86+
};
87+
variables[$scope.variables[i].data[j].key] = $scope.variables[i].data[j].value;
88+
}
9389
}
9490
return{
9591
variables: variables,

0 commit comments

Comments
 (0)