UNPKG

515 BJavaScriptView Raw
1var inherits = require('inherits');
2
3var Bar = require('./bar').Bar;
4
5
6function Foo(a, b, config) {
7 Bar.prototype.call(this, a, b, config.c);
8
9 this.foo = this.foo.bind(this);
10}
11
12inherits(Foo, Bar);
13
14/**
15 * Do foo
16 */
17Foo.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
27Foo.prototype.longArgFn = function(
28 hello, world,
29 wowo, wooooooooorld) {
30
31};
32
33
34// helpers
35
36function add(a, b) {
37 return a + b;
38}
\No newline at end of file