RequireJS: problem involving jquery easing pack after optimization

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){

//myapp code

});

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...

+3
1

mesh-built.js, , require.js. , require.js(, includeRequire: true , . , , jQuery built.js.

+3

Source: https://habr.com/ru/post/1795810/


All Articles