The variable Select2SalesCustomerComponent already seems to be declared on line 11. Consider using another variable name or omitting the var keyword.
This check looks for variables that are declared in multiple lines. There
may be several reasons for this.
In the simplest case the variable name was reused by mistake. This may lead to
very hard to locate bugs.
If you want to reuse a variable for another purpose, consider declaring it
at or near the top of your function and just assigning to it subsequently so
it is always declared.
Loading history...
8
/**
9
* @inheritDoc
10
*/
11
constructor: function Select2SalesCustomerComponent() {
This check looks for variables that are declared in multiple lines. There may be several reasons for this.
In the simplest case the variable name was reused by mistake. This may lead to very hard to locate bugs.
If you want to reuse a variable for another purpose, consider declaring it at or near the top of your function and just assigning to it subsequently so it is always declared.