lib/air/class.js
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)
    }
  }
}
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)
    }
  }
}
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 ) } } }
Add or remove one or more classes from each element in the set of
matched elements depending on the class's presence.
Add or remove one or more classes from each element in the set of matched elements depending on the class s presence .