()
| 59 | } |
| 60 | |
| 61 | set_positional_scales() { |
| 62 | // In the case of Hist, a change in the "sample" scale triggers |
| 63 | // a full "update_data" instead of a simple redraw. |
| 64 | const x_scale = this.scales.sample, |
| 65 | y_scale = this.scales.count; |
| 66 | this.listenTo(x_scale, 'domain_changed', function () { |
| 67 | if (!this.model.dirty) { |
| 68 | this.model.update_data(); |
| 69 | } |
| 70 | }); |
| 71 | this.listenTo(y_scale, 'domain_changed', function () { |
| 72 | if (!this.model.dirty) { |
| 73 | this.draw(); |
| 74 | } |
| 75 | }); |
| 76 | } |
| 77 | |
| 78 | create_listeners() { |
| 79 | super.create_listeners(); |
nothing calls this directly
no test coverage detected