mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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,
|
"browser": true,
|
||||||
"evil": true,
|
"node": true,
|
||||||
"wsh": true,
|
"wsh": true,
|
||||||
|
"evil": true,
|
||||||
"trailing": false,
|
"trailing": false,
|
||||||
"smarttabs": false,
|
"smarttabs": false,
|
||||||
"sub": true,
|
"sub": true,
|
||||||
|
@ -11,5 +12,9 @@
|
||||||
"eqnull": true,
|
"eqnull": true,
|
||||||
"loopfunc": true,
|
"loopfunc": true,
|
||||||
"boss": true,
|
"boss": true,
|
||||||
"shadow": true
|
"shadow": true,
|
||||||
|
"globals": {
|
||||||
|
"Event": true,
|
||||||
|
"MouseEvent": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -235,7 +235,7 @@ var Style = Base.extend(new function() {
|
||||||
WindingRule: 'FillRule'
|
WindingRule: 'FillRule'
|
||||||
}, function(value, key) {
|
}, function(value, key) {
|
||||||
var get = 'get' + key,
|
var get = 'get' + key,
|
||||||
set = 'set' + key
|
set = 'set' + key;
|
||||||
fields[get] = item[get] = '#get' + value;
|
fields[get] = item[get] = '#get' + value;
|
||||||
fields[set] = item[set] = '#set' + value;
|
fields[set] = item[set] = '#set' + value;
|
||||||
});
|
});
|
||||||
|
|
|
@ -308,7 +308,7 @@ new function() {
|
||||||
attrs[entry.attribute + '-opacity'] = alpha;
|
attrs[entry.attribute + '-opacity'] = alpha;
|
||||||
}
|
}
|
||||||
if (type === 'style') {
|
if (type === 'style') {
|
||||||
style.push(entry.attribute + ': ' + value)
|
style.push(entry.attribute + ': ' + value);
|
||||||
} else {
|
} else {
|
||||||
attrs[entry.attribute] = value == null ? 'none'
|
attrs[entry.attribute] = value == null ? 'none'
|
||||||
: type === 'number' ? formatter.number(value)
|
: type === 'number' ? formatter.number(value)
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
* center, both useful for constructing artwork that should appear centered on
|
* center, both useful for constructing artwork that should appear centered on
|
||||||
* screen.
|
* screen.
|
||||||
*/
|
*/
|
||||||
|
/*jshint -W082 */
|
||||||
var View = Base.extend(Emitter, /** @lends View# */{
|
var View = Base.extend(Emitter, /** @lends View# */{
|
||||||
_class: 'View',
|
_class: 'View',
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue