A bunch of code clean-ups.

This commit is contained in:
Jürg Lehni 2015-12-20 12:02:39 +01:00
parent 248364aebc
commit 0badb3b3f4
2 changed files with 5 additions and 5 deletions

View file

@ -17,8 +17,8 @@
var Key = new function() { var Key = new function() {
var keyLookup = { var keyLookup = {
// Unify different naming scheme, e.g. Gecko, IE, ... // Unify different naming scheme, e.g. Gecko, IE, ...
' ': 'space',
'\t': 'tab', '\t': 'tab',
' ': 'space',
'Spacebar': 'space', 'Spacebar': 'space',
'Win': 'meta', 'Win': 'meta',
'Del': 'delete', 'Del': 'delete',
@ -91,8 +91,8 @@ var Key = new function() {
tool = scope && scope.tool, tool = scope && scope.tool,
name; name;
keyMap[key] = down; keyMap[key] = down;
// Link the key from keydown with the charCode form keypress, so keyup // Link the key from keydown with the character form keypress, so keyup
// can retrieve the charCode again. // can retrieve the character again.
// Use delete instead of setting to null, so charMap only contains keys // Use delete instead of setting to null, so charMap only contains keys
// that are currently pressed, allowing the use of `key in charMap` // that are currently pressed, allowing the use of `key in charMap`
// checks and enumeration over pressed keys, e.g. in the blur event. // checks and enumeration over pressed keys, e.g. in the blur event.

View file

@ -2809,8 +2809,8 @@ var Item = Base.extend(Emitter, /** @lends Item# */{
* miterLimit imposes a limit on the ratio of the miter length to the * miterLimit imposes a limit on the ratio of the miter length to the
* {@link Item#strokeWidth}. * {@link Item#strokeWidth}.
* *
* @property
* @name Item#miterLimit * @name Item#miterLimit
* @property
* @default 10 * @default 10
* @type Number * @type Number
*/ */
@ -2819,8 +2819,8 @@ var Item = Base.extend(Emitter, /** @lends Item# */{
* The winding-rule with which the shape gets filled. Please note that only * The winding-rule with which the shape gets filled. Please note that only
* modern browsers support winding-rules other than {@code 'nonzero'}. * modern browsers support winding-rules other than {@code 'nonzero'}.
* *
* @property
* @name Item#windingRule * @name Item#windingRule
* @property
* @default 'nonzero' * @default 'nonzero'
* @type String('nonzero', 'evenodd') * @type String('nonzero', 'evenodd')
*/ */