Remove unnecessary _this variables

This commit is contained in:
Antti Ahti 2015-10-18 12:15:55 +03:00
parent 39278f5b56
commit 4c191d4d4c

View File

@ -129,26 +129,23 @@ let Select = {
// Render
Select._render = function() {
let _this = this;
// Clear Rendering
_this._clear();
this._clear();
// Reset line count
_this.state.lines = 1;
this.state.lines = 1;
// Render Line
for (let i = 0; i < _this.state.choices.length; i++) {
for (let i = 0; i < this.state.choices.length; i++) {
let choice = _this.state.choices[i],
let choice = this.state.choices[i],
line = '';
// Increment line count
_this.state.lines++;
this.state.lines++;
// Select Arrow
let arrow = i === (_this.state.index - 1) ? ' > ' : ' ';
let arrow = i === (this.state.index - 1) ? ' > ' : ' ';
// Render Choice
if (choice.label) {