Compare commits

..

1 Commits

Author SHA1 Message Date
Pete Richards
737ccc26b5 Mutate correct path for plot range
Mutate correct path on object for axis range.  Fixes #2182.
2018-11-06 17:34:20 -08:00
2 changed files with 2 additions and 10 deletions

View File

@@ -177,15 +177,7 @@ define([
CompositionCollection.prototype.load = function () {
return this.provider.load(this.domainObject)
.then(function (children) {
return Promise.all(children.map(function (c) {
return this.publicAPI.objects.get(c);
}, this));
}.bind(this))
.then(function (childObjects) {
childObjects.forEach(function (c) {
this.add(c, true);
}, this);
return childObjects;
return Promise.all(children.map(this.onProviderAdd, this));
}.bind(this))
.then(function (children) {
this.emit('load');

View File

@@ -46,7 +46,7 @@ define([
},
{
modelProp: 'range',
objectPath: 'form.yAxis.range',
objectPath: 'configuration.yAxis.range',
coerce: function coerceRange(range) {
if (!range) {
return {