Share via


WinJS.Class.mix function

Defines a class using the given constructor and the union of the set of instance members specified by all the mixin objects. The mixin parameter list is of variable length.

For more information, see Adding functionality with WinJS mixins.

Syntax

var object = WinJS.Class.mix(constructor);

Parameters

  • constructor
    Type: Function

    A constructor function that will be used to instantiate this class.

Return value

Type: Object

The newly defined class.

Remarks

For more information about mixins, see Mixin.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Class