[msvc] Update csproj files (#4087)
[mono.git] / mcs / class / System.Web.Extensions / Resources / MicrosoftAjaxExtension.js
1 Sys._Application.prototype.getForm = function Sys$_Application$getForm() {\r
2         return this._form;\r
3 }\r
4 \r
5 Sys.Application._form = {\r
6         _application : Sys.Application\r
7 }\r
8 \r
9 Sys.Application = {\r
10         _globalInstance : Sys.Application,\r
11         notifyScriptLoaded : Sys.Application.notifyScriptLoaded,\r
12 \r
13         getInstance : function Sys$Application$getInstance(formElement) {\r
14                 /// <param name="formElement" domElement="true"></param>\r
15                 /// <returns type="Sys.Application"></returns>\r
16                 var e = Function._validateParams(arguments, [\r
17                         {name: "formElement", domElement: true}\r
18                 ]);\r
19                 return formElement._application;\r
20         },\r
21 \r
22         _initialize : function Sys$Application$_initialize(formElement) {\r
23                 if (formElement._application) {\r
24                         throw Error.invalidOperation('The Application cannot be initialized more than once.');\r
25                 }\r
26                 formElement._application = new Sys._Application();\r
27                 formElement._application._form = formElement;\r
28         }\r
29 }\r
30 \r
31 Sys.Component.prototype.registerWithApplication = function Sys$Component$registerWithApplication(application) {\r
32         /// <param name="application" type="Sys._Application"></param>\r
33         var e = Function._validateParams(arguments, [\r
34                 {name: "application", type: Sys._Application}\r
35         ]);\r
36         if (e) throw e;\r
37         if(this._application)\r
38                 return;\r
39         this._application = application;\r
40         application.registerDisposableObject(this)\r
41 }\r
42 \r
43 Sys.Component.prototype.registerAsSingleton = function Sys$Component$registerAsSingleton() {\r
44         if (arguments.length !== 0) throw Error.parameterCount();\r
45         this.registerWithApplication(Sys.Application._globalInstance);\r
46 }\r
47 \r
48 Sys.Component.prototype.getApplication = function Sys$Component$getApplication() {\r
49         return this._application;\r
50 }\r
51 \r
52 var $create = Sys.Component.create = function Sys$Component$createWithForm(formElement, type, properties, events, references, element) {\r
53         /// <param name="formElement" domElement="true"></param>\r
54         /// <param name="type" type="Type"></param>\r
55         /// <param name="properties" optional="true" mayBeNull="true"></param>\r
56         /// <param name="events" optional="true" mayBeNull="true"></param>\r
57         /// <param name="references" optional="true" mayBeNull="true"></param>\r
58         /// <param name="element" domElement="true" optional="true" mayBeNull="true"></param>\r
59         /// <returns type="Sys.UI.Component"></returns>\r
60         var e = Function._validateParams(arguments, [\r
61                 {name: "formElement", domElement: true},\r
62                 {name: "type", type: Type},\r
63                 {name: "properties", mayBeNull: true, optional: true},\r
64                 {name: "events", mayBeNull: true, optional: true},\r
65                 {name: "references", mayBeNull: true, optional: true},\r
66                 {name: "element", mayBeNull: true, domElement: true, optional: true}\r
67         ]);\r
68         if (e) throw e;\r
69     \r
70         return Sys.Component._createInternal(formElement._application, type, properties, events, references, element);\r
71 }\r
72 \r
73 var $find = null;\r