code: function createBadge(text) {
  	    if (is$1.empty(text)) {
  	      return null;
  	    }
  
  	    var badge = createElement('span', {
  	      class: this.config.classNames.menu.value
  	    });
  	    badge.appendChild(createElement('span', {
  	      class: this.config.classNames.menu.badge
  	    }, text));
  	    return badge;
  	  }
docs: Create a badge