1

I am making a custom theme and for no reason at all, I am now getting :

jQuery.easing[this.easing]

I wasnt previously getting this. Any Ideas?

Below is my requirejs config file:

var config = {
 map: {
 '*' : {
 owlcarousel : 'js/owl-carousel/owl.carousel',
 easing: 'jquery/jquery-ui',
 customscript : 'js/custom'
 }
 },
 paths:{
 'owlcarousel' : 'js/owl-carousel/owl.carousel',
 'easing': 'jquery/jquery-ui',
 'customscript' : 'js/custom'
 },
 shim: {
 'owlcarousel': {
 deps: ['jquery']
 },
 'easing': {
 deps: ['jquery']
 },
 'customscript': {
 deps: ['jquery']
 }
 }
};
 require([
 'jquery',
 'easing',
 'owlcarousel',
 'customscript',
 ], function ($) { 
 $(document).ready(function () {
 // -- Hero Carousel
 $("#owl-demo").owlCarousel({
 nav: true,
 items: 1,
 loop:true,
 autoplay:true,
 autoplayTimeout:3000,
 autoplaySpeed: 3000,
 autoplayHoverPause:true
 });
 // -- Sub Navigation
 openSubNav($);
 });
 });

The Problem occurs when I am calling the function openSubNav($); however it has previously worked. I added jquery ui to the map after a previous suggestion but still not working

Rohit Kundale
3,3921 gold badge22 silver badges28 bronze badges
asked Mar 29, 2016 at 15:57

1 Answer 1

0

I solved this. I am not sure why it worked before and not now, however the slideToggle function in my custom.js file I added

slideToggle('slow', 'linear' function(){} );

The linear was the addition that made it work.

Hope this is useful to someone

Rohit Kundale
3,3921 gold badge22 silver badges28 bronze badges
answered Mar 29, 2016 at 16:17

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.