1 Comment

jQuery.easing[this.easing] for Magento2 Custom Theme

Magento 2 : Unable to import
Magento: Which is the code to insert in an observer to send a mail

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

Related Posts

  • magento2 gives 404 when loading text.js from requirejs (0)
    I'm facing a problem when applying a custom theme in Magento2. It doesn't find the text.js file in pub/static, as it's not there in fact. The real path of text.js should be en_US/mage/requirejs/text.js as it's the real file path, but I don't know why it's getting from […]
  • magento2 gives 404 when loading text.js from requirejs (0)
    I'm facing a problem when applying a custom theme in Magento2. It doesn't find the text.js file in pub/static, as it's not there in fact. The real path of text.js should be en_US/mage/requirejs/text.js as it's the real file path, but I don't know why it's getting from […]
  • Magneto2 Include custom JS in theme (2)
    I want to include custom js in my theme i put it in web/js path of theme F:xampphtdocsmagento2appdesignfrontendGWthemegwwebjsjquery.flexisel.js Then i created requirejs-config.js var config = { map: { '*': { clientrotate: 'GWtheme_gw/js/jquery.flexisel' […]
  • How to assign a Guest Order to a Customer – Magento 2 (0)
    I've got some order from guest and later they create their account and ask to link the old orders. How can I do it? I tried to update the table sales_order but it wasn't enough to work. Thanks
  • How to assign a Guest Order to a Customer – Magento 2 (0)
    I've got some order from guest and later they create their account and ask to link the old orders. How can I do it? I tried to update the table sales_order but it wasn't enough to work. Thanks
  • Magento rest api V1 oauth auto-complete (0)
    Im using Magento rest api to check various stores and store them in my db for ease of access of the data. Is there a way to either avoid or auto-accept the oauth authentication from magento so I do not have to click 'accept' every 'x' minutes?
  • Is it possible to map category products in website or store level (1)
    Default Magento doesn't allow product mapping to categories per website or store level. This is global. Is it possible to customize this in Magento to make it website or store level? If yes, then how much work will be required?
  • Use jQuery Plugins in Magento 2 blocks (1)
    I'm trying to use jQuery camera inside a page block, but I'm doing something wrong. I added the camera.min.js into my custom theme folder Theme_folder/Magento_Theme/web/js/camera.min.js Here's my requirejs-config.js in Theme_folder/Magento_Theme/web/js/requirejs-config.js var […]
  • Trying to understand require.js usage in Magento 2 (1)
    I've been trying a few suggested way to load my own js into a custom Magento theme and have not been successful. In requirejs-config.js in root of my custom theme directory, I have this: var config = { map: { "*": { "customBootstrap": "js/bootstrap.min", […]
  • Magento 2.1: Is it possible to hide the drop down for store view change? (1)
    I just added one more store view in order to create set up a custom theme for a special URL. After I set everything up and view the home page, I realize that there is now a drop down that would let a user switch the view regardless of what URL I mapped to. Is there a button on the […]
Magento 2 : Unable to import
Magento: Which is the code to insert in an observer to send a mail

1 Comment on this article

  • User November 12, 2016

    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

    Reply

Add a comment

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax