Fix for issue #259

This commit is contained in:
knsv 2015-11-22 18:55:37 +01:00
parent a9f4f8e06c
commit 425a83c0da
7 changed files with 59 additions and 47 deletions

28
dist/mermaid.js vendored
View File

@ -39909,7 +39909,8 @@ var config = {
return d.getMonth();
}]]
},
classDiagram: {}
classDiagram: {},
info: {}
};
Logger.setLogLevel(config.logLevel);
@ -40134,18 +40135,21 @@ var render = function render(id, txt, cb, container) {
};
exports.render = function (id, text, cb, containerElement) {
log.info('APA');
if (arguments.length === 1) {
text = id;
id = 'mermaidId0';
}
if (typeof document === 'undefined') {
// Todo handle rendering serverside using phantomjs
} else {
// In browser
return render(id, text, cb, containerElement);
try {
if (arguments.length === 1) {
text = id;
id = 'mermaidId0';
}
if (typeof document === 'undefined') {
// Todo handle rendering serverside using phantomjs
} else {
// In browser
return render(id, text, cb, containerElement);
}
} catch (e) {
log.warn(e);
}
};
var setConf = function setConf(cnf) {

4
dist/mermaid.min.js vendored

File diff suppressed because one or more lines are too long

28
dist/mermaid.slim.js vendored
View File

@ -30404,7 +30404,8 @@ var config = {
return d.getMonth();
}]]
},
classDiagram: {}
classDiagram: {},
info: {}
};
Logger.setLogLevel(config.logLevel);
@ -30629,18 +30630,21 @@ var render = function render(id, txt, cb, container) {
};
exports.render = function (id, text, cb, containerElement) {
log.info('APA');
if (arguments.length === 1) {
text = id;
id = 'mermaidId0';
}
if (typeof document === 'undefined') {
// Todo handle rendering serverside using phantomjs
} else {
// In browser
return render(id, text, cb, containerElement);
try {
if (arguments.length === 1) {
text = id;
id = 'mermaidId0';
}
if (typeof document === 'undefined') {
// Todo handle rendering serverside using phantomjs
} else {
// In browser
return render(id, text, cb, containerElement);
}
} catch (e) {
log.warn(e);
}
};
var setConf = function setConf(cnf) {

File diff suppressed because one or more lines are too long

28
dist/mermaidAPI.js vendored
View File

@ -39303,7 +39303,8 @@ var config = {
return d.getMonth();
}]]
},
classDiagram: {}
classDiagram: {},
info: {}
};
Logger.setLogLevel(config.logLevel);
@ -39528,18 +39529,21 @@ var render = function render(id, txt, cb, container) {
};
exports.render = function (id, text, cb, containerElement) {
log.info('APA');
if (arguments.length === 1) {
text = id;
id = 'mermaidId0';
}
if (typeof document === 'undefined') {
// Todo handle rendering serverside using phantomjs
} else {
// In browser
return render(id, text, cb, containerElement);
try {
if (arguments.length === 1) {
text = id;
id = 'mermaidId0';
}
if (typeof document === 'undefined') {
// Todo handle rendering serverside using phantomjs
} else {
// In browser
return render(id, text, cb, containerElement);
}
} catch (e) {
log.warn(e);
}
};
var setConf = function setConf(cnf) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long