{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 '_destroyTree(element)'
Method: _destroyTree(element)
Method Full Name:     Sys$WebForms$PageRequestManager$_destroyTree(element)
Class: PageRequestManager
Namespace: Sys.WebForms
Source File: MicrosoftAjaxWebForms.debug.js
1   function Sys$WebForms$PageRequestManager$_destroyTree(element) {
2     if (element.nodeType === 1) {
3       var childNodes = element.childNodes;
4       for (var i = childNodes.length - 1; i >= 0; i--) {
5         var node = childNodes[i];
6         if (node.nodeType === 1) {
7           if (node.dispose && typeof(node.dispose) === "function") {
8             node.dispose();
9           }
10          else if (node.control && typeof(node.control.dispose) === "function") {
11            node.control.dispose();
12          }
13          var behaviors = Sys.UI.Behavior.getBehaviors(node);
14          for (var j = behaviors.length - 1; j >= 0; j--) {
15            behaviors[j].dispose();
16          }
17          this._destroyTree(node);
18        }
19      }
20    }
21  }
This is the JavaScript source for method _destroyTree(element) from ASP.NET AJAX Library. Full name for this method is Sys$WebForms$PageRequestManager$_destroyTree(element). It belongs to the class PageRequestManager, which is in Sys.WebForms namespace. This source is in MicrosoftAjaxWebForms.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map