Adding init argument to the global API

Will also handle future arguments :)
This commit is contained in:
bollwyvl 2015-03-10 15:38:53 -04:00
parent b0cf9836af
commit f591fedb77

View File

@ -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();