From: Evert Timberg Date: Fri, 18 Sep 2015 22:44:00 +0000 (-0400) Subject: Remove core.responsive file. Responsiveness is added during initialization X-Git-Tag: 2.0.0-alpha4~24^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db5066cd23e13e3c34b9db310d4003d5164b17e9;p=thirdparty%2FChart.js.git Remove core.responsive file. Responsiveness is added during initialization --- diff --git a/src/core/core.responsive.js b/src/core/core.responsive.js deleted file mode 100644 index 2bca2a214..000000000 --- a/src/core/core.responsive.js +++ /dev/null @@ -1,29 +0,0 @@ -(function() { - - "use strict"; - - //Declare root variable - window in the browser, global on the server - var root = this, - previous = root.Chart, - helpers = Chart.helpers; - - - // Attach global event to resize each chart instance when the browser resizes - /*helpers.addEvent(window, "resize", (function() { - // Basic debounce of resize function so it doesn't hurt performance when resizing browser. - var timeout; - return function() { - clearTimeout(timeout); - timeout = setTimeout(function() { - helpers.each(Chart.instances, function(instance) { - // If the responsive flag is set in the chart instance config - // Cascade the resize event down to the chart. - if (instance.options.responsive) { - instance.resize(); - } - }); - }, 16); - }; - })());*/ - -}).call(this);