From d724a032336e4066259036161c9ec8ffe3d79f26 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Mon, 21 Sep 2020 20:55:44 +1000 Subject: [PATCH] docs: Fix simple typo, defalut -> default There is a small typo in hammer.js, src/inputjs/compute-delta-xy.js. Should read `default` rather than `defalut`. --- hammer.js | 2 +- src/inputjs/compute-delta-xy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hammer.js b/hammer.js index 5ea778100..0f90fcc33 100644 --- a/hammer.js +++ b/hammer.js @@ -1726,7 +1726,7 @@ function getDirection(x, y) { function computeDeltaXY(session, input) { var center = input.center; // let { offsetDelta:offset = {}, prevDelta = {}, prevInput = {} } = session; - // jscs throwing error on defalut destructured values and without defaults tests fail + // jscs throwing error on default destructured values and without defaults tests fail var offset = session.offsetDelta || {}; var prevDelta = session.prevDelta || {}; diff --git a/src/inputjs/compute-delta-xy.js b/src/inputjs/compute-delta-xy.js index fefb5bd41..723536464 100644 --- a/src/inputjs/compute-delta-xy.js +++ b/src/inputjs/compute-delta-xy.js @@ -3,7 +3,7 @@ import { INPUT_START, INPUT_END } from './input-consts'; export default function computeDeltaXY(session, input) { let { center } = input; // let { offsetDelta:offset = {}, prevDelta = {}, prevInput = {} } = session; - // jscs throwing error on defalut destructured values and without defaults tests fail + // jscs throwing error on default destructured values and without defaults tests fail let offset = session.offsetDelta || {}; let prevDelta = session.prevDelta || {}; let prevInput = session.prevInput || {};