demo/dist/demo.js
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;
	  }
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;
	  }
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 ; }
Create a badge
Create a badge