reserved => reserved_members
parent
2555a0db47
commit
52aab7fa54
|
@ -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 + '::' : '' ) +
|
||||||
|
|
Loading…
Reference in New Issue