Fix of broken tests

This commit is contained in:
knsv
2015-10-04 19:30:53 +02:00
parent c5d41c5a21
commit 122274bf52
9 changed files with 879 additions and 809 deletions

View File

@@ -45,6 +45,7 @@ module.exports.mermaidAPI = mermaidAPI;
* @param nodes a css selector or an array of nodes
*/
var init = function () {
var conf= mermaidAPI.getConfig();
log.debug('Starting rendering diagrams');
var nodes;
if(arguments.length >= 2){
@@ -65,7 +66,6 @@ var init = function () {
callback = arguments[arguments.length-1];
log.debug('Callback function found');
}else{
var conf= mermaidAPI.getConfig();
if(typeof conf.mermaid !== 'undefined'){
if(typeof conf.mermaid.callback === 'function'){
callback = conf.mermaid.callback;