code: function toggleClass(className) {
    var classes = className.split(/\s+/)
      , name
      , i;
    for(i = 0;i < classes.length;i++) {
      name = classes[i];
      if(this.hasClass(name)) {
        this.removeClass(name)
      }else{
        this.addClass(name)
      }
    }
  }
docs: Add or remove one or more classes from each element in the set of
  matched elements depending on the class's presence.