From 53c4cd5ce1a8a5f23fd5fa210712f251cacdab2e Mon Sep 17 00:00:00 2001 From: chandruxp Date: Mon, 18 Aug 2014 18:52:50 -0400 Subject: [PATCH] Fix for Almond AMD --- Chart.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);