mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Remove backwards compatibility for update second arg (#6675)
This commit is contained in:
parent
6942e9058c
commit
9c2baa3c23
@ -460,14 +460,6 @@ helpers.extend(Chart.prototype, /** @lends Chart */ {
|
||||
var me = this;
|
||||
var i, ilen;
|
||||
|
||||
if (!config || typeof config !== 'object') {
|
||||
// backwards compatibility
|
||||
config = {
|
||||
duration: config,
|
||||
lazy: arguments[1]
|
||||
};
|
||||
}
|
||||
|
||||
updateConfig(me);
|
||||
|
||||
// plugins options references might have change, let's invalidate the cache
|
||||
|
Loading…
Reference in New Issue
Block a user