2
|
1 |
dcounter = 10
|
|
2 |
function draw(value) {
|
|
3 |
baseRet = Base.prototype.draw(value)
|
|
4 |
old = dcounter
|
|
5 |
dcounter += 10
|
|
6 |
return baseRet + old * value;
|
|
7 |
|
|
8 |
}
|
|
9 |
function Derived() {
|
|
10 |
Base.apply(this)
|
|
11 |
}
|
|
12 |
Derived.prototype = new Base;
|
|
13 |
|
|
14 |
Derived.prototype.draw = draw
|
|
15 |
|