{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
View the source code of a Method from ASP.NET AJAX Library. Choose a method from the menu items above (Namespaces, Classes, or Methods).
Method '_validateParameter(param, expectedParam, paramName)'
Method: _validateParameter(param, expectedParam, paramName)
Method Full Name:     Function$_validateParameter(param, expectedParam, paramName)
Class: Function
Namespace: Global (MicrosoftAjax.debug.js)
Source File: MicrosoftAjax.debug.js
1   Function._validateParameter = function Function$_validateParameter(param, expectedParam, paramName) {
2     var e;
3     var expectedType = expectedParam.type;
4     var expectedInteger = !!expectedParam.integer;
5     var expectedDomElement = !!expectedParam.domElement;
6     var mayBeNull = !!expectedParam.mayBeNull;
7     e = Function._validateParameterType(param, expectedType, expectedInteger, expectedDomElement, mayBeNull, paramName);
8     if (e) {
9       e.popStackFrame();
10      return e;
11    }
12    var expectedElementType = expectedParam.elementType;
13    var elementMayBeNull = !!expectedParam.elementMayBeNull;
14    if (expectedType === Array && typeof(param) !== "undefined" && param !== null &&
15    (expectedElementType || !elementMayBeNull)) {
16      var expectedElementInteger = !!expectedParam.elementInteger;
17      var expectedElementDomElement = !!expectedParam.elementDomElement;
18      for (var i=0; i < param.length; i++) {
19        var elem = param[i];
20        e = Function._validateParameterType(elem, expectedElementType,
21        expectedElementInteger, expectedElementDomElement, elementMayBeNull,
22        paramName + "[" + i + "]");
23        if (e) {
24          e.popStackFrame();
25          return e;
26        }
27      }
28    }
29    return null;
30  }
This is the JavaScript source for method _validateParameter(param, expectedParam, paramName) from ASP.NET AJAX Library. Full name for this method is Function$_validateParameter(param, expectedParam, paramName). It belongs to the class Function, which is in Global (MicrosoftAjax.debug.js) namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map