1
0
Fork 0

reserved => reserved_members

closure/master
Mike Gerwitz 2011-03-28 19:01:58 -04:00
parent 2555a0db47
commit 52aab7fa54
1 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ var util = require( __dirname + '/util' ),
* *
* @type {Object.<string,boolean>} * @type {Object.<string,boolean>}
*/ */
reserved = { '__initProps': true }, reserved_members = { '__initProps': true },
/** /**
* Hash of members that must be public * Hash of members that must be public
@ -108,7 +108,7 @@ exports.ClassBase = function Class() {};
exports.getReservedMembers = function() exports.getReservedMembers = function()
{ {
// return a copy of the reserved members // return a copy of the reserved members
return util.clone( reserved, true ); return util.clone( reserved_members, true );
}; };
@ -361,7 +361,7 @@ function buildMembers(
each: function( name, value, keywords ) each: function( name, value, keywords )
{ {
// disallow use of our internal __initProps() method // disallow use of our internal __initProps() method
if ( reserved[ name ] === true ) if ( reserved_members[ name ] === true )
{ {
throw Error( throw Error(
( ( cname ) ? cname + '::' : '' ) + ( ( cname ) ? cname + '::' : '' ) +