@@ -14,6 +14,10 @@ var Registry = require('../registry');
1414var Plots = require ( '../plots/plots' ) ;
1515var 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+
1721var extendFlat = Lib . extendFlat ;
1822var extendDeep = Lib . extendDeep ;
1923var 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
4142var 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