I tried to do this:
try{
(function($){
... my plugin stuff
})(jQuery);
}catch(er){
alert("an error occurred");
}
but this doesnt seem to work =/
I’m also trying to figure out how to do this in Mozilla vs IE vs Chrome
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re catching any errors that occur during the creation of your plugin. When the plugin actually gets to being used, there will be no error catching. Place the try catch inside the plugin code to achieve the latter.