]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix for Almond AMD
authorchandruxp <chandruxp@gmail.com>
Mon, 18 Aug 2014 22:52:50 +0000 (18:52 -0400)
committerchandruxp <chandruxp@gmail.com>
Mon, 18 Aug 2014 22:52:50 +0000 (18:52 -0400)
Chart.js

index 54f264c651c5b33de8d5a8f8c2c0de01797ca6de..2c2b608dc3fd2ecdb69cbdbb4b66f73b32d975b6 100644 (file)
--- a/Chart.js
+++ b/Chart.js
                        //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);
 
 
 
-}).call(this);
\ No newline at end of file
+}).call(this);