Pablo

toggleClass(name)

For each element in the collection, if the CSS class is present it will be removed, otherwise it will be added.

var rect = Pablo.rect({'class': 'john paul george ringo'});
rect.toggleClass('george');
alert(rect.hasClass('george')); // false
Painting is just another way of keeping a diary.
Pablo Picasso