Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix simple typo, defalut -> default #1261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hammer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {};
Expand Down
2 changes: 1 addition & 1 deletion src/inputjs/compute-delta-xy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {};
Expand Down