Remove all classes

I'm adding multiple classes on an element but want to clear all classes each time before adding new ones. I there a way to remove all classes or must I remove each by class name.


  • edited July 2014
    this.set('classes', ''); if you are on 2.4, otherwise this.setClasses(''); should be what you want.
Sign In or Register to comment.