diff --git a/.jshintrc b/.jshintrc index 2dde2a7d..c822e2f2 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,7 +1,8 @@ { "browser": true, + "node": true, + "wsh": true, "evil": true, - "wsh": true, "trailing": false, "smarttabs": false, "sub": true, @@ -11,5 +12,9 @@ "eqnull": true, "loopfunc": true, "boss": true, - "shadow": true + "shadow": true, + "globals": { + "Event": true, + "MouseEvent": true + } } diff --git a/src/style/Style.js b/src/style/Style.js index 9c3c9bac..128e1f3c 100644 --- a/src/style/Style.js +++ b/src/style/Style.js @@ -235,7 +235,7 @@ var Style = Base.extend(new function() { WindingRule: 'FillRule' }, function(value, key) { var get = 'get' + key, - set = 'set' + key + set = 'set' + key; fields[get] = item[get] = '#get' + value; fields[set] = item[set] = '#set' + value; }); diff --git a/src/svg/SVGExport.js b/src/svg/SVGExport.js index 56c129f8..da6f108e 100644 --- a/src/svg/SVGExport.js +++ b/src/svg/SVGExport.js @@ -308,7 +308,7 @@ new function() { attrs[entry.attribute + '-opacity'] = alpha; } if (type === 'style') { - style.push(entry.attribute + ': ' + value) + style.push(entry.attribute + ': ' + value); } else { attrs[entry.attribute] = value == null ? 'none' : type === 'number' ? formatter.number(value) diff --git a/src/view/View.js b/src/view/View.js index 2e3ecb43..0f76bf84 100644 --- a/src/view/View.js +++ b/src/view/View.js @@ -19,6 +19,7 @@ * center, both useful for constructing artwork that should appear centered on * screen. */ +/*jshint -W082 */ var View = Base.extend(Emitter, /** @lends View# */{ _class: 'View',