]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove backwards compatibility for update second arg (#6675)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Sat, 2 Nov 2019 13:18:42 +0000 (06:18 -0700)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sat, 2 Nov 2019 13:18:42 +0000 (09:18 -0400)
src/core/core.controller.js

index 63dfe68cd4bb02003404c6758037fef89de683ae..8e75bf8e1eea0a02e9c8777417e675b3bf04c913 100644 (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