MCPcopy Create free account
hub / github.com/ajaxorg/ace / init

Method init

src/ext/diff/split_diff_view.js:18–33  ·  view source on GitHub ↗
(diffModel)

Source from the content-addressed store, hash-verified

16 }
17
18 init(diffModel) {
19 this.onChangeTheme = this.onChangeTheme.bind(this);
20 this.onMouseWheel = this.onMouseWheel.bind(this);
21 this.onScroll = this.onScroll.bind(this);
22
23 this.$setupModels(diffModel);
24
25 this.addGutterDecorators();
26
27 this.onChangeTheme();
28
29 config.resetOptions(this);
30 config["_signal"]("diffView", this);
31
32 this.$attachEventHandlers();
33 }
34
35 onChangeWrapLimit() {
36 this.scheduleRealign();

Callers 6

constructorMethod · 0.95
templateFunction · 0.45
csslint.jsFile · 0.45
bFunction · 0.45
demo.jsFile · 0.45

Calls 5

$attachEventHandlersMethod · 0.95
$setupModelsMethod · 0.80
addGutterDecoratorsMethod · 0.80
onChangeThemeMethod · 0.80
resetOptionsMethod · 0.80

Tested by

no test coverage detected