question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'propHooks' of undefined

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
BrianCohencommented, Oct 28, 2016

I happens with JQuery 3.1.1

7reactions
kevinwarrencommented, Nov 19, 2017

LOL I’ve figured it out.

Use the full jQuery version not the slim version!

The slim version doesn’t have the $.animate function.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found