Fix for issues #239 and #257.

This commit is contained in:
knsv
2015-11-15 15:06:24 +01:00
parent 4a5828c732
commit 4eb38e4cfd
30 changed files with 744 additions and 1225 deletions

View File

@@ -17,7 +17,7 @@
* the diagrams to svg code.
*/
import * as Logger from './logger';
var Logger = require('./logger');
var log = new Logger.Log();
var mermaidAPI = require('./mermaidAPI');
@@ -270,7 +270,7 @@ if(typeof document !== 'undefined'){
/*!
* Wait for document loaded before starting the execution
*/
document.addEventListener('DOMContentLoaded', function(){
window.addEventListener('load', function(){
exports.contentLoaded();
}, false);
}