@@ -41,7 +41,7 @@ defaults._set('global', {
41
41
* returns a deep copy of the result, thus doesn't alter inputs.
42
42
*/
43
43
function mergeScaleConfig ( /* config objects ... */ ) {
44
- return helpers . merge ( { } , Array . prototype . slice . call ( arguments ) , {
44
+ return helpers . merge ( { } , [ ] . slice . call ( arguments ) , {
45
45
merger : function ( key , target , source , options ) {
46
46
if ( key === 'xAxes' || key === 'yAxes' ) {
47
47
var slen = source [ key ] . length ;
@@ -53,7 +53,7 @@ function mergeScaleConfig(/* config objects ... */) {
53
53
54
54
for ( i = 0 ; i < slen ; ++ i ) {
55
55
scale = source [ key ] [ i ] ;
56
- type = helpers . valueOrDefault ( scale . type , key === 'xAxes' ? 'category' : 'linear' ) ;
56
+ type = valueOrDefault ( scale . type , key === 'xAxes' ? 'category' : 'linear' ) ;
57
57
58
58
if ( i >= target [ key ] . length ) {
59
59
target [ key ] . push ( { } ) ;
@@ -81,7 +81,7 @@ function mergeScaleConfig(/* config objects ... */) {
81
81
* a deep copy of the result, thus doesn't alter inputs.
82
82
*/
83
83
function mergeConfig ( /* config objects ... */ ) {
84
- return helpers . merge ( { } , Array . prototype . slice . call ( arguments ) , {
84
+ return helpers . merge ( { } , [ ] . slice . call ( arguments ) , {
85
85
merger : function ( key , target , source , options ) {
86
86
var tval = target [ key ] || { } ;
87
87
var sval = source [ key ] ;
0 commit comments