dist/main.js
/**
   * Add class with compatibility for SVG since classList is not supported on
   * SVG elements in IE
   */
Add class with compatibility for SVG since classList is not supported on
SVG elements in IE
Add class with compatibility for SVG since classList is not supported on SVG elements in IE
function addClass(el, cls) {
    if (!cls || !(cls = cls.trim())) {
      return;
    }
    if (el.classList) {
      if (cls.indexOf(' ') > -1) {
        cls.split(whitespaceRE).forEach(function (c) {
          return el.classList.add(c);
        });
      } else {
        el.classList.add(cls);
      }
    } else {
      var cur = " " + (el.getAttribute('class') || '') + " ";
      if (cur.indexOf(' ' + cls + ' ') < 0) {
        el.setAttribute('class', (cur + cls).trim());
      }
    }
  }
function addClass ( el , cls ) { if ( ! cls || ! ( cls = cls . trim ( ) ) ) { return ; } if ( el . classList ) { if ( cls . indexOf ( ' ' ) > - 1 ) { cls . split ( whitespaceRE ) . forEach ( function ( c ) { return el . classList . add ( c ) ; } ) ; } else { el . classList . add ( cls ) ; } } else { var cur = " " + ( el . getAttribute ( 'class' ) || '' ) + " " ; if ( cur . indexOf ( ' ' + cls + ' ' ) < 0 ) { el . setAttribute ( 'class' , ( cur + cls ) . trim ( ) ) ; } } }
Add class with compatibility for SVG since classList is not supported on
 SVG elements in IE
Add class with compatibility for SVG since classList is not supported on SVG elements in IE
/* istanbul ignore if */ /* istanbul ignore else */