Skip to content

detectPrefixEvent

Overview

/* eslint-disable no-useless-concat */ Scans through potential event properties on an object to detect prefixed forms, and returns the first match.

E.g. currently: phet.phetCore.detectPrefixEvent( document, 'fullscreenchange' ) === 'webkitfullscreenchange'

@author Jonathan Olson <jonathan.olson@colorado.edu>

Source Code

See the source for detectPrefixEvent.ts in the phet-core repository.