From: chandruxp Date: Mon, 18 Aug 2014 22:52:50 +0000 (-0400) Subject: Fix for Almond AMD X-Git-Tag: v1.0.1~21^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53c4cd5ce1a8a5f23fd5fa210712f251cacdab2e;p=thirdparty%2FChart.js.git Fix for Almond AMD --- diff --git a/Chart.js b/Chart.js index 54f264c65..2c2b608dc 100644 --- a/Chart.js +++ b/Chart.js @@ -280,7 +280,7 @@ //Method for warning of errors if (window.console && typeof window.console.warn == "function") console.warn(str); }, - amd = helpers.amd = (typeof root.define == 'function' && root.define.amd), + amd = helpers.amd = (typeof define == 'function' && define.amd), //-- Math methods isNumber = helpers.isNumber = function(n){ return !isNaN(parseFloat(n)) && isFinite(n); @@ -3376,4 +3376,4 @@ -}).call(this); \ No newline at end of file +}).call(this);