Skip to content

gracefulBind

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/gracefulBind.ts for the most up-to-date information.

Overview

Support gracefully binding a global function to itself. Returns null if the global doesn't exist. @author Sam Reid (PhET Interactive Simulations) @author Michael Kauzmann (PhET Interactive Simulations)

Source Code

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