{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 'getBehaviorsByType(element, type)'
Method: getBehaviorsByType(element, type)
Method Full Name:     Sys$UI$Behavior$getBehaviorsByType(element, type)
Class: Behavior
Namespace: Sys.UI
Source File: MicrosoftAjax.debug.js
1   Sys.UI.Behavior.getBehaviorsByType = function Sys$UI$Behavior$getBehaviorsByType(element, type) {
2     /// <summary locid="M:J#Sys.UI.Behavior.getBehaviorsByType" />
3     /// <param name="element" domElement="true"></param>
4     /// <param name="type" type="Type"></param>
5     /// <returns type="Array" elementType="Sys.UI.Behavior"></returns>
6     var e = Function._validateParams(arguments, [
7     {name: "element", domElement: true},
8     {name: "type", type: Type}
9     ]);
10    if (e) throw e;
11    var behaviors = element._behaviors;
12    var results = [];
13    if (behaviors) {
14      for (var i = 0, l = behaviors.length; i < l; i++) {
15        if (type.isInstanceOfType(behaviors[i])) {
16          results[results.length] = behaviors[i];
17        }
18      }
19    }
20    return results;
21  }
This is the JavaScript source for method getBehaviorsByType(element, type) from ASP.NET AJAX Library. Full name for this method is Sys$UI$Behavior$getBehaviorsByType(element, type). It belongs to the class Behavior, which is in Sys.UI namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map