Hiding privates from Javascript Intellisense
Posted
by Robert Koritnik
on Stack Overflow
See other posts from Stack Overflow
or by Robert Koritnik
Published on 2009-09-17T10:42:08Z
Indexed on
2010/03/25
5:43 UTC
Read the original article
Hit count: 448
Is it possible to hide certain functions/fields from displaying in javascript intellisense drop down list in Visual Studio 2008? Either by javascript documentaion XML of by naming privates in a certain way?
I've seen <private />
in jquery vsdoc file that implies exactly this behaviour, but doesn't meet my expectations
{
__hiddenField: 0,
/// <private />
increment: function(){
/// <summary>Increments a private variable</summary>
__hiddenField++;
}
}
But since fields can't contain documentation (because they have no body) they have to be documented at the top. But still doesn't work:
{
/// <field name="__hiddenField" type="Number" private="true">PRIVATE USE</field>
__hiddenField: 0,
increment: function(){
/// <summary>Increments a private variable</summary>
__hiddenField++;
}
}
Impossible is a perfectly possible answer and will be accepted if you have the knowledge that it's actually not possible.
© Stack Overflow or respective owner