Extends
Methods
-
getDatum(id) → nullable {object}
-
Base get
Parameters:
Name Type Description id
string Id for datum
Returns:
object -datum
- Inherited From:
Example
base.setDatum('a', 'hello world'); console.log(base.getDatum('a')); // "hello world";
-
log(str)
-
BaseChild log2
Parameters:
Name Type Description str
string string for log
- Overrides:
Example
base.log('hello world'); // "BaseChild - LOG1: hello world"
-
log2()
-
Base log2
- Inherited From:
Example
base.log2(); // "LOG2"
-
setDatum(id, datum)
-
Set datum
Parameters:
Name Type Description id
string Id for datum
datum
* Datum
- Inherited From:
Example
base.setDatum('a', 'hello world');
-
sum(a, b, retArr) → {Number|Array}
-
Returns the sum of a and b
Parameters:
Name Type Description a
Number b
Number retArr
Boolean If set to true, the function will return an array
Returns:
Number | Array -Sum of a and b or an array that contains a, b and the sum of a and b.
Events
-
foo
-
Example
baseChild.on('foo', function() { console.log('fire "foo"'); });