Remove backwards compatibility for update second arg (#6675)

This commit is contained in:
Ben McCann 2019-11-02 06:18:42 -07:00 committed by Evert Timberg
parent 6942e9058c
commit 9c2baa3c23

View File

@ -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