Removing references to "self"
This commit is contained in:
		
							parent
							
								
									035984a61c
								
							
						
					
					
						commit
						6ab5b2993b
					
				| @ -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') | ||||
|  | ||||
| @ -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() { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user