Presumably private keywords will be used more frequently than protected, if the class is properly encapsulated
parent
7f92a76e1f
commit
9d9d00388c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue