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

Fix typo in elements.line #7040

Merged
merged 3 commits into from
Jan 31, 2020
Merged
Changes from 1 commit
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
7 changes: 6 additions & 1 deletion src/elements/element.line.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ function fastPathSegment(ctx, line, segment, params) {
}
}

/**
* @priavte
benmccann marked this conversation as resolved.
Show resolved Hide resolved
* @param {Line} line - the line
* @returns {function}
*/
function _getSegmentMethod(line) {
const opts = line.options;
const borderDash = opts.borderDash && opts.borderDash.length;
Expand Down Expand Up @@ -271,7 +276,7 @@ class Line extends Element {
interpolated[property] = point[property];
result.push(interpolated);
}
return result.lenght === 1 ? result[0] : result;
return result.length === 1 ? result[0] : result;
}

/**
Expand Down