Switch to using Base.camelize().

This commit is contained in:
Jürg Lehni 2012-11-02 22:53:24 -07:00
parent 4cd6d6f230
commit c755eba0c2

View file

@ -229,10 +229,7 @@ var SvgImporter = this.SvgImporter = new function() {
function applyAttributesAndStyles(svg, item) {
for (var i = 0, l = svg.style.length; i < l; i++) {
var name = svg.style[i];
var cssName = name.replace(/-(.)/g, function(match, p) {
return p.toUpperCase();
});
applyAttributeOrStyle(svg, item, name, svg.style[cssName]);
applyAttributeOrStyle(svg, item, name, svg.style[Base.camelize(name)]);
}
for (var i = 0, l = svg.attributes.length; i < l; i++) {
var attr = svg.attributes[i];