<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)
Please login to continue.