removeAlert(name) {
    var cur = this.findAlert(name);
    if (cur) {
      cur.removeClass('visible');
      // Remove the alert once its animation finishes.
      cur.on('transitionend', function() {
        if (!cur.hasClass('visible')) {
          cur.remove();
        }
      });
    }
  }
Removes the alert with the given name.
@param {string} name The name of the alert to remove.