{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 'clearHandlers(element)'
Method: clearHandlers(element)
Method Full Name:     Sys$UI$DomEvent$clearHandlers(element)
Class: DomEvent
Namespace: Sys.UI
Source File: MicrosoftAjax.debug.js
1   var $clearHandlers = Sys.UI.DomEvent.clearHandlers = function Sys$UI$DomEvent$clearHandlers(element) {
2     /// <summary locid="M:J#Sys.UI.DomEvent.clearHandlers" />
3     /// <param name="element"></param>
4     var e = Function._validateParams(arguments, [
5     {name: "element"}
6     ]);
7     if (e) throw e;
8     Sys.UI.DomEvent._ensureDomNode(element);
9     if (element._events) {
10      var cache = element._events;
11      for (var name in cache) {
12        var handlers = cache[name];
13        for (var i = handlers.length - 1; i >= 0; i--) {
14          $removeHandler(element, name, handlers[i].handler);
15        }
16      }
17      element._events = null;
18    }
19  }
This is the JavaScript source for method clearHandlers(element) from ASP.NET AJAX Library. Full name for this method is Sys$UI$DomEvent$clearHandlers(element). 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