mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-20 23:26:53 +01:00
Support nested scriptable defaults for datasets (#9770)
This commit is contained in:
@@ -372,7 +372,7 @@ function getResolver(resolverCache, scopes, prefixes) {
|
||||
}
|
||||
|
||||
const hasFunction = value => isObject(value)
|
||||
&& Object.keys(value).reduce((acc, key) => acc || isFunction(value[key]), false);
|
||||
&& Object.getOwnPropertyNames(value).reduce((acc, key) => acc || isFunction(value[key]), false);
|
||||
|
||||
function needContext(proxy, names) {
|
||||
const {isScriptable, isIndexable} = _descriptors(proxy);
|
||||
|
||||
Reference in New Issue
Block a user