1
0
Fork 0

[Cleanup] Removed unused arguments from concrete ctor

closure/master
Mike Gerwitz 2011-05-10 23:30:32 -04:00
parent 91a47e4dcd
commit 6325b0cf17
1 changed files with 7 additions and 8 deletions

View File

@ -322,9 +322,9 @@ function createConcreteCtor( cname, members )
} }
// generate and store unique instance id // generate and store unique instance id
attachInstanceId( this, ++instance_id, ClassInstance ); attachInstanceId( this, ++instance_id );
initInstance( instance_id, this ); initInstance( this );
this.__initProps(); this.__initProps();
// If we're extending, we don't actually want to invoke any class // If we're extending, we don't actually want to invoke any class
@ -771,10 +771,10 @@ function attachInstanceId( instance, iid )
/** /**
* Initializes class instance * Initializes class instance
* *
* This process will create the instance visibility object containing private * This process will create the instance visibility object that will contain
* and protected members. The class instance is part of the prototype chain. * private and protected members. The class instance is part of the prototype
* This will be passed to all methods when invoked, permitting them to access * chain. This will be passed to all methods when invoked, permitting them to
* the private and protected members while keeping them encapsulated. * access the private and protected members while keeping them encapsulated.
* *
* For each instance, there is always a base. The base will contain a proxy to * For each instance, there is always a base. The base will contain a proxy to
* the public members on the instance itself. The base will also contain all * the public members on the instance itself. The base will also contain all
@ -791,12 +791,11 @@ function attachInstanceId( instance, iid )
* The resulting structure looks something like this: * The resulting structure looks something like this:
* class_instance = { iid: { cid: {} } } * class_instance = { iid: { cid: {} } }
* *
* @param {number} iid instance id
* @param {Object} instance instance to initialize * @param {Object} instance instance to initialize
* *
* @return {undefined} * @return {undefined}
*/ */
function initInstance( iid, instance ) function initInstance( instance )
{ {
var prot = function() {}; var prot = function() {};
prot.prototype = instance; prot.prototype = instance;