@@ -787,7 +787,7 @@ angular.module('patternfly.charts').directive('pfDonutPctChart', ["c3ChartDefaul
787787 $scope . config . tooltip = donutTooltip ( scope ) ;
788788 } ;
789789
790- $scope . config = $ . extend ( true , c3ChartDefaults . getDefaultDonutConfig ( ) , $scope . config ) ;
790+ $scope . config = angular . merge ( { } , c3ChartDefaults . getDefaultDonutConfig ( ) , $scope . config ) ;
791791 $scope . updateAll ( $scope ) ;
792792 }
793793 ] ,
@@ -1121,7 +1121,7 @@ angular.module('patternfly.charts').directive('pfSparklineChart', ["c3ChartDefau
11211121 $scope . defaultConfig . units = '' ;
11221122
11231123 // Override defaults with callers specifications
1124- $scope . config = $ . extend ( true , angular . copy ( $scope . defaultConfig ) , $scope . config ) ;
1124+ $scope . config = angular . merge ( { } , $scope . defaultConfig , $scope . config ) ;
11251125
11261126 // Convert the given data to C3 chart format
11271127 $scope . config . data = $scope . getSparklineData ( $scope . chartData ) ;
@@ -1130,7 +1130,7 @@ angular.module('patternfly.charts').directive('pfSparklineChart', ["c3ChartDefau
11301130
11311131 link : function ( scope ) {
11321132 scope . $watch ( 'config' , function ( ) {
1133- scope . config = $ . extend ( true , angular . copy ( scope . defaultConfig ) , scope . config ) ;
1133+ scope . config = angular . merge ( { } , scope . defaultConfig , scope . config ) ;
11341134 } , true ) ;
11351135 scope . $watch ( 'chartHeight' , function ( ) {
11361136 scope . config . size . height = scope . chartHeight ;
@@ -1674,7 +1674,7 @@ angular.module('patternfly.filters').directive('pfSimpleFilter',
16741674 } ;
16751675
16761676 $scope . setupConfig = function ( ) {
1677- $scope . config = $ . extend ( true , angular . copy ( defaultConfig ) , $scope . config ) ;
1677+ $scope . config = angular . merge ( { } , defaultConfig , $scope . config ) ;
16781678
16791679 if ( ! $scope . currentField ) {
16801680 $scope . currentField = $scope . config . fields [ 0 ] ;
@@ -2998,7 +2998,7 @@ angular.module('patternfly.views').directive('pfDataList', [
29982998 onDblClick : null
29992999 } ;
30003000
3001- $scope . config = $ . extend ( true , angular . copy ( $scope . defaultConfig ) , $scope . config ) ;
3001+ $scope . config = angular . merge ( { } , $scope . defaultConfig , $scope . config ) ;
30023002 if ( $scope . config . selectItems && $scope . config . showSelectBox ) {
30033003 throw new Error ( 'pfDataList - ' +
30043004 'Illegal use of pfDataList directive! ' +
@@ -3009,7 +3009,7 @@ angular.module('patternfly.views').directive('pfDataList', [
30093009
30103010 link : function ( scope , element , attrs ) {
30113011 attrs . $observe ( 'config' , function ( ) {
3012- scope . config = $ . extend ( true , angular . copy ( scope . defaultConfig ) , scope . config ) ;
3012+ scope . config = angular . merge ( { } , scope . defaultConfig , scope . config ) ;
30133013 if ( ! scope . config . selectItems ) {
30143014 scope . config . selectedItems = [ ] ;
30153015 }
@@ -3324,7 +3324,7 @@ angular.module('patternfly.views').directive('pfDataTiles', [
33243324 onDblClick : null
33253325 } ;
33263326
3327- $scope . config = $ . extend ( true , angular . copy ( $scope . defaultConfig ) , $scope . config ) ;
3327+ $scope . config = angular . merge ( { } , $scope . defaultConfig , $scope . config ) ;
33283328 if ( $scope . config . selectItems && $scope . config . showSelectBox ) {
33293329 throw new Error ( 'pfDataTiles - ' +
33303330 'Illegal use of pfDataTiles directive! ' +
@@ -3333,7 +3333,7 @@ angular.module('patternfly.views').directive('pfDataTiles', [
33333333 } ] ,
33343334 link : function ( scope , element , attrs ) {
33353335 attrs . $observe ( 'config' , function ( ) {
3336- scope . config = $ . extend ( true , angular . copy ( scope . defaultConfig ) , scope . config ) ;
3336+ scope . config = angular . merge ( { } , scope . defaultConfig , scope . config ) ;
33373337 if ( ! scope . config . selectItems ) {
33383338 scope . config . selectedItems = [ ] ;
33393339 }
0 commit comments