Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'Event' of undefined #37

Closed
pi-ron opened this issue May 31, 2016 · 3 comments
Closed

Uncaught TypeError: Cannot read property 'Event' of undefined #37

pi-ron opened this issue May 31, 2016 · 3 comments

Comments

@pi-ron
Copy link

pi-ron commented May 31, 2016

Hi,

I'm struggling to get this script to work. Using with jQuery 1.9.

If I click anywhere on a page, I get Uncaught TypeError: Cannot read property 'Event' of undefined

Chrome inspecting error line

@twerthmueller
Copy link

I had the same problem, because we do not use $ as a prefix for jQuery to prevent problems between different libraries.

You have just to replace the $ char with jQuery:
customEvent = $.Event(eventName, {originalEvent: originalEvent})
to
customEvent = jQuery.Event(eventName, {originalEvent: originalEvent})

I hope this get fixed in the lib soon.

@GianlucaGuarini
Copy link
Owner

@twerthmueller could you please make a pull request?

@twerthmueller
Copy link

Sure, I created a pull request: #38

GianlucaGuarini added a commit that referenced this issue Jun 15, 2016
Fixed #37 - Uncaught TypeError when jQuery is not available with the shortcut $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants