From 0badb3b3f48c74526393ffff92e2323921c070e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 20 Dec 2015 12:02:39 +0100 Subject: [PATCH] A bunch of code clean-ups. --- src/event/Key.js | 6 +++--- src/item/Item.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/event/Key.js b/src/event/Key.js index 48243d87..ac30ee6d 100644 --- a/src/event/Key.js +++ b/src/event/Key.js @@ -17,8 +17,8 @@ var Key = new function() { var keyLookup = { // Unify different naming scheme, e.g. Gecko, IE, ... - ' ': 'space', '\t': 'tab', + ' ': 'space', 'Spacebar': 'space', 'Win': 'meta', 'Del': 'delete', @@ -91,8 +91,8 @@ var Key = new function() { tool = scope && scope.tool, name; keyMap[key] = down; - // Link the key from keydown with the charCode form keypress, so keyup - // can retrieve the charCode again. + // Link the key from keydown with the character form keypress, so keyup + // can retrieve the character again. // Use delete instead of setting to null, so charMap only contains keys // that are currently pressed, allowing the use of `key in charMap` // checks and enumeration over pressed keys, e.g. in the blur event. diff --git a/src/item/Item.js b/src/item/Item.js index 38872f5e..5ee1054c 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -2809,8 +2809,8 @@ var Item = Base.extend(Emitter, /** @lends Item# */{ * miterLimit imposes a limit on the ratio of the miter length to the * {@link Item#strokeWidth}. * - * @property * @name Item#miterLimit + * @property * @default 10 * @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 * modern browsers support winding-rules other than {@code 'nonzero'}. * - * @property * @name Item#windingRule + * @property * @default 'nonzero' * @type String('nonzero', 'evenodd') */