提交 c1d0b0cd 编写于 作者: W Wim Spaargaren

Adjusted formatting

上级 4b1fcff7
......@@ -140,7 +140,7 @@ export class SearchWidget extends Widget {
}
}
public setHasBeenCleared(cleared : boolean): void {
public setHasBeenCleared(cleared: boolean): void {
this.hasBeenCleared = cleared;
}
......@@ -179,11 +179,10 @@ export class SearchWidget extends Widget {
public showPreviousSearchTerm() {
let previous;
if(this.hasBeenCleared){
if (this.hasBeenCleared) {
this.setHasBeenCleared(false);
previous = this.searchHistory.current();
}else{
previous = this.searchHistory.current();
} else {
previous = this.searchHistory.previous();
}
if (previous) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册