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