{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 '_validateParameterCount(params, expectedParams)'
Method: _validateParameterCount(params, expectedParams)
Method Full Name:     Function$_validateParameterCount(params, expectedParams)
Class: Function
Namespace: Global (MicrosoftAjax.debug.js)
Source File: MicrosoftAjax.debug.js
1   Function._validateParameterCount = function Function$_validateParameterCount(params, expectedParams) {
2     var maxParams = expectedParams.length;
3     var minParams = 0;
4     for (var i=0; i < expectedParams.length; i++) {
5       if (expectedParams[i].parameterArray) {
6         maxParams = Number.MAX_VALUE;
7       }
8       else if (!expectedParams[i].optional) {
9         minParams++;
10      }
11    }
12    if (params.length < minParams || params.length > maxParams) {
13      var e = Error.parameterCount();
14      e.popStackFrame();
15      return e;
16    }
17    return null;
18  }
This is the JavaScript source for method _validateParameterCount(params, expectedParams) from ASP.NET AJAX Library. Full name for this method is Function$_validateParameterCount(params, expectedParams). 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