Getting intellisense in JS code

Today, I”ve noticed an entry on the JScript blog that gave some advice on how to get intellisense for your fields. I just have one thing to say about it: DON”T even think about using it. It”s completely wrong. Ok, slowly: it”s WRONG. Declaring fields on the prototype object has a different meaning than declaring them on the constructor of the class. This means that I”ll have to live without intellisense on my JS classes…


~ by Luis Abreu on November 11, 2007.

2 Responses to “Getting intellisense in JS code”

  1. I believe you can use /// xml-documentation in your prototype (no matter where the field actually is initialized).

  2. Hello Bertrand.
    Yes, that really seems like a better option. I”ve noticed several /// entries on the asp.ent ajax client libs, so i thought that those entries should be used. Anyway, I was jus complaining about the approach that was offered in the JScript blog 🙂 if i”d had to do that for getting intellisense, i”d really prefer not to have it…

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: