@@ -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 ] ,
@@ -867,6 +867,7 @@ angular.module('patternfly.charts').directive('pfDonutPctChart', ["c3ChartDefaul
867867 * <ul style='list-style-type: none'>
868868 * <li>.xData - Array, X values for the data points, first element must be the name of the data
869869 * <li>.yData - Array, Y Values for the data points, first element must be the name of the data
870+ * <li>.total - (optional) The Total amount, used when determining percentages
870871 * </ul>
871872 *
872873 * @param {int= } chartHeight height of the sparkline chart
@@ -1121,7 +1122,7 @@ angular.module('patternfly.charts').directive('pfSparklineChart', ["c3ChartDefau
11211122 $scope . defaultConfig . units = '' ;
11221123
11231124 // Override defaults with callers specifications
1124- $scope . config = $ . extend ( true , angular . copy ( $scope . defaultConfig ) , $scope . config ) ;
1125+ $scope . config = angular . merge ( { } , $scope . defaultConfig , $scope . config ) ;
11251126
11261127 // Convert the given data to C3 chart format
11271128 $scope . config . data = $scope . getSparklineData ( $scope . chartData ) ;
@@ -1130,7 +1131,7 @@ angular.module('patternfly.charts').directive('pfSparklineChart', ["c3ChartDefau
11301131
11311132 link : function ( scope ) {
11321133 scope . $watch ( 'config' , function ( ) {
1133- scope . config = $ . extend ( true , angular . copy ( scope . defaultConfig ) , scope . config ) ;
1134+ scope . config = angular . merge ( { } , scope . defaultConfig , scope . config ) ;
11341135 } , true ) ;
11351136 scope . $watch ( 'chartHeight' , function ( ) {
11361137 scope . config . size . height = scope . chartHeight ;
@@ -1674,7 +1675,7 @@ angular.module('patternfly.filters').directive('pfSimpleFilter',
16741675 } ;
16751676
16761677 $scope . setupConfig = function ( ) {
1677- $scope . config = $ . extend ( true , angular . copy ( defaultConfig ) , $scope . config ) ;
1678+ $scope . config = angular . merge ( { } , defaultConfig , $scope . config ) ;
16781679
16791680 if ( ! $scope . currentField ) {
16801681 $scope . currentField = $scope . config . fields [ 0 ] ;
@@ -2998,7 +2999,7 @@ angular.module('patternfly.views').directive('pfDataList', [
29982999 onDblClick : null
29993000 } ;
30003001
3001- $scope . config = $ . extend ( true , angular . copy ( $scope . defaultConfig ) , $scope . config ) ;
3002+ $scope . config = angular . merge ( { } , $scope . defaultConfig , $scope . config ) ;
30023003 if ( $scope . config . selectItems && $scope . config . showSelectBox ) {
30033004 throw new Error ( 'pfDataList - ' +
30043005 'Illegal use of pfDataList directive! ' +
@@ -3009,7 +3010,7 @@ angular.module('patternfly.views').directive('pfDataList', [
30093010
30103011 link : function ( scope , element , attrs ) {
30113012 attrs . $observe ( 'config' , function ( ) {
3012- scope . config = $ . extend ( true , angular . copy ( scope . defaultConfig ) , scope . config ) ;
3013+ scope . config = angular . merge ( { } , scope . defaultConfig , scope . config ) ;
30133014 if ( ! scope . config . selectItems ) {
30143015 scope . config . selectedItems = [ ] ;
30153016 }
@@ -3324,7 +3325,7 @@ angular.module('patternfly.views').directive('pfDataTiles', [
33243325 onDblClick : null
33253326 } ;
33263327
3327- $scope . config = $ . extend ( true , angular . copy ( $scope . defaultConfig ) , $scope . config ) ;
3328+ $scope . config = angular . merge ( { } , $scope . defaultConfig , $scope . config ) ;
33283329 if ( $scope . config . selectItems && $scope . config . showSelectBox ) {
33293330 throw new Error ( 'pfDataTiles - ' +
33303331 'Illegal use of pfDataTiles directive! ' +
@@ -3333,7 +3334,7 @@ angular.module('patternfly.views').directive('pfDataTiles', [
33333334 } ] ,
33343335 link : function ( scope , element , attrs ) {
33353336 attrs . $observe ( 'config' , function ( ) {
3336- scope . config = $ . extend ( true , angular . copy ( scope . defaultConfig ) , scope . config ) ;
3337+ scope . config = angular . merge ( { } , scope . defaultConfig , scope . config ) ;
33373338 if ( ! scope . config . selectItems ) {
33383339 scope . config . selectedItems = [ ] ;
33393340 }
0 commit comments