I want to include jquery easing package in my application. Before requireJS files were “optimized,” it worked great. Now I am using the optimized version, when I ever call an animation using attenuation, I get this error:
"jQuery.easing [jQuery.easing.def] is not a function" (firefox)
"Uncaught TypeError: property 'undefined' of object # is not a function" (chrome)
I include my JS as follows:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
<script src="http://gsgd.co.uk/sandbox/jquery/easing/jquery.easing.1.3.js"></script>
<script data-main="/js/mesh-built.js" src="/js/libs/require.js"></script>
My JS homepage looks like this:
http://thebeer.co/js/built/mesh-built.js
require(["globals","functionBank"],function(gb,r){
});
globals is as follows:
http://thebeer.co/js/globals.js
and the function block is as follows:
http://thebeer.co/js/functionBank.js
, , jquery , - ? requireJS?
:
, requireJS...