From d76685e81857cdcf182cf69222f2ac1da35de0ed Mon Sep 17 00:00:00 2001 From: zepumph Date: Thu, 14 Feb 2019 16:45:48 -0900 Subject: [PATCH] add ' static get ' to bad sim text, https://github.com/phetsims/tasks/issues/983 --- js/input/Input.js | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/js/input/Input.js b/js/input/Input.js index 54465736a..742105a7a 100644 --- a/js/input/Input.js +++ b/js/input/Input.js @@ -1994,31 +1994,31 @@ define( require => { return event.pointerType; // hope for the best } } + } - // @public {Array.} - 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.} - 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.} - Valid prefixes for the accessibility event types above - static get A11Y_EVENT_TYPES() { - return [ 'focus', 'blur', 'click', 'input', 'change', 'keydown', 'keyup' ]; - } + // @public {Array.} - Valid prefixes for the accessibility event types above + Input.A11Y_EVENT_TYPES = () => { + return [ 'focus', 'blur', 'click', 'input', 'change', 'keydown', 'keyup' ]; + }; - // @public {Array.} - Valid prefixes for the basic event types above - static get EVENT_PREFIXES() { - return [ '', 'mouse', 'touch', 'pen' ]; - } + // @public {Array.} - Valid prefixes for the basic event types above + Input.EVENT_PREFIXES = () => { + return [ '', 'mouse', 'touch', 'pen' ]; + }; - // @public {Array.} - 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.} - 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 ); } );