summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/js-resources/js-chain.js
blob: 2a290294026a516cb3794e725e13905386e8f044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Normal chaining.
let x = svg.mumble()
           .zzz;

// Chaining with an intervening line comment.
let x = svg.mumble()		// line comment
           .zzz;

// Chaining with multiple dots.
let x = svg.selectAll().something()
           .zzz;

// Nested chaining.
let x = svg.selectAll(d3.svg.something()
                        .zzz);

// Nothing to chain to.
let x = svg()
    .zzz;

// Nothing to chain to.
let x = svg().mumble.x() + 73
    .zzz;

// Local Variables:
// indent-tabs-mode: nil
// js-chain-indent: t
// js-indent-level: 2
// End: