Skip to content

Commit d11c8f9

Browse files
committed
lint plot_schema.js
1 parent 65ffb52 commit d11c8f9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/plot_api/plot_schema.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ var Registry = require('../registry');
1414
var Plots = require('../plots/plots');
1515
var Lib = require('../lib');
1616

17+
// FIXME polar attribute are not part of Plotly yet
18+
var polarAreaAttrs = require('../plots/polar/area_attributes');
19+
var polarAxisAttrs = require('../plots/polar/axis_attributes');
20+
1721
var extendFlat = Lib.extendFlat;
1822
var extendDeep = Lib.extendDeep;
1923
var extendDeepAll = Lib.extendDeepAll;
@@ -34,9 +38,6 @@ var plotSchema = {
3438
defs: {}
3539
};
3640

37-
// FIXME polar attribute are not part of Plotly yet
38-
var polarAreaAttrs = require('../plots/polar/area_attributes'),
39-
polarAxisAttrs = require('../plots/polar/axis_attributes');
4041

4142
var PlotSchema = module.exports = {};
4243

@@ -169,7 +170,7 @@ function coupleAttrs(attrsIn, attrsOut, whichAttrs, type) {
169170

170171
if(k === NESTED_MODULE) {
171172
Object.keys(attrsIn[k]).forEach(function(kk) {
172-
nestedModule = getModule({module: attrsIn[k][kk]});
173+
nestedModule = getModule({_module: attrsIn[k][kk]});
173174
if(nestedModule === undefined) return;
174175

175176
nestedAttrs = nestedModule[whichAttrs];
@@ -187,7 +188,7 @@ function coupleAttrs(attrsIn, attrsOut, whichAttrs, type) {
187188
Object.keys(attrsIn[k]).forEach(function(kk) {
188189
if(kk !== type) return;
189190

190-
composedModule = getModule({module: attrsIn[k][kk]});
191+
composedModule = getModule({_module: attrsIn[k][kk]});
191192
if(composedModule === undefined) return;
192193

193194
composedAttrs = composedModule[whichAttrs];
@@ -253,7 +254,8 @@ function getModule(arg) {
253254
}
254255

255256
var subplotsRegistry = Registry.subplotsRegistry,
256-
_module = arg.module;
257+
componentsRegistry = Registry.componentsRegistry,
258+
_module = arg._module;
257259

258260
if(subplotsRegistry[_module]) return subplotsRegistry[_module];
259261
else if('module' in arg) return Plotly[_module];

0 commit comments

Comments
 (0)