alexgibson/shake.js — pull request #8 by tehsis (2013-05-21 05:38:19+00:00)
Title: Try to use CustomEvent. If not available, use createEvent. Finally return false.

The previous commits broke the script for Firefox on Android and FirefoxOS. Since they don't have support for createEvent.

I've moved the "return false" statement to the "if..else" sentences that detects CustomEvent and createEvent.