Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitruong922 committed Sep 24, 2024
1 parent fca99c4 commit cb0afec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ext/js/dom/text-source-range.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ export class TextSourceRange {

/**
* Determines whether the imposter source element is an input or textarea element.
* @return {boolean} `true` if the imposter source element is an input or textarea element, `false` otherwise.
* @returns {boolean} `true` if the imposter source element is an input or textarea element, `false` otherwise.
*/
isImposterInputOrTextArea() {
isImposterInputOrTextArea() {
if (this._imposterSourceElement) {
const type = this._imposterSourceElement.nodeName.toUpperCase();
return type === 'INPUT' || type === 'TEXTAREA';
}
return false;
}
}

/**
* Creates a clone of the instance.
Expand Down
4 changes: 2 additions & 2 deletions ext/js/language/text-scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export class TextScanner extends EventDispatcher {

const includeSelector = this._includeSelector;
const excludeSelector = this._getExcludeSelectorForPointerType(pointerType);
if (includeSelector !== null || excludeSelector !== null ) {
if (includeSelector !== null || excludeSelector !== null) {
this._constrainTextSource(clonedTextSource, includeSelector, excludeSelector, layoutAwareScan);
}

Expand Down Expand Up @@ -1658,7 +1658,7 @@ export class TextScanner extends EventDispatcher {
_getExcludeSelectorForPointerType(pointerType) {
if (pointerType === 'touch') {
// Avoid trigger search with tapping on interactive elements.
const popupClickableSelector = '.gloss-link,.gloss-link *,.tag, .tag *, .inflection, a, a *'
const popupClickableSelector = '.gloss-link,.gloss-link *,.tag, .tag *, .inflection, a, a *';
return this._excludeSelector ? `${this._excludeSelector},${popupClickableSelector}` : popupClickableSelector;
}
return this._excludeSelector;
Expand Down

0 comments on commit cb0afec

Please sign in to comment.