Typeerror: $.event.props is Undefined

Asked

Viewed 153 times

1

I have a slider like this for example: http://themes.audemedia.com/html/servereast/vps-slider-6-plans.html

In my case it is presenting the following error in the console when I click on the slide/drag button:

TypeError: $.event.props is undefined[Learn More] jquery.ui.widget.js:20:361
_trigger http://localhost/2018/js/jquery.ui.widget.js:20:361
_start http://localhost/2018/js/jquery.ui.slider.js:58:8
_mouseCapture http://localhost/2018/js/jquery.ui.slider.js:45:9
_mouseDown http://localhost/2018/js/jquery.ui.mouse.js:4:275
_mouseInit/< http://localhost/2018/js/jquery.ui.mouse.js:2:59
dispatch http://localhost/2018/js/jquery-3.1.1.min.js:1626:181
add/q.handle http://localhost/2018/js/jquery-3.1.1.min.js:1588:86

HTML: https://pastebin.com/0gm4ccSv

jquery.ui.widget.js: https://pastebin.com/EiUMK6Bt
jquery.ui.mouse.js: https://pastebin.com/ijakmNyV
jquery.ui.slider.js: https://pastebin.com/TRxGqmg6
js page.: https://pastebin.com/jEMvUAPP

Any hint of what might be happening?

  • It is being loaded yes, I forgot to put in Pastebin. As you can see in the console log: http://localhost/2018/js/jquery-3.1.1.min. js

1 answer

2


As you report this page on the official website, the property jQuery.event.props has been removed since jQuery version 3.0.0:

Breaking change: jQuery.event.props and jQuery.event.fixHooks Removed

jQuery’s Event Handling performance increased Thanks to a reorganization of Event Property management. The main Improvement is that jQuery now only Calculates or copies a Property on the first access, rather than calculating and copying them up front. This is a really big win with properties that may force layout that the Event Handler may not Even need. The Most common use we know of was to add properties for Pointer Events, which is no longer necessary because those Events are already supported in jQuery 3.0. The jQuery Migrate plugin provides support for These properties if you still need them.

So you have 2 alternatives:

  1. Use an additional plugin called jQuery Migrate, supporting the property or,
  2. Using a version earlier than 3.0.0 of jQuery.

Obs.: the page you mentioned uses jQuery v2.1.4, which can be checked at this link.

Source: Soen

  • Very good, you know some alternative to the property $ .browser? No jQuery Migrate support either..

  • Take a look here https://stackoverflow.com/a/14431233/1377664

  • Yeah, I used to $.support, but it got slow to slide, really weird.. Thank you =)

  • Would using a jQuery 2.9 version not be a good solution? It’s not that old.

  • The problem that jquery migrate only goes up to version 3.0.1, and I need version 3.1.1 to be loaded..

Browser other questions tagged

You are not signed in. Login or sign up in order to post.