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

Throws error when using the click method on the document #206

Closed
imaustink opened this issue May 9, 2017 · 3 comments
Closed

Throws error when using the click method on the document #206

imaustink opened this issue May 9, 2017 · 3 comments

Comments

@imaustink
Copy link
Contributor

If you use .click like this f.click(document), it throws the following error.

syn.js:173 Uncaught TypeError: Cannot read property 'jQuery' of undefined
    at Function.jquery (https://unpkg.com/syn@0.5.0/dist/global/syn.js:173:49)
    at Object.addOffset (https://unpkg.com/syn@0.5.0/dist/global/syn.js:326:30)
    at init._click (https://unpkg.com/syn@0.5.0/dist/global/syn.js:515:25)
    at new init (https://unpkg.com/syn@0.5.0/dist/global/syn.js:155:27)
    at syn (https://unpkg.com/syn@0.5.0/dist/global/syn.js:131:20)
    at Function.syn.(anonymous function) [as click] (https://unpkg.com/syn@0.5.0/dist/global/syn.js:578:24)
    at HTMLDocument.<anonymous> (https://fiddle.jshell.net/0xxjv2o0/1/show/:49:5)
    at fire (https://code.jquery.com/jquery-2.1.3.js:3094:30)
    at Object.fireWith [as resolveWith] (https://code.jquery.com/jquery-2.1.3.js:3206:7)
    at Function.ready (https://code.jquery.com/jquery-2.1.3.js:3412:13)

JSfiddle

imaustink referenced this issue May 9, 2017
The blur method does not work yet but the test should be good to go. #182
@chasenlehara
Copy link
Member

That looks like an issue in Syn, is it not?

@justinbmeyer
Copy link
Member

Try on the document.documentElement or document.body then.

@imaustink
Copy link
Contributor Author

Issue moved to bitovi/syn #140 via ZenHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants