mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Minor code clean-up.
This commit is contained in:
parent
401877c6dc
commit
086485dc95
2 changed files with 4 additions and 3 deletions
|
@ -146,8 +146,8 @@ var Key = new function() {
|
|||
if (key.length > 1 || browser.chrome && (event.altKey
|
||||
|| browser.mac && event.metaKey
|
||||
|| !browser.mac && event.ctrlKey)) {
|
||||
handleKey(true, key, charLookup[key] ||
|
||||
(key.length > 1 ? '' : key), event);
|
||||
handleKey(true, key, charLookup[key]
|
||||
|| (key.length > 1 ? '' : key), event);
|
||||
// Do not set downKey as we handled it already. E.g. space would
|
||||
// be handled twice otherwise, once here, once in keypress.
|
||||
} else {
|
||||
|
|
|
@ -367,7 +367,8 @@ var Path = PathItem.extend(/** @lends Path# */{
|
|||
},
|
||||
|
||||
_transformContent: function(matrix) {
|
||||
var coords = new Array(6), segments = this._segments;
|
||||
var segments = this._segments,
|
||||
coords = new Array(6);
|
||||
for (var i = 0, l = segments.length; i < l; i++)
|
||||
segments[i]._transformCoordinates(matrix, coords, true);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue