Utils.mixinPrototype()

<static> mixinPrototype(target, mixin, replace)

Mixes in an existing mixin object with the target.

Values in the mixin that have either get or set functions are created as properties via defineProperty
except if they also define a clone method - if a clone method is defined that is called instead and
the result is assigned directly.

Parameters
Name Type Argument Default Description
target object

The target object to receive the new functions.

mixin object

The object to copy the functions from.

replace boolean <optional>
false

If the target object already has a matching function should it be overwritten or not?

Source code: utils/Utils.js (Line 338)
doc_phaser
2017-02-14 11:19:18
Comments
Leave a Comment

Please login to continue.