Skip to content

Commit bc0f890

Browse files
committed
extendFlat -> slice
1 parent d9cb011 commit bc0f890

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/plots/gl3d/layout/convert.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
'use strict';
1111

12-
var Lib = require('../../../lib');
1312
var convertHTMLToUnicode = require('../../../lib/html2unicode');
1413
var str2RgbaArray = require('../../../lib/str2rgbarray');
1514

@@ -62,9 +61,9 @@ function AxesOptions() {
6261
[0.8, 0.8, 0.8, 0.5] ];
6362

6463
// some default values are stored for applying model transforms
65-
this._defaultTickPad = Lib.extendFlat([], this.tickPad);
66-
this._defaultLabelPad = Lib.extendFlat([], this.labelPad);
67-
this._defaultLineTickLength = Lib.extendFlat([], this.lineTickLength);
64+
this._defaultTickPad = this.tickPad.slice();
65+
this._defaultLabelPad = this.labelPad.slice();
66+
this._defaultLineTickLength = this.lineTickLength.slice();
6867
}
6968

7069
var proto = AxesOptions.prototype;

0 commit comments

Comments
 (0)