Cannot read property 'propHooks' of undefined
See original GitHub issueI have an issue when loading the plugin, I’ve got the following error :
Cannot read property 'propHooks' of undefined
// Add special hooks so that window scroll properties can be animated
$.Tween.propHooks.scrollLeft = <--------------- It complain about this line
$.Tween.propHooks.scrollTop = {
get: function(t) {
return $(t.elem)[t.prop]();
},
set: function(t) {
var curr = this.get(t);
// If interrupt is true and user scrolled, stop animating
if (t.options.interrupt && t._last && t._last !== curr) {
return $(t.elem).stop();
}
var next = Math.round(t.now);
// Don't waste CPU
// Browsers don't render floating point scroll
if (curr !== next) {
$(t.elem)[t.prop](next);
t._last = this.get(t);
}
}
};
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Cannot read property 'propHooks' of undefined jQuery animate
Go to the page. http://www.bitstorm.org/jquery/color-animation/. And look out for the following: For jQuery 1.8 and later... and.
Read more >jQuery Problem ! Cannot read property 'top' of undefined
Uncaught TypeError : Cannot read property 'top' of undefined at HTMLDocument.<anonymous> (rp-frontend.js?ver=2.7.1:97) at i (jquery.js?ver=1.12.4-wp:2).
Read more >[Script]-dblclick not working as expected - appsloveworld.com
The problem I'm havng is that if you try to down click the border one px at a time, you can't help but...
Read more >Solved: Question about order of errors in dev console and ...
My question is if you look at my example (from Chrome ) and the "Cannot read property 'setRequestHeader' of undefined" error, does the...
Read more >Ошибки сайта в консоли Uncaught TypeError: Cannot read ...
Uncaught TypeError : Cannot read property 'start' of undefined at HTMLDivElement. ... propHooks[this.prop];return e&&e.get?e.get(this):tt.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I happens with JQuery 3.1.1
LOL I’ve figured it out.
Use the full jQuery version not the slim version!
The slim version doesn’t have the $.animate function.