{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 'createCallback(method, context)'
Method: createCallback(method, context)
Method Full Name:     Function$createCallback(method, context)
Class: Function
Namespace: Global (MicrosoftAjax.debug.js)
Source File: MicrosoftAjax.debug.js
1   Function.createCallback = function Function$createCallback(method, context) {
2     /// <summary locid="M:J#Function.createCallback" />
3     /// <param name="method" type="Function"></param>
4     /// <param name="context" mayBeNull="true"></param>
5     /// <returns type="Function"></returns>
6     var e = Function._validateParams(arguments, [
7     {name: "method", type: Function},
8     {name: "context", mayBeNull: true}
9     ]);
10    if (e) throw e;
11    return function() {
12      var l = arguments.length;
13      if (l > 0) {
14        var args = [];
15        for (var i = 0; i < l; i++) {
16          args[i] = arguments[i];
17        }
18        args[l] = context;
19        return method.apply(this, args);
20      }
21      return method.call(this, context);
22    }
23  }
This is the JavaScript source for method createCallback(method, context) from ASP.NET AJAX Library. Full name for this method is Function$createCallback(method, context). 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