fix(build): correct jshint errors

This commit is contained in:
Nico Rehwaldt 2014-04-01 14:16:18 +02:00
parent 9e249efc83
commit 2eedfcbd2c
3 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,7 @@
module.exports = function(grunt) { module.exports = function(grunt) {
/* global Buffer */
require('load-grunt-tasks')(grunt); require('load-grunt-tasks')(grunt);
// project configuration // project configuration

View File

@ -52,7 +52,8 @@ var SVG_HEADER =
'<?xml version="1.0" encoding="utf-8"?>\n' + '<?xml version="1.0" encoding="utf-8"?>\n' +
'<!-- created with bpmn-js / http://bpmn.io -->\n' + '<!-- created with bpmn-js / http://bpmn.io -->\n' +
'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">\n' + '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">\n' +
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="basic">\n'; '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" ' +
'version="1.1" baseProfile="basic">\n';
Viewer.prototype.saveSVG = function(options, done) { Viewer.prototype.saveSVG = function(options, done) {
if (!done) { if (!done) {

View File

@ -17,7 +17,12 @@ function importBpmnDiagram(diagram, definitions, done) {
if (di.$type === 'bpmndi:BPMNShape') { if (di.$type === 'bpmndi:BPMNShape') {
var bounds = di.bounds; var bounds = di.bounds;
shape = { id: element.id, type: element.$type, x: bounds.x, y: bounds.y, width: bounds.width, height: bounds.height, parent: parent }; shape = {
id: element.id, type: element.$type,
x: bounds.x, y: bounds.y,
width: bounds.width, height: bounds.height,
parent: parent
};
canvas.addShape(shape); canvas.addShape(shape);
} else { } else {