From 2eedfcbd2c7cccf141e5b1689fc65a168e8f6676 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Tue, 1 Apr 2014 14:16:18 +0200 Subject: [PATCH] fix(build): correct jshint errors --- Gruntfile.js | 2 ++ lib/Viewer.js | 3 ++- lib/import/Importer.js | 7 ++++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index f59769a2..0a2a35a1 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,5 +1,7 @@ module.exports = function(grunt) { + /* global Buffer */ + require('load-grunt-tasks')(grunt); // project configuration diff --git a/lib/Viewer.js b/lib/Viewer.js index ce042da9..97cf25ab 100644 --- a/lib/Viewer.js +++ b/lib/Viewer.js @@ -52,7 +52,8 @@ var SVG_HEADER = '\n' + '\n' + '\n' + -'\n'; +'\n'; Viewer.prototype.saveSVG = function(options, done) { if (!done) { diff --git a/lib/import/Importer.js b/lib/import/Importer.js index 4b6481a1..925511e5 100644 --- a/lib/import/Importer.js +++ b/lib/import/Importer.js @@ -17,7 +17,12 @@ function importBpmnDiagram(diagram, definitions, done) { if (di.$type === 'bpmndi:BPMNShape') { 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); } else {