1 | var inherits = require('inherits');
|
2 |
|
3 | var Bar = require('./bar').Bar;
|
4 |
|
5 |
|
6 | function Foo(a, b, config) {
|
7 | Bar.prototype.call(this, a, b, config.c);
|
8 |
|
9 | this.foo = this.foo.bind(this);
|
10 | }
|
11 |
|
12 | inherits(Foo, Bar);
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | Foo.prototype.foo = function(d) {
|
18 |
|
19 | var blub = Blub.blub.apply(Blub, d);
|
20 |
|
21 | return Object.assign({}, this.bar, {
|
22 | blub: blub,
|
23 | d: add(d, 1)
|
24 | });
|
25 | };
|
26 |
|
27 | Foo.prototype.longArgFn = function(
|
28 | hello, world,
|
29 | wowo, wooooooooorld) {
|
30 |
|
31 | };
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | function add(a, b) {
|
37 | return a + b;
|
38 | } |
\ | No newline at end of file |