1
0
Fork 0

Presumably private keywords will be used more frequently than protected, if the class is properly encapsulated

closure/master
Mike Gerwitz 2011-01-20 21:51:35 -05:00
parent 7f92a76e1f
commit 9d9d00388c
1 changed files with 5 additions and 5 deletions

View File

@ -39,14 +39,14 @@
*/ */
exports.buildProp = function( members, meta, name, value, keywords ) exports.buildProp = function( members, meta, name, value, keywords )
{ {
if ( keywords[ 'protected' ] ) if ( keywords[ 'private' ] )
{
members[ 'protected' ][ name ] = value;
}
else if ( keywords[ 'private' ] )
{ {
members[ 'private' ][ name ] = value; members[ 'private' ][ name ] = value;
} }
else if ( keywords[ 'protected' ] )
{
members[ 'protected' ][ name ] = value;
}
else else
{ {
// public keyword is the default, so explicitly specifying it is only // public keyword is the default, so explicitly specifying it is only