soyjavi / QuoJS

Micro #JavaScript Library for Mobile Devices
MIT License
2.07k stars 236 forks source link

Move initialization of gesture handlers to avoid setting undefined callbacks if document is ready #112

Closed delapuente closed 10 years ago

delapuente commented 10 years ago

Greetings from Ironhack!

When trying to defer the script load of quo.gestures we discovered this bug. If the document is already ready, the function will be executed immediately setting undefined callbacks for gesture events.

The tests are failing for reasons unrelated (it is something about AJAX).

delapuente commented 10 years ago

Hey. This is the same as #107 (I didn't see it although I was in the issues first)!