New docs and updated dist

This commit is contained in:
knsv
2015-09-26 13:00:30 +02:00
parent fb94aaaa6f
commit 709ebe524d
27 changed files with 91032 additions and 30619 deletions

View File

@@ -86,7 +86,7 @@ Logger.levels = {
warn: 3,
error: 4,
fatal: 5,
default:2
default:1
};
exports.create = function(type, options) {

View File

@@ -230,7 +230,6 @@ exports.contentLoaded = function(){
}
}
else {
mermaidAPI.initialize({startOnLoad:global.mermaid.startOnLoad});
// No config found, do check API config
config = mermaidAPI.getConfig();
if(config.startOnLoad){
@@ -238,15 +237,17 @@ exports.contentLoaded = function(){
}
}
}else{
if(typeof global.mermaid === 'undefined' ){
//if(typeof global.mermaid === 'undefined' ){
if(typeof global.mermaid.startOnLoad === 'undefined' ){
log.debug('In start, no config');
config = mermaidAPI.getConfig();
if(config.startOnLoad){
global.mermaid.init();
}
//}else{
//
//}
}
log.debug('In start, no config');
config = mermaidAPI.getConfig();
if(config.startOnLoad){
global.mermaid.init();
}
}
}