vue-ssr/dist/bundle-server.js
/**
   * Remove class with compatibility for SVG since classList is not supported on
   * SVG elements in IE
   */
Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE
Remove class with compatibility for SVG since classList is not supported on SVG elements in IE
function removeClass(el, cls) {
    if (!cls || !(cls = cls.trim())) {
      return;
    }
    if (el.classList) {
      if (cls.indexOf(' ') > -1) {
        cls.split(whitespaceRE).forEach(function (c) {
          return el.classList.remove(c);
        });
      } else {
        el.classList.remove(cls);
      }
      if (!el.classList.length) {
        el.removeAttribute('class');
      }
    } else {
      var cur = " " + (el.getAttribute('class') || '') + " ";
      var tar = ' ' + cls + ' ';
      while (cur.indexOf(tar) >= 0) {
        cur = cur.replace(tar, ' ');
      }
      cur = cur.trim();
      if (cur) {
        el.setAttribute('class', cur);
      } else {
        el.removeAttribute('class');
      }
    }
  }
function removeClass ( el , cls ) { if ( ! cls || ! ( cls = cls . trim ( ) ) ) { return ; } if ( el . classList ) { if ( cls . indexOf ( ' ' ) > - 1 ) { cls . split ( whitespaceRE ) . forEach ( function ( c ) { return el . classList . remove ( c ) ; } ) ; } else { el . classList . remove ( cls ) ; } if ( ! el . classList . length ) { el . removeAttribute ( 'class' ) ; } } else { var cur = " " + ( el . getAttribute ( 'class' ) || '' ) + " " ; var tar = ' ' + cls + ' ' ; while ( cur . indexOf ( tar ) >= 0 ) { cur = cur . replace ( tar , ' ' ) ; } cur = cur . trim ( ) ; if ( cur ) { el . setAttribute ( 'class' , cur ) ; } else { el . removeAttribute ( 'class' ) ; } } }
Remove class with compatibility for SVG since classList is not supported on
 SVG elements in IE
Remove class with compatibility for SVG since classList is not supported on SVG elements in IE
/* istanbul ignore if */ /* istanbul ignore else */