Removing references to "self"
This commit is contained in:
parent
035984a61c
commit
6ab5b2993b
@ -5,8 +5,6 @@ export default _.extend({}, Base, {
|
|||||||
type: 'match',
|
type: 'match',
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
var self = this;
|
|
||||||
|
|
||||||
this.contents = {};
|
this.contents = {};
|
||||||
|
|
||||||
if (this.anchorStart()) {
|
if (this.anchorStart()) {
|
||||||
@ -14,11 +12,11 @@ export default _.extend({}, Base, {
|
|||||||
.addClass('anchor');
|
.addClass('anchor');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.contents.parts = _.map(this.parts(), function(part) {
|
this.contents.parts = _.map(this.parts(), (function(part) {
|
||||||
part.setContainer(self.container.group());
|
part.setContainer(this.container.group());
|
||||||
part.render();
|
part.render();
|
||||||
return part;
|
return part;
|
||||||
});
|
}).bind(this));
|
||||||
|
|
||||||
if (this.anchorEnd()) {
|
if (this.anchorEnd()) {
|
||||||
this.contents.anchor_end = this.renderLabel(this.container, 'End of line')
|
this.contents.anchor_end = this.renderLabel(this.container, 'End of line')
|
||||||
|
@ -5,15 +5,13 @@ export default _.extend({}, Base, {
|
|||||||
type: 'regexp',
|
type: 'regexp',
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
var self = this;
|
|
||||||
|
|
||||||
this.matchContainer = this.container.group();
|
this.matchContainer = this.container.group();
|
||||||
|
|
||||||
_.each(this.matches(), match => {
|
_.each(this.matches(), (match => {
|
||||||
match.setContainer(self.matchContainer.group());
|
match.setContainer(this.matchContainer.group());
|
||||||
match.render();
|
match.render();
|
||||||
return match.container;
|
return match.container;
|
||||||
});
|
}).bind(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
position() {
|
position() {
|
||||||
|
Loading…
Reference in New Issue
Block a user