aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-27 11:53:07 -0400
committerGitHub <noreply@github.com>2020-09-27 11:53:07 -0400
commit6b6ee765502a7f449bd1682d83716c59f4fa4729 (patch)
tree7159fd2e60f9462166cc929677ef148b9a13b20b /ext/mixed
parent3b6e3193ae5e6248ad1405de50a98fb41796bc2e (diff)
Move searchTerms/searchKanji to front of object definitions (#873)
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/text-scanner.js20
1 files changed, 18 insertions, 2 deletions
diff --git a/ext/mixed/js/text-scanner.js b/ext/mixed/js/text-scanner.js
index fe20cb1c..d8bdd653 100644
--- a/ext/mixed/js/text-scanner.js
+++ b/ext/mixed/js/text-scanner.js
@@ -120,12 +120,28 @@ class TextScanner extends EventDispatcher {
include,
exclude,
types,
- options: {scanOnTouchMove, scanOnPenHover, scanOnPenPress, scanOnPenRelease, searchTerms, searchKanji, preventTouchScrolling}
+ options: {
+ searchTerms,
+ searchKanji,
+ scanOnTouchMove,
+ scanOnPenHover,
+ scanOnPenPress,
+ scanOnPenRelease,
+ preventTouchScrolling
+ }
}) => ({
include: this._getInputArray(include),
exclude: this._getInputArray(exclude),
types: this._getInputTypeSet(types),
- options: {scanOnTouchMove, scanOnPenHover, scanOnPenPress, scanOnPenRelease, searchTerms, searchKanji, preventTouchScrolling}
+ options: {
+ searchTerms,
+ searchKanji,
+ scanOnTouchMove,
+ scanOnPenHover,
+ scanOnPenPress,
+ scanOnPenRelease,
+ preventTouchScrolling
+ }
}));
}
if (typeof deepContentScan === 'boolean') {