mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-15 04:36:51 +01:00
Remove global from defaults (#6893)
This commit is contained in:
committed by
Evert Timberg
parent
099e552e6d
commit
f4792306e0
@@ -3,9 +3,7 @@
|
||||
var defaults = require('./core.defaults');
|
||||
var helpers = require('../helpers/index');
|
||||
|
||||
defaults._set('global', {
|
||||
plugins: {}
|
||||
});
|
||||
defaults._set('plugins', {});
|
||||
|
||||
/**
|
||||
* The plugin service singleton
|
||||
@@ -144,7 +142,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
if (opts === true) {
|
||||
opts = helpers.clone(defaults.global.plugins[id]);
|
||||
opts = helpers.clone(defaults.plugins[id]);
|
||||
}
|
||||
|
||||
plugins.push(plugin);
|
||||
|
||||
Reference in New Issue
Block a user