mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-21 00:09:51 +02:00
Adding init argument to the global API
Will also handle future arguments :)
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user