Skip to content

Commit aab94ab

Browse files
committed
improve less compilation
1 parent 8f26dda commit aab94ab

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

app/js/services.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,18 @@ angular.module('bootstrapVariablesEditor.services', []).
8080
var fonts = [];
8181
for (var i = 0; i < $scope.variables.length; i++ ) {
8282

83-
for (var j = 0; j < $scope.variables[i].data.length; j++ ) {
84-
// if type = font, push it to an array
85-
if ($scope.variables[i].data[j].type == "font") {
86-
fonts.push($scope.variables[i].data[j].value);
87-
};
88-
variables[$scope.variables[i].data[j].key] = $scope.variables[i].data[j].value;
89-
}
90-
83+
if (all == false && $scope.variables[i].name == "Private") {
84+
$scope.variables.splice(i,1);
85+
}else{
86+
for (var j = 0; j < $scope.variables[i].data.length; j++ ) {
87+
// if type = font, push it to an array
88+
if ($scope.variables[i].data[j].type == "font") {
89+
fonts.push($scope.variables[i].data[j].value);
90+
};
91+
variables[$scope.variables[i].data[j].key] = $scope.variables[i].data[j].value;
92+
}
93+
}
94+
9195
}
9296
return{
9397
variables: variables,

0 commit comments

Comments
 (0)