Constructor
new Base()
Extend from this base class using Base.extend per example.
Example
var prototype = { ... };
var descendantClass = Base.extend(prototype};
Methods
createApply(Constructor, variableArgArray, …discreteArgs) → {object}
Instantiate an object with discrete + variable args.
The discrete args are passed first, followed by the variable args.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
Constructor |
function | ||
variableArgArray |
Array | ||
discreteArgs |
* |
<repeatable> |
Returns:
Object of type Constructor newly constructor using the arguments in arrayOfArgs.
- Type
- object
mixIn(source)
Mixes source members into calling context.
Context is typically either an instance or the (shared) prototype of a "class" extended from Base (see examples).
Typically used by plug-ins.
Parameters:
| Name | Type | Description |
|---|---|---|
source |
object |
Examples
// define instance members: myGrid.fix(), etc.
myGrid.mixIn({ fix: function() {...}, ... });
// define prototype members: Hypergrid.prototype.fix(), etc.
Hypergrid.prototype.mixIn({ fix: function() {...}, ... });
unwrap(value) → {*}
Convenience function for getting the value when that value can be defined as a function that needs to be called to get the actual (primitive) value.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
Returns:
- Type
- *