My javascript file is getting longer and longer, and I need to control my code.
I have jQuery functions written like this:
jQuery.fn.myFunction = function(){
}
Is there a way to fold/collapse these code blocks in Eclipse?
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.
One work-around in Eclipse that has worked for me is to give the function a name, even
if you don’t use it. So,
jQuery.fn.myFunction = function whatever(){
…
}