Skip to content

Commit

Permalink
add ' static get ' to bad sim text, phetsims/tasks#983
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 15, 2019
1 parent 013b758 commit d76685e
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions js/input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -1994,31 +1994,31 @@ define( require => {
return event.pointerType; // hope for the best
}
}
}

// @public {Array.<string>} - Basic event listener types that are not pointer-type specific
static get BASIC_EVENT_TYPES() {
return [ 'down', 'up', 'cancel', 'move', 'wheel', 'enter', 'exit', 'over', 'out' ];
}
// @public {Array.<string>} - Basic event listener types that are not pointer-type specific
Input.BASIC_EVENT_TYPES = () => {
return [ 'down', 'up', 'cancel', 'move', 'wheel', 'enter', 'exit', 'over', 'out' ];
};

// @public {Array.<string>} - Valid prefixes for the accessibility event types above
static get A11Y_EVENT_TYPES() {
return [ 'focus', 'blur', 'click', 'input', 'change', 'keydown', 'keyup' ];
}
// @public {Array.<string>} - Valid prefixes for the accessibility event types above
Input.A11Y_EVENT_TYPES = () => {
return [ 'focus', 'blur', 'click', 'input', 'change', 'keydown', 'keyup' ];
};

// @public {Array.<string>} - Valid prefixes for the basic event types above
static get EVENT_PREFIXES() {
return [ '', 'mouse', 'touch', 'pen' ];
}
// @public {Array.<string>} - Valid prefixes for the basic event types above
Input.EVENT_PREFIXES = () => {
return [ '', 'mouse', 'touch', 'pen' ];
};

// @public {Array.<string>} - Includes basic and specific types, e.g. both 'up' and 'mouseup'
static get ALL_EVENT_TYPES() {
return Input.EVENT_PREFIXES.map( prefix => {
return Input.BASIC_EVENT_TYPES.map( eventName => {
return prefix + eventName;
} );
} ).concat( [ Input.A11Y_EVENT_TYPES ] );
}
}
// @public {Array.<string>} - Includes basic and specific types, e.g. both 'up' and 'mouseup'
Input.ALL_EVENT_TYPES = () => {
return Input.EVENT_PREFIXES.map( prefix => {
return Input.BASIC_EVENT_TYPES.map( eventName => {
return prefix + eventName;
} );
} ).concat( [ Input.A11Y_EVENT_TYPES ] );
};

return scenery.register( 'Input', Input );
} );

0 comments on commit d76685e

Please sign in to comment.