Setting class names of nodes automatically

This commit is contained in:
Jeff Avallone
2014-12-10 16:57:42 -05:00
parent 60d7cab504
commit 0b85f552c3
14 changed files with 22 additions and 27 deletions
+1 -3
View File
@@ -5,8 +5,6 @@ export default _.extend({}, Base, {
type: 'charset',
render() {
this.container.addClass('charset');
this.label = this.container.text()
.addClass('charset-label')
.attr({
@@ -23,7 +21,7 @@ export default _.extend({}, Base, {
this.partContainer = this.container.group();
_.each(this.parts.elements, (part => {
part.container = this.partContainer.group();
part.setContainer(this.partContainer.group());
part.render();
}).bind(this));
},