File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments