I’ve seen object literal examples and they look really nice and sensible. What I want to know is if it’s possible to use object literal over multiple files, because all the examples I’ve seen had only 1 file.
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.
At the top of each file you check to see if the object already exists.. if it does, then use the existing object.. if not then create a new object so you’re not trying to work on an undefined variable.