MCPcopy Create free account
hub / github.com/bqplot/bqplot / initialize

Method initialize

js/src/LinesModel.ts:53–64  ·  view source on GitHub ↗
(attributes, options)

Source from the content-addressed store, hash-verified

51 }
52
53 initialize(attributes, options) {
54 super.initialize(attributes, options);
55 this.on_some_change(['x', 'y', 'color'], this.update_data, this);
56 this.on('change:labels', this.update_labels, this);
57 // FIXME: replace this with on("change:preserve_domain"). It is not done here because
58 // on_some_change depends on the GLOBAL backbone on("change") handler which
59 // is called AFTER the specific handlers on("change:foobar") and we make that
60 // assumption.
61 this.on_some_change(['preserve_domain'], this.update_domains, this);
62 this.update_data();
63 this.update_domains();
64 }
65
66 update_data() {
67 this.dirty = true;

Callers

nothing calls this directly

Calls 2

update_dataMethod · 0.95
update_domainsMethod · 0.95

Tested by

no test coverage detected