code: function toggleClass(elm, name, when) {
          var self = this;
          name.split(/\s+/g).forEach(function(klass) {
              if (when === undefined) {
                  when = !self.hasClass(elm, klass);
              }
              if (when) {
                  self.addClass(elm, klass);
              } else {
                  self.removeClass(elm, klass)
              }
          });
  
          return self;
      }
docs: /*
  Add or remove one or more classes from the specified element.
  @param {HTMLElement} elm
  @param {String} name
  @param {} when