cf2:Mixins

Purpose

Mixin classes provide functionality intended to be used by different Client Framework 2 components. Please note that mixin classes cannot be instantiated, attempting to do so will result in an error being thrown.

Note:

This component is deprecated and is replaced with the mixin(c) method provided by the cf2:Class component.

Exported Features

cf2:Mixins

Imported Features

n/a

JavaScript

The V$ object contains the mixin(sourceClass, targetClass) method.

mixin(sourceClass, targetClass)

Adds the methods defined in the sourceClass's prototype object to the targetClass's prototype object.

Parameter Description Type
sourceClass The source class which prototype methods are to be added to the targetClass's prototype object. Object
targetClass The target class which prototype object will be updated with the methods from the sourceClass's prototype. Object

Related topics