Created
April 13, 2015 03:47
-
-
Save unoseistres/fc858f0921362c9081bd to your computer and use it in GitHub Desktop.
.off not functioning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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