File: MicrosoftAjaxExtension.js

package info (click to toggle)
mono 4.6.2.7+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 778,148 kB
  • ctags: 914,052
  • sloc: cs: 5,779,509; xml: 2,773,713; ansic: 432,645; sh: 14,749; makefile: 12,361; perl: 2,488; python: 1,434; cpp: 849; asm: 531; sql: 95; sed: 16; php: 1
file content (73 lines) | stat: -rw-r--r-- 2,733 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Sys._Application.prototype.getForm = function Sys$_Application$getForm() {
	return this._form;
}

Sys.Application._form = {
	_application : Sys.Application
}

Sys.Application = {
	_globalInstance : Sys.Application,
	notifyScriptLoaded : Sys.Application.notifyScriptLoaded,

	getInstance : function Sys$Application$getInstance(formElement) {
		/// <param name="formElement" domElement="true"></param>
		/// <returns type="Sys.Application"></returns>
		var e = Function._validateParams(arguments, [
			{name: "formElement", domElement: true}
		]);
		return formElement._application;
	},

	_initialize : function Sys$Application$_initialize(formElement) {
		if (formElement._application) {
			throw Error.invalidOperation('The Application cannot be initialized more than once.');
		}
		formElement._application = new Sys._Application();
		formElement._application._form = formElement;
	}
}

Sys.Component.prototype.registerWithApplication = function Sys$Component$registerWithApplication(application) {
	/// <param name="application" type="Sys._Application"></param>
	var e = Function._validateParams(arguments, [
		{name: "application", type: Sys._Application}
	]);
	if (e) throw e;
	if(this._application)
		return;
	this._application = application;
	application.registerDisposableObject(this)
}

Sys.Component.prototype.registerAsSingleton = function Sys$Component$registerAsSingleton() {
	if (arguments.length !== 0) throw Error.parameterCount();
	this.registerWithApplication(Sys.Application._globalInstance);
}

Sys.Component.prototype.getApplication = function Sys$Component$getApplication() {
	return this._application;
}

var $create = Sys.Component.create = function Sys$Component$createWithForm(formElement, type, properties, events, references, element) {
	/// <param name="formElement" domElement="true"></param>
	/// <param name="type" type="Type"></param>
	/// <param name="properties" optional="true" mayBeNull="true"></param>
	/// <param name="events" optional="true" mayBeNull="true"></param>
	/// <param name="references" optional="true" mayBeNull="true"></param>
	/// <param name="element" domElement="true" optional="true" mayBeNull="true"></param>
	/// <returns type="Sys.UI.Component"></returns>
	var e = Function._validateParams(arguments, [
		{name: "formElement", domElement: true},
		{name: "type", type: Type},
		{name: "properties", mayBeNull: true, optional: true},
		{name: "events", mayBeNull: true, optional: true},
		{name: "references", mayBeNull: true, optional: true},
		{name: "element", mayBeNull: true, domElement: true, optional: true}
	]);
	if (e) throw e;
    
	return Sys.Component._createInternal(formElement._application, type, properties, events, references, element);
}

var $find = null;