remove dead code
This commit is contained in:
parent
ff9510356e
commit
be23ad7213
@ -221,8 +221,7 @@ class DisplaySearch extends Display {
|
||||
this.setContentTerms(definitions, {
|
||||
focus: false,
|
||||
sentence: {text: query, offset: 0},
|
||||
url: window.location.href,
|
||||
clearHistoryOnce: true
|
||||
url: window.location.href
|
||||
});
|
||||
} else {
|
||||
this.container.textContent = '';
|
||||
|
@ -398,7 +398,7 @@ class Frontend {
|
||||
textSource.getRect(),
|
||||
textSource.getWritingMode(),
|
||||
type,
|
||||
{definitions, context: {sentence, url, focus, clearHistoryOnce: true}}
|
||||
{definitions, context: {sentence, url, focus}}
|
||||
);
|
||||
|
||||
this.textSourceCurrent = textSource;
|
||||
|
@ -349,13 +349,6 @@ class Display {
|
||||
|
||||
this.setEventListenersActive(false);
|
||||
|
||||
if (context.clearHistoryOnce) {
|
||||
delete context.clearHistoryOnce;
|
||||
if (this.context !== null) {
|
||||
this.context.details.context.next = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (context.focus !== false) {
|
||||
window.focus();
|
||||
}
|
||||
@ -414,13 +407,6 @@ class Display {
|
||||
|
||||
this.setEventListenersActive(false);
|
||||
|
||||
if (context.clearHistoryOnce) {
|
||||
delete context.clearHistoryOnce;
|
||||
if (this.context !== null) {
|
||||
this.context.details.context.next = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (context.focus !== false) {
|
||||
window.focus();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user