(attributes, options)
| 59 | } |
| 60 | |
| 61 | initialize(attributes, options) { |
| 62 | super.initialize(attributes, options); |
| 63 | this.on('change:sizes', this.update_data, this); |
| 64 | this.on( |
| 65 | 'change:color', |
| 66 | function () { |
| 67 | this.updateColor(); |
| 68 | this.trigger('colors_updated'); |
| 69 | }, |
| 70 | this |
| 71 | ); |
| 72 | this.on('change:labels', this.updateLabels, this); |
| 73 | |
| 74 | this.on_some_change(['preserve_domain'], this.update_domains, this); |
| 75 | this.update_data(); |
| 76 | this.updateColor(); |
| 77 | this.updateLabels(); |
| 78 | this.update_domains(); |
| 79 | } |
| 80 | |
| 81 | update_data() { |
| 82 | const sizes = this.get('sizes') || []; |
nothing calls this directly
no test coverage detected