From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Sat, 2 Nov 2019 13:18:42 +0000 (-0700) Subject: Remove backwards compatibility for update second arg (#6675) X-Git-Tag: v3.0.0-alpha~273 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c2baa3c230e7a14db334334ea1b556395224feb;p=thirdparty%2FChart.js.git Remove backwards compatibility for update second arg (#6675) --- diff --git a/src/core/core.controller.js b/src/core/core.controller.js index 63dfe68cd..8e75bf8e1 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -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