From 0cb090bc10cc9df3bc87f9ee9df2d2c9a9f937ba Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Tue, 9 Dec 2014 17:48:44 -0500 Subject: [PATCH] Cleanup of charset rendering code --- src/js/parser/javascript/charset.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/js/parser/javascript/charset.js b/src/js/parser/javascript/charset.js index b0661ff..12cefca 100644 --- a/src/js/parser/javascript/charset.js +++ b/src/js/parser/javascript/charset.js @@ -10,9 +10,7 @@ export default _.extend({}, Base, { this.label = this.container.text() .attr({ text: this.invert() ? 'None of:' : 'One of:' - }) - .transform(Snap.matrix() - .translate(0, 0)); + }); this.box = this.container.rect() .addClass('charset-box') @@ -23,7 +21,7 @@ export default _.extend({}, Base, { this.partContainer = this.container.group(); - _.each(this.parts.elements, ((part) => { + _.each(this.parts.elements, (part => { part.container = this.partContainer.group(); part.render(); }).bind(this)); @@ -32,7 +30,7 @@ export default _.extend({}, Base, { position() { var box, offset = 0; - _.each(this.parts.elements, ((part) => { + _.each(this.parts.elements, (part => { var box; part.position(); @@ -47,7 +45,7 @@ export default _.extend({}, Base, { box = this.partContainer.getBBox(); - _.each(this.parts.elements, ((part) => { + _.each(this.parts.elements, (part => { var partBox = part.container.getBBox(); part.container.transform(Snap.matrix()