Skip to content

Instantly share code, notes, and snippets.

@unoseistres
Created April 13, 2015 03:47
Show Gist options
  • Save unoseistres/fc858f0921362c9081bd to your computer and use it in GitHub Desktop.
Save unoseistres/fc858f0921362c9081bd to your computer and use it in GitHub Desktop.
.off not functioning
var foo= $(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") {
$("#section2").off( "swiperight");
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