Join GitHub today
Tests: only run ontimeout test if ontimeout exists #3919
Android 4.0-4.3 never call the ontimeout handler. It seems ontimeout wasn't implemented yet. Rather than a convoluted workaround for an outdated browser, we're bypassing this test where ontimeout does not exist.
LGTM. This isn't an issue with a public API, but rather API-consuming code that doesn't support a particular older browser. As usual with custom code from the consuming side, that bypasses jQuery internals and naturally only works on supporting browsers. If a consumer would write this, they would/should not expect it to work on browsers that don't implement