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 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.

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
* {@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')
*/