WinJS.Class.derive function
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: ObjectThe type to inherit from.
constructor
Type: FunctionA constructor function that is used to instantiate this type.
instanceMembers
Type: ObjectThe set of instance fields, properties, and methods to be made available on the type.
staticMembers
Type: ObjectThe 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 WinJS version |
WinJS 1.0 |
Namespace |
WinJS.Class |