Skip to content

Commit 71db785

Browse files
committed
Plot register function warns instead of throwing error
1 parent 23519f0 commit 71db785

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plots/plots.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ plots.fontWeight = 'normal';
4141
*/
4242
plots.register = function(_module, thisType, categoriesIn, meta) {
4343
if(modules[thisType]) {
44-
throw new Error('type ' + thisType + ' already registered');
44+
console.warn('type ' + thisType + ' already registered');
45+
return;
4546
}
4647

4748
var categoryObj = {};

0 commit comments

Comments
 (0)