WinJS.Class.derive function

0 out of 3 rated this helpful - Rate this topic

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

Syntax


var object = WinJS.Class.derive(baseClass, constructor, instanceMembers, staticMembers);

Parameters

baseClass

Type: Object

The type to inherit from.

constructor

Type: Function

A constructor function that is used to instantiate this type.

instanceMembers

Type: Object

The set of instance fields, properties, and methods to be made available on the type.

staticMembers

Type: Object

The set of static fields, properties, and methods to be made available on the type.

Return value

Type: Object

The newly-defined type.

Remarks

For more information about prototypes and protype inheritance, see Prototypes and Prototype Inheritance.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

WinJS.Class

Library

Base.js

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.