coope/lst/ctor-factory-priv-nested-cl...

14 lines
268 B
JavaScript

var Database = Class(
{
__construct: function( host, user, pass )
{
// __priv contains private members
var ip = this.__priv._resolveHost();
// __priv is undefined
this.__priv._connect( ip, user, pass );
},
// ...
} );