{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 'addHandlers(element, events, handlerOwner)'
Method: addHandlers(element, events, handlerOwner)
Method Full Name:     Sys$UI$DomEvent$addHandlers(element, events, handlerOwner)
Class: DomEvent
Namespace: Sys.UI
Source File: MicrosoftAjax.debug.js
1   var $addHandlers = Sys.UI.DomEvent.addHandlers = function Sys$UI$DomEvent$addHandlers(element, events, handlerOwner) {
2     /// <summary locid="M:J#Sys.UI.DomEvent.addHandlers" />
3     /// <param name="element"></param>
4     /// <param name="events" type="Object"></param>
5     /// <param name="handlerOwner" optional="true"></param>
6     var e = Function._validateParams(arguments, [
7     {name: "element"},
8     {name: "events", type: Object},
9     {name: "handlerOwner", optional: true}
10    ]);
11    if (e) throw e;
12    Sys.UI.DomEvent._ensureDomNode(element);
13    for (var name in events) {
14      var handler = events[name];
15      if (typeof(handler) !== 'function') throw Error.invalidOperation(Sys.Res.cantAddNonFunctionhandler);
16      if (handlerOwner) {
17        handler = Function.createDelegate(handlerOwner, handler);
18      }
19      $addHandler(element, name, handler);
20    }
21  }
This is the JavaScript source for method addHandlers(element, events, handlerOwner) from ASP.NET AJAX Library. Full name for this method is Sys$UI$DomEvent$addHandlers(element, events, handlerOwner). It belongs to the class DomEvent, which is in Sys.UI namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map