regexper-static/src/js/parser/javascript/anchor.js
Jeff Avallone 1b22d0b717 Cleaning up some of the arrow function syntax
Don't need to use `return` as much as I had been
2016-07-31 11:45:48 -04:00

14 lines
260 B
JavaScript

export default {
_render() {
return this.renderLabel(this.label).then(label => label.addClass('anchor'));
},
setup() {
if (this.textValue === '^') {
this.label = 'Start of line';
} else {
this.label = 'End of line';
}
}
};