]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix for Almond AMD 560/head
authorchandruxp <chandruxp@gmail.com>
Wed, 20 Aug 2014 19:20:46 +0000 (15:20 -0400)
committerchandruxp <chandruxp@gmail.com>
Wed, 20 Aug 2014 19:20:46 +0000 (15:20 -0400)
src/Chart.Core.js

index 0bfb4c05776934ac7c4f972b59ca5294d532b96e..03b99b45a582e69ae57ea79f3ed3e5bbae3bb0d1 100755 (executable)
                        //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);