How to fix Uncaught TypeError: Cannot read properties of undefined (reading 'apply')
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2023 01:53 AM
Hi everybody i have issue with my website. I have the following error once i run an audit. Uncaught TypeError: Cannot read properties of undefined (reading 'apply') noticed in the following VM11 jquery.eislideshow.js:32.
The eroor in this string
jQuery.event.handle.apply( context, args );
here is the code
$event.special.smartresize = { setup: function() { $(this).bind( "resize", $event.special.smartresize.handler ); }, teardown: function() { $(this).unbind( "resize", $event.special.smartresize.handler ); }, handler: function( event, execAsap ) { // Save the context var context = this, args = arguments; // set correct event type event.type = "smartresize"; if ( resizeTimeout ) { clearTimeout( resizeTimeout ); } resizeTimeout = setTimeout(function() { jQuery.event.handle.apply( context, args ); }, execAsap === "execAsap"? 0 : 100 ); } };`
0 REPLIES 0