Getting intellisense in JS code

Published Sun, Nov 11 2007 22:50

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...

Filed under:

Comments

# Bertrand Le Roy said on Monday, November 12, 2007 12:11 AM

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

# Luis Abreu said on Monday, November 12, 2007 3:19 AM

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 Comment

(required) 
(required) 
(optional)
(required)