Removing references to "self"

This commit is contained in:
Jeff Avallone 2014-12-10 17:01:21 -05:00
parent 035984a61c
commit 6ab5b2993b
2 changed files with 6 additions and 10 deletions

View File

@ -5,8 +5,6 @@ export default _.extend({}, Base, {
type: 'match',
render() {
var self = this;
this.contents = {};
if (this.anchorStart()) {
@ -14,11 +12,11 @@ export default _.extend({}, Base, {
.addClass('anchor');
}
this.contents.parts = _.map(this.parts(), function(part) {
part.setContainer(self.container.group());
this.contents.parts = _.map(this.parts(), (function(part) {
part.setContainer(this.container.group());
part.render();
return part;
});
}).bind(this));
if (this.anchorEnd()) {
this.contents.anchor_end = this.renderLabel(this.container, 'End of line')

View File

@ -5,15 +5,13 @@ export default _.extend({}, Base, {
type: 'regexp',
render() {
var self = this;
this.matchContainer = this.container.group();
_.each(this.matches(), match => {
match.setContainer(self.matchContainer.group());
_.each(this.matches(), (match => {
match.setContainer(this.matchContainer.group());
match.render();
return match.container;
});
}).bind(this));
},
position() {