I'm encountering an issue which seems to occur only in standalone mode of a HTML5 app which I saved to the Home screen of my iOS device.
By standalone mode, I mean a HTML web app with the following metatag
:
<meta name="apple-mobile-web-app-capable" content="yes">
The javascript (written in coffeescript) in question is the following:
$( ->
$(document).on('click', 'input', (e) ->
alert('click')
)
$(document).on('focusout', 'input', (e) ->
alert('blur')
)
)
These are delegated event handlers to handle dynamically injected <input>
elements. The alert()
messages show up fine in Mobile Safari. However, when the web app is viewed in standalone mode (i.e., launched from the Home screen), the events do not fire.
I'm using jQuery v1.10.2 if that's helpful.