feat(example): add debug flag testing (non-) minified lib

This commit is contained in:
Nico Rehwaldt 2014-03-31 15:55:25 +02:00
parent 779312b8b6
commit 156181bc63
2 changed files with 10 additions and 2 deletions

View File

@ -47,7 +47,12 @@
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="../bpmn.min.js"></script>
<script>
var str = window.location.search;
var min = !/\?debug=/.test(str);
document.write('<script src="../bpmn' + (min ? '.min': '') + '.js"></' + 'script>');
</script>
<script>
var BpmnJS = require('bpmn/Modeler');

View File

@ -47,7 +47,10 @@
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="../../bpmn.min.js"></script>
<script>
var str = window.location.search; var min = !/\?debug=/.test(str);
document.write('<script src="../../bpmn' + (min ? '.min': '') + '.js"></' + 'script>');
</script>
<script>
var BpmnJS = require('bpmn/Viewer');