No need to save most label objects
This commit is contained in:
parent
15655900f1
commit
9ac25b9a50
@ -5,6 +5,6 @@ export default _.extend({}, Base, {
|
||||
type: 'any-character',
|
||||
|
||||
_render() {
|
||||
this.label = this.renderLabel('any character');
|
||||
this.renderLabel('any character');
|
||||
}
|
||||
});
|
||||
|
@ -65,9 +65,8 @@ export default {
|
||||
|
||||
this.container.addClass('placeholder');
|
||||
|
||||
this.label = this.renderLabel(this.textValue);
|
||||
|
||||
this.label.select('rect').attr({
|
||||
this.renderLabel(this.textValue)
|
||||
.select('rect').attr({
|
||||
rx: 10,
|
||||
ry: 10
|
||||
});
|
||||
|
@ -13,9 +13,8 @@ export default _.extend({}, Base, {
|
||||
},
|
||||
|
||||
_render() {
|
||||
this.label = this.renderLabel(_.result(this, this.code()));
|
||||
|
||||
this.label.select('rect').attr({
|
||||
this.renderLabel(_.result(this, this.code()))
|
||||
.select('rect').attr({
|
||||
rx: 3,
|
||||
ry: 3
|
||||
});
|
||||
|
@ -5,9 +5,8 @@ export default _.extend({}, Base, {
|
||||
type: 'literal',
|
||||
|
||||
_render() {
|
||||
this.label = this.renderLabel('"' + this.literal.textValue + '"');
|
||||
|
||||
this.label.select('rect').attr({
|
||||
this.renderLabel('"' + this.literal.textValue + '"')
|
||||
.select('rect').attr({
|
||||
rx: 3,
|
||||
ry: 3
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user