Renamed char (reserved word in ES3)

This commit is contained in:
Gregers Gram Rygg
2012-06-24 23:48:24 +02:00
parent da3495beac
commit fb3acbdbc2

View File

@@ -1522,7 +1522,7 @@ OpenLayers.Util.getVendorPrefixedCss = (function() {
function domToCss(prefixedDom) {
return prefixedDom.
replace(/([A-Z])/g, function(char) { return "-" + char.toLowerCase(); }).
replace(/([A-Z])/g, function(c) { return "-" + c.toLowerCase(); }).
replace(/^ms-/, "-ms-");
}