Merge pull request #220 from giscloud/removeclass_fix
Fix of the L.DomUtil.removeClasss method.
This commit is contained in:
commit
b46a9d2eb0
@ -86,7 +86,7 @@ L.DomUtil = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
removeClass: function(el, name) {
|
removeClass: function(el, name) {
|
||||||
el.className = el.className.replace(/(\w+)\s*/g, function(w, match) {
|
el.className = el.className.replace(/(\S+)\s*/g, function(w, match) {
|
||||||
if (match == name) return '';
|
if (match == name) return '';
|
||||||
return w;
|
return w;
|
||||||
}).replace(/^\s+/, '');
|
}).replace(/^\s+/, '');
|
||||||
|
Loading…
Reference in New Issue
Block a user