Skip to content

Commit 33b2bd0

Browse files
committed
make ax.cleanRange work in nested properties
1 parent 87b12cf commit 33b2bd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/cartesian/set_convert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ module.exports = function setConvert(ax) {
254254
*/
255255
ax.cleanRange = function(rangeAttr) {
256256
if(!rangeAttr) rangeAttr = 'range';
257-
var range = ax[rangeAttr],
257+
var range = Lib.nestedProperty(ax, rangeAttr).get(),
258258
axLetter = (ax._id || 'x').charAt(0),
259259
i, dflt;
260260

@@ -266,7 +266,7 @@ module.exports = function setConvert(ax) {
266266
dflt = dflt.slice();
267267

268268
if(!range || range.length !== 2) {
269-
ax[rangeAttr] = dflt;
269+
Lib.nestedProperty(ax, rangeAttr).set(dflt);
270270
return;
271271
}
272272

0 commit comments

Comments
 (0)