mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-14 12:16:52 +01:00
Fix typos found by codespell (#10103)
This commit is contained in:
committed by
GitHub
parent
ec67123df8
commit
a7d98fb1a0
@@ -203,7 +203,7 @@ function _resolveWithContext(target, prop, receiver) {
|
||||
value = _resolveArray(prop, value, target, descriptors.isIndexable);
|
||||
}
|
||||
if (needsSubResolver(prop, value)) {
|
||||
// if the resolved value is an object, crate a sub resolver for it
|
||||
// if the resolved value is an object, create a sub resolver for it
|
||||
value = _attachContext(value, _context, _subProxy && _subProxy[prop], descriptors);
|
||||
}
|
||||
return value;
|
||||
|
||||
@@ -17,7 +17,7 @@ export const requestAnimFrame = (function() {
|
||||
|
||||
/**
|
||||
* Throttles calling `fn` once per animation frame
|
||||
* Latest argments are used on the actual call
|
||||
* Latest arguments are used on the actual call
|
||||
* @param {function} fn
|
||||
* @param {*} thisArg
|
||||
* @param {function} [updateFn]
|
||||
|
||||
@@ -1013,7 +1013,7 @@ export class Tooltip extends Element {
|
||||
* Handle an event
|
||||
* @param {ChartEvent} e - The event to handle
|
||||
* @param {boolean} [replay] - This is a replayed event (from update)
|
||||
* @param {boolean} [inChartArea] - The event is indide chartArea
|
||||
* @param {boolean} [inChartArea] - The event is inside chartArea
|
||||
* @returns {boolean} true if the tooltip changed
|
||||
*/
|
||||
handleEvent(e, replay, inChartArea = true) {
|
||||
@@ -1054,11 +1054,11 @@ export class Tooltip extends Element {
|
||||
/**
|
||||
* Helper for determining the active elements for event
|
||||
* @param {ChartEvent} e - The event to handle
|
||||
* @param {Element[]} lastActive - Previously active elements
|
||||
* @param {Element[]} lastActive - Previously active elements
|
||||
* @param {boolean} [replay] - This is a replayed event (from update)
|
||||
* @param {boolean} [inChartArea] - The event is indide chartArea
|
||||
* @param {boolean} [inChartArea] - The event is inside chartArea
|
||||
* @returns {Element[]} - Active elements
|
||||
* @private
|
||||
* @private
|
||||
*/
|
||||
_getActiveElements(e, lastActive, replay, inChartArea) {
|
||||
const options = this.options;
|
||||
|
||||
Reference in New Issue
Block a user