Anybody familiar with patterns for:
- Checking for existing jQuery extension most safely?
- And how to exit from it safely if code can not be executed.
Like
(function($){
if (jQuery.fn.pluginName)
......
}
})(jQuery);
10x, BR
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.
The $.fn namespace is populated with functions. If the plugin exists you can use this
Also if that wasnt enough, you can also check using