jQuery Fehler nach Update

Hallo zusammen,

ich bekomme folgende Fehlermeldung nach Update von 5.2.6 auf 5.6.6:

Uncaught TypeError: jQuery(…).inView is not a function

für folgende Javascript:

var lastScrollTop = 0;
    window.addEventListener(“scroll”, function() {
        if(jQuery(window).width() > 736) {
            if (jQuery(".navigation-main").inView() == false) {
                // not in checkout
                if (jQuery(‘body’).hasClass(‘is–ctl-checkout’) || jQuery(‘body’).hasClass(‘is–ctl-register’) || jQuery(‘body’).hasClass(‘is–ctl-account’) || jQuery(‘body’).hasClass(‘is–ctl-address’) || jQuery(‘body’).hasClass(‘is–ctl-note’))
                    return false;

                jQuery(".header-main").addClass(‘lll-sticky–header’);
                jQuery(".navigation-main").addClass(‘lll-sticky–navigation-main’);
                if (jQuery(".steps–container")[0]) jQuery(".steps–containe").addClass(‘lll-sticky–content’);
                else jQuery(".content-main").addClass(‘lll-sticky–content’);

                jQuery(’.lll-sticky–header’).delay(200).fadeIn(400);
                jQuery(’.lll-sticky–navigation-main’).delay(200).fadeIn(400);
            }

            var st = window.pageYOffset || document.documentElement.scrollTop;
            if (st < lastScrollTop) {
                if (jQuery(document).scrollTop() == 0) {
                    jQuery(".header-main").removeAttr(‘style’).removeClass(‘lll-sticky–header’);
                    jQuery(".navigation-main").removeAttr(‘style’).removeClass(‘lll-sticky–navigation-main’);
                    if (jQuery(".steps–container")[0]) jQuery(".steps–containe").removeAttr(‘style’).removeClass(‘lll-sticky–content’);
                    else jQuery(".content-main").removeAttr(‘style’).removeClass(‘lll-sticky–content’);
                }
            }

            lastScrollTop = st;
        }
        // phone portrait
        // if(jQuery(window).width() < 478) {
        //     jQuery(’.header-main’).css(‘height’, 210);
        //     jQuery(’.main-search–form’).css(‘display’, ‘none’);
        // }
    }, false);

Ich habe das Theme nicht selbst programmiert und wäre hier dankbar für einen Gedankenanstoss oder Lösungsansätze.

Vielen Dank im Vorraus!

Mit freundlichen Grüßen

Gregor Moosbrugger

 

Der Fehler ist verschwunden nachedem ich die Theme.php angepasst habe von 

 

<?php

namespace Shopware\Themes\LampeLicht; use Shopware\Components\Form as Form; class Theme extends \Shopware\Components\Theme {     protected $extend = 'Responsive';     protected $name = \<\< Lampe und Licht SHOPWARE\_EOD;     protected $description = \<\< SHOPWARE\_EOD;     protected $author = \<\< SHOPWARE\_EOD;     protected $license = \<\< SHOPWARE\_EOD;     public function createConfig(Form\Container\TabContainer $container)     {     }     protected $javascript = [         'src/js/ll.js',         'src/js/jquery.change-quantity.js'     ]; }   **zu:** <?php

namespace Shopware\Themes\LampeLicht; use Shopware\Components\Form as Form; class Theme extends \Shopware\Components\Theme {     protected $extend = 'Responsive';     protected $name = 'Lampe und Licht';     protected $description = 'SW 5.6.6. ready';     protected $author = 'arboro, GM';     protected $license = '';     protected $javascript = [         'src/js/ll.js',         'src/js/jquery.change-quantity.js'     ];     public function createConfig(Form\Container\TabContainer $container)     {     }     }