refactor(commonn): fix lint issues

closes #13352
This commit is contained in:
Victor Berchet 2016-12-09 14:42:39 -08:00
parent 3bee521aa4
commit aaf6e05f56
2 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ describe('ngIf', () => {
afterEach(verifyNoBrowserErrors); afterEach(verifyNoBrowserErrors);
describe('ng-if-simple', () => { describe('ng-if-simple', () => {
var comp = 'ng-if-simple' let comp = 'ng-if-simple';
it('should hide/show content', () => { it('should hide/show content', () => {
browser.get(URL); browser.get(URL);
waitForElement(comp); waitForElement(comp);
@ -31,7 +31,7 @@ describe('ngIf', () => {
}); });
describe('ng-if-else', () => { describe('ng-if-else', () => {
var comp = 'ng-if-else' let comp = 'ng-if-else';
it('should hide/show content', () => { it('should hide/show content', () => {
browser.get(URL); browser.get(URL);
waitForElement(comp); waitForElement(comp);
@ -43,7 +43,7 @@ describe('ngIf', () => {
}); });
describe('ng-if-then-else', () => { describe('ng-if-then-else', () => {
var comp = 'ng-if-then-else' let comp = 'ng-if-then-else';
it('should hide/show content', () => { it('should hide/show content', () => {
browser.get(URL); browser.get(URL);
waitForElement(comp); waitForElement(comp);
@ -59,7 +59,7 @@ describe('ngIf', () => {
}); });
describe('ng-if-let', () => { describe('ng-if-let', () => {
var comp = 'ng-if-let' let comp = 'ng-if-let';
it('should hide/show content', () => { it('should hide/show content', () => {
browser.get(URL); browser.get(URL);
waitForElement(comp); waitForElement(comp);

View File

@ -93,9 +93,9 @@ class NgIfLet {
lastIndex = 0; lastIndex = 0;
nextUser() { nextUser() {
var first = this.first[this.firstIndex++]; let first = this.first[this.firstIndex++];
if (this.firstIndex >= this.first.length) this.firstIndex = 0; if (this.firstIndex >= this.first.length) this.firstIndex = 0;
var last = this.last[this.lastIndex++]; let last = this.last[this.lastIndex++];
if (this.lastIndex >= this.last.length) this.lastIndex = 0; if (this.lastIndex >= this.last.length) this.lastIndex = 0;
this.userObservable.next({first, last}); this.userObservable.next({first, last});
} }