I have a function in jquery called navigation which is called once the page is loaded.
$(document).ready(function(){
   navigation();
 });
the function definition is global. This function is again called on an ajax success function
var onSuccess=function(data){
    //unbind the previous navigation
   navigation();
  }
How do i unbind the previous navigation function so that the call on onSuccess is a new call
 
     
    