1 Type.prototype.getBaseMethod = function Type$getBaseMethod(instance, name) {
6 var e = Function._validateParams(arguments, [
7 {name: "instance"},
8 {name: "name", type: String}
9 ]);
10 if (e) throw e;
11 if (!this.isInstanceOfType(instance)) throw Error.argumentType('instance', Object.getType(instance), this);
12 var baseType = this.getBaseType();
13 if (baseType) {
14 var baseMethod = baseType.prototype[name];
15 return (baseMethod instanceof Function) ? baseMethod : null;
16 }
17 return null;
18 }