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