"name": "chart.js",
"homepage": "https://www.chartjs.org",
"description": "Simple HTML5 charts using the canvas element.",
- "version": "3.0.0",
+ "version": "3.0.1",
"license": "MIT",
"jsdelivr": "dist/chart.min.js",
"unpkg": "dist/chart.min.js",
const fallback = resolveFallback(resolver._fallback, prop, value);
const allScopes = [...parentScopes, ...rootScopes];
const set = new Set();
- if (!(prop in parentScopes[0])) {
+ const firstParent = parentScopes[0];
+ if (isObject(firstParent) && !(prop in firstParent)) {
// create an empty scope for possible stored values, so we always set the values in top scope.
- set.add(parentScopes[0][prop] = {});
+ set.add(firstParent[prop] = {});
}
set.add(value);
let key = addScopesFromKey(set, allScopes, prop, fallback || prop);