mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Switch to using Base.camelize().
This commit is contained in:
parent
4cd6d6f230
commit
c755eba0c2
1 changed files with 1 additions and 4 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue