1 Type.prototype.initializeBase = function Type$initializeBase(instance, baseArguments) {
6 var e = Function._validateParams(arguments, [
7 {name: "instance"},
8 {name: "baseArguments", type: Array, mayBeNull: true, optional: true, elementMayBeNull: true}
9 ]);
10 if (e) throw e;
11 if (!this.isInstanceOfType(instance)) throw Error.argumentType('instance', Object.getType(instance), this);
12 this.resolveInheritance();
13 if (this.__baseType) {
14 if (!baseArguments) {
15 this.__baseType.apply(instance);
16 }
17 else {
18 this.__baseType.apply(instance, baseArguments);
19 }
20 }
21 return instance;
22 }