1 function Sys$_Application$addComponent(component) {
4 var e = Function._validateParams(arguments, [
5 {name: "component", type: Sys.Component}
6 ]);
7 if (e) throw e;
8 var id = component.get_id();
9 if (!id) throw Error.invalidOperation(Sys.Res.cantAddWithoutId);
10 if (typeof(this._components[id]) !== 'undefined') throw Error.invalidOperation(String.format(Sys.Res.appDuplicateComponent, id));
11 this._components[id] = component;
12 }