Browse Source

Update SVG Component name

pull/187/head
Artur Arseniev 9 years ago
parent
commit
e3ec9899a5
  1. 4
      src/dom_components/model/ComponentSvg.js

4
src/dom_components/model/ComponentSvg.js

@ -4,7 +4,9 @@ module.exports = Component.extend({
getName() {
let name = this.get('tagName');
return name.charAt(0).toUpperCase() + name.slice(1);
let customName = this.get('custom-name');
name = name.charAt(0).toUpperCase() + name.slice(1);
return customName || name;
},
}, {

Loading…
Cancel
Save