@@ -14,6 +14,10 @@ var Registry = require('../registry');
14
14
var Plots = require ( '../plots/plots' ) ;
15
15
var Lib = require ( '../lib' ) ;
16
16
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
+
17
21
var extendFlat = Lib . extendFlat ;
18
22
var extendDeep = Lib . extendDeep ;
19
23
var extendDeepAll = Lib . extendDeepAll ;
@@ -34,9 +38,6 @@ var plotSchema = {
34
38
defs : { }
35
39
} ;
36
40
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' ) ;
40
41
41
42
var PlotSchema = module . exports = { } ;
42
43
@@ -169,7 +170,7 @@ function coupleAttrs(attrsIn, attrsOut, whichAttrs, type) {
169
170
170
171
if ( k === NESTED_MODULE ) {
171
172
Object . keys ( attrsIn [ k ] ) . forEach ( function ( kk ) {
172
- nestedModule = getModule ( { module : attrsIn [ k ] [ kk ] } ) ;
173
+ nestedModule = getModule ( { _module : attrsIn [ k ] [ kk ] } ) ;
173
174
if ( nestedModule === undefined ) return ;
174
175
175
176
nestedAttrs = nestedModule [ whichAttrs ] ;
@@ -187,7 +188,7 @@ function coupleAttrs(attrsIn, attrsOut, whichAttrs, type) {
187
188
Object . keys ( attrsIn [ k ] ) . forEach ( function ( kk ) {
188
189
if ( kk !== type ) return ;
189
190
190
- composedModule = getModule ( { module : attrsIn [ k ] [ kk ] } ) ;
191
+ composedModule = getModule ( { _module : attrsIn [ k ] [ kk ] } ) ;
191
192
if ( composedModule === undefined ) return ;
192
193
193
194
composedAttrs = composedModule [ whichAttrs ] ;
@@ -253,7 +254,8 @@ function getModule(arg) {
253
254
}
254
255
255
256
var subplotsRegistry = Registry . subplotsRegistry ,
256
- _module = arg . module ;
257
+ componentsRegistry = Registry . componentsRegistry ,
258
+ _module = arg . _module ;
257
259
258
260
if ( subplotsRegistry [ _module ] ) return subplotsRegistry [ _module ] ;
259
261
else if ( 'module' in arg ) return Plotly [ _module ] ;
0 commit comments