Skip to content

Instantly share code, notes, and snippets.

@dandean
Created January 28, 2010 17:39
Show Gist options
  • Select an option

  • Save dandean/288958 to your computer and use it in GitHub Desktop.

Select an option

Save dandean/288958 to your computer and use it in GitHub Desktop.
var Application = {
run: function() {
document.addEventListener("deviceready", this.onDeviceReady.bind(this), false);
this.disableScrolling();
$$("div").first().fade({duration: 5});
},
onDeviceReady: function() {
},
disableScrolling: function() {
document.addEventListener("touchmove", function(e) { alert("touchmove"); e.stop(); }, false);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment