(attributes, options)
| 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; |
nothing calls this directly
no test coverage detected