WinJS.Class Namespace

Provides helper functions for defining Classes.

The WinJS.Class namespace has these types of members:

  • Functions

Functions

Function Description

define function

Defines a class using the given constructor and the specified instance members.

derive function

Creates a sub-class based on the specified baseClass parameter, using prototype inheritance.

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.

 

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Class