Skip to content

Instantly share code, notes, and snippets.

@unoseistres
Created April 12, 2015 22:39
Show Gist options
  • Save unoseistres/4d35a3827ce0615a7bc2 to your computer and use it in GitHub Desktop.
Save unoseistres/4d35a3827ce0615a7bc2 to your computer and use it in GitHub Desktop.
$(document).on("pagecreate","#section2",function(){
$("#section2").on("swiperight",function(){
$.mobile.changePage("#section1",{transition:"slide", reverse:true
});
var handler = function(event) {
if(document.getElementById(drop).style.display==="block") {
removeEventListener("swiperight", handler, false);
console.log("remove");
}
};
});
console.log("section2 right");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment