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

Events not firing under Ti SDK 2.0.1.GA2 #1

Open
bcpi opened this issue May 21, 2012 · 2 comments
Open

Events not firing under Ti SDK 2.0.1.GA2 #1

bcpi opened this issue May 21, 2012 · 2 comments

Comments

@bcpi
Copy link

bcpi commented May 21, 2012

For some reason the events don't seem to fire under Ti 2.0. Is this a known issue, or something else I should look at? Thanks!

@chrismi
Copy link
Member

chrismi commented May 22, 2012

Hi! We haven't tested the module with the 2.0.1 SDK yet, so feel free to investigate and let us know what you find.

@bcpi
Copy link
Author

bcpi commented May 22, 2012

Hi.

Found the problem.

It is some weird scoping with the variable... I use TIKeyboardEvents within my own commonjs module. If I load "var keyboardevents = require(...);" within a function in my module, it does not work. But if I define "var keyboardevents = null;" at the top of my module, then load within the function "keyboardevents = require(...);" it works fine. not sure why it does this, but it seems to work now. However, the events do seem to fire twice every time.

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

2 participants