提交 420bcbe9 编写于 作者: U Urange

function name change

上级 7162bd57
......@@ -58,7 +58,7 @@ export abstract class SimpleFindWidget extends Widget {
return null;
} catch (e) {
this.foundMatch = false;
this.updateBtns();
this.updateButtons();
return { content: e.message };
}
}
......@@ -69,7 +69,7 @@ export abstract class SimpleFindWidget extends Widget {
this.oninput(this._findInput.domNode, (e) => {
this.foundMatch = this.onInputChanged();
this.updateBtns();
this.updateButtons();
this._delayedUpdateHistory();
});
......@@ -219,7 +219,7 @@ export abstract class SimpleFindWidget extends Widget {
}
this._isVisible = true;
this.updateBtns();
this.updateButtons();
setTimeout(() => {
dom.addClass(this._innerDomNode, 'visible');
......@@ -250,7 +250,7 @@ export abstract class SimpleFindWidget extends Widget {
// Need to delay toggling visibility until after Transition, then visibility hidden - removes from tabIndex list
setTimeout(() => {
this._isVisible = false;
this.updateBtns();
this.updateButtons();
dom.removeClass(this._innerDomNode, 'visible');
}, 200);
}
......@@ -276,7 +276,7 @@ export abstract class SimpleFindWidget extends Widget {
return this._findInput.getCaseSensitive();
}
private updateBtns() {
private updateButtons() {
let hasInput = this.inputValue.length > 0;
this.prevBtn.setEnabled(this._isVisible && hasInput && this.foundMatch);
this.nextBtn.setEnabled(this._isVisible && hasInput && this.foundMatch);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册