phaser/src/utils/NULL.js

24 lines
523 B
JavaScript
Raw Normal View History

2022-11-24 00:42:04 +00:00
/**
* @author Richard Davey <rich@photonstorm.com>
2023-01-02 17:36:27 +00:00
* @copyright 2013-2023 Photon Storm Ltd.
2022-11-24 00:42:04 +00:00
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* A NULL OP callback function.
*
* This function always returns `null`.
*
* Used internally by Phaser when it's more expensive to determine if a callback exists
* than it is to just invoke an empty function.
*
* @function Phaser.Utils.NULL
* @since 3.60.0
*/
var NULL = function ()
{
return null;
};
module.exports = NULL;