From: chandruxp Date: Wed, 20 Aug 2014 19:20:46 +0000 (-0400) Subject: Fix for Almond AMD X-Git-Tag: v1.0.1~21^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F560%2Fhead;p=thirdparty%2FChart.js.git Fix for Almond AMD --- diff --git a/src/Chart.Core.js b/src/Chart.Core.js index 0bfb4c057..03b99b45a 100755 --- a/src/Chart.Core.js +++ b/src/Chart.Core.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);