So I got this code
$(document).ready(function(){
$.fn.loadView = function(a){
};
$('#id').click(function(){
$.fn.loadView();
});
$.fn.loadView();
});
So when the code loads up the initialized $.fn.loadView()
just fine the first time. But then when $('#id').click
is activated I get this error
$.fn.loadView is not a function
Whats really making me mad is that I just got done doing something exactly like this on another project and it worked just fine.