mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Adding init argument to the global API
Will also handle future arguments :)
This commit is contained in:
parent
b0cf9836af
commit
f591fedb77
@ -176,9 +176,8 @@ var equals = function (val, variable){
|
||||
global.mermaid = {
|
||||
startOnLoad:true,
|
||||
htmlLabels:true,
|
||||
init:function(sequenceConfig){
|
||||
|
||||
init(sequenceConfig);
|
||||
init:function(sequenceConfig, nodes){
|
||||
init.apply(null, arguments);
|
||||
},
|
||||
version:function(){
|
||||
return exports.version();
|
||||
|
Loading…
x
Reference in New Issue
Block a user