Skip to content

detectPrefixEvent

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/phet-core/blob/main/js/detectPrefixEvent.ts for the most up-to-date information.

Overview

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.