Minor code clean-up.

This commit is contained in:
Jürg Lehni 2015-12-20 22:40:06 +01:00
parent 401877c6dc
commit 086485dc95
2 changed files with 4 additions and 3 deletions

View file

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

View file

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