mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-23 08:26:13 -05:00
Fix crash in teambuilder
This commit is contained in:
parent
1f6bea9579
commit
11f4b3dcbb
|
|
@ -1301,7 +1301,11 @@
|
|||
chartChange: function(e) {
|
||||
var name = e.currentTarget.name;
|
||||
var type = this.chartTypes[name];
|
||||
this.$chart.html(Chart.chart(e.currentTarget.value, type, false, _.bind(this.arrangeCallback[this.curChartType], this)));
|
||||
var arrange = null;
|
||||
if (this.arrangeCallback[this.curChartType]) {
|
||||
arrange = _.bind(this.arrangeCallback[this.curChartType], this);
|
||||
}
|
||||
this.$chart.html(Chart.chart(e.currentTarget.value, type, false, arrange));
|
||||
var val = Chart.firstResult;
|
||||
var id = toId(e.currentTarget.value);
|
||||
if (toId(val) !== id) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user