CloudMade/Leaflet — pull request #784 by jieter (2012-07-05 14:01:54+00:00)
Title: DomUtil removeClass space handling.

When inspecting the DOM in Chrome I noticed spaces being added to the class attribute of the ```leaflet-map-pane```-div. The regexp to remove spaces after removing a class in removeClass only removed spaces in the head, added a second case to the regexp to remove spaces at the tail.

Also use DomUtil.addClass in Map.ZoomAnimations.js instead of manual class manipulation. When writing this comment, I just grepped for "className +=" and found quite some (19) other occurrences... If you like, I can change them too.