what does this code performs?
if(object.jquery){
....
}
I don’t know what jQuery attribute does. I think it checks if ‘object’ is a valid jQuery object, but I’m not really sure.
Thanks in advance.
Esteve
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.
It’s checking if
objecthas a property calledjquery, so yes it’s checking ifobjectis specifically a jquery object 🙂It’s not checking if it’s been loaded (try it on this very page), that would be
if(window.jQuery), but jquery objects have a property calledjquerywhich is the version, for example: