{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
AJAX Source Viewer
Slideshow of method source in a particular class. Choose a class from the Namespaces, Classes, or Methods menu item above.
Slideshow for Class 'IContainer'
Previous Method:

None


Current Method:

addComponent(component)
Next Method:

findComponent(id)
Method 'addComponent(component)'
Method: addComponent(component)
Method Full Name:     Sys$_Application$addComponent(component)
Class: _Application
Namespace: Sys
Source File: MicrosoftAjax.debug.js
1   function Sys$_Application$addComponent(component) {
2     /// <summary locid="M:J#Sys._Application.addComponent" />
3     /// <param name="component" type="Sys.Component"></param>
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  }
This is the JavaScript source for method addComponent(component) from ASP.NET AJAX Library. Full name for this method is Sys$_Application$addComponent(component). It belongs to the class _Application, which is in Sys namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map