Shell.js
Applies To: Windows Azure Pack
The base class used to define new classes.
Widgets
None.
Enums
None.
Properties
None.
Methods
Name |
Description |
Returns |
Parameters |
---|---|---|---|
Shell.Class.define |
Defines a new namespace with the specified name. Returns the newly defined namespace. |
String |
name (String): Name of the namespace. This could be a dot-separated nested name. members (Object): Members in the new namespace. |
Shell.Class.derive |
Uses prototypal inheritance to create a sub-class based on the supplied baseClass parameter. Returns the newly defined class. |
Function |
baseClass (Function): The class to inherit from. constructor (Function): A constructor function that will be used to instantiate this class. instanceMembers (Object): The set of instance fields, properties and methods to be made available on the class. staticMembers (Object): The set of static fields, properties and methods to be made available on the class. |
Shell.Class.mix |
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 can be of variable length. Returns the newly defined class. |
Function |
Constructor: A constructor function used to instantiate the class. |