mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Get things up to speed again with JSHint.
This commit is contained in:
parent
b680301ce8
commit
3280b5700c
4 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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',
|
||||
|
||||
|
|
Loading…
Reference in a new issue