Skip to content

Commit 30d6a6a

Browse files
committed
Fix bug strawdynamics#220: run npm run format to satisfy Prettier
1 parent 6d13939 commit 30d6a6a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/js/Drift.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default class Drift {
4545
const inlinePane = options["inlinePane"] || 375;
4646
// If `true`, touch events will trigger the zoom, like mouse events.
4747
// const handleTouch = options["handleTouch"] || true;
48-
const handleTouch = ("handleTouch" in options)? options["handleTouch"] : true;
48+
const handleTouch = "handleTouch" in options ? options["handleTouch"] : true;
4949
// If present (and a function), this will be called
5050
// whenever the ZoomPane is shown.
5151
const onShow = options["onShow"] || null;
@@ -55,7 +55,7 @@ export default class Drift {
5555
// Add base styles to the page. See the "Theming"
5656
// section of README.md for more information.
5757
// const injectBaseStyles = options["injectBaseStyles"] || true;
58-
const injectBaseStyles = ("injectBaseStyles" in options)? options["injectBaseStyles"] : true;
58+
const injectBaseStyles = "injectBaseStyles" in options ? options["injectBaseStyles"] : true;
5959
// An optional number that determines how long to wait before
6060
// showing the ZoomPane because of a `mouseenter` event.
6161
const hoverDelay = options["hoverDelay"] || 0;

test/testDrift.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ describe("Drift", () => {
5757

5858
it("accepts custom settings", () => {
5959
const anchor = document.querySelector(".test-anchor");
60-
const drift = new Drift(anchor, { inlineOffsetX: 12, handleTouch: false,
61-
injectBaseStyles: false });
60+
const drift = new Drift(anchor, { inlineOffsetX: 12, handleTouch: false, injectBaseStyles: false });
6261

6362
const expectedConfig = defaultDriftConfig();
6463
expectedConfig.inlineOffsetX = 12;

0 commit comments

Comments
 (0)