LA.NET [EN]

Nov 11

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…

2 comments so far

  1. Bertrand Le Roy
    6:11 am - 11-12-2007

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

  2. Luis Abreu
    9:19 am - 11-12-2007

    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

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>