Get things up to speed again with JSHint.

This commit is contained in:
Jürg Lehni 2016-01-08 18:16:29 +01:00
parent b680301ce8
commit 3280b5700c
4 changed files with 10 additions and 4 deletions

View file

@ -1,7 +1,8 @@
{
"browser": true,
"evil": true,
"node": true,
"wsh": true,
"evil": 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
}
}

View file

@ -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;
});

View file

@ -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)

View file

@ -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',