Only delete the old bracket after the new one is generated

to prevent it from "flashing"
This commit is contained in:
小太 2013-12-18 15:17:35 +11:00
parent ab9d2cc59b
commit 40d68bb406

View File

@ -240,9 +240,9 @@
this.$tools.toggleClass('active', !this.info.isStarted || this.info.isJoined);
// Update the bracket
var $bracket = this.generateBracket(this.info.bracketData);
this.$bracket.empty();
this.$bracket.removeClass('tournament-bracket-overflowing');
var $bracket = this.generateBracket(this.info.bracketData);
if ($bracket) {
this.$bracket.append($bracket);
this.updateLayout();