Skip to content

Commit 35470aa

Browse files
committed
add special case for plot modules in plot schema nested module handler
1 parent 51fd6fc commit 35470aa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/plot_api/plot_schema.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,12 @@ function getModule(arg) {
231231
{ attributes: polarAreaAttrs } :
232232
Plotly.Plots.getModule({type: arg.type});
233233
}
234-
else if('module' in arg) return Plotly[arg.module];
234+
235+
var subplotsRegistry = Plotly.Plots.subplotsRegistry,
236+
_module = arg.module;
237+
238+
if(subplotsRegistry[_module]) return subplotsRegistry[_module];
239+
else if('module' in arg) return Plotly[_module];
235240
}
236241

237242
function removeUnderscoreAttrs(attributes) {

0 commit comments

Comments
 (0)