{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 'prototype.implementsInterface(interfaceType)'
Method: prototype.implementsInterface(interfaceType)
Method Full Name:     Type$implementsInterface(interfaceType)
Class: Type
Namespace: Global (MicrosoftAjax.debug.js)
Source File: MicrosoftAjax.debug.js
1   Type.prototype.implementsInterface = function Type$implementsInterface(interfaceType) {
2     /// <summary locid="M:J#Type.implementsInterface" />
3     /// <param name="interfaceType" type="Type"></param>
4     /// <returns type="Boolean"></returns>
5     var e = Function._validateParams(arguments, [
6     {name: "interfaceType", type: Type}
7     ]);
8     if (e) throw e;
9     this.resolveInheritance();
10    var interfaceName = interfaceType.getName();
11    var cache = this.__interfaceCache;
12    if (cache) {
13      var cacheEntry = cache[interfaceName];
14      if (typeof(cacheEntry) !== 'undefined') return cacheEntry;
15    }
16    else {
17      cache = this.__interfaceCache = {};
18    }
19    var baseType = this;
20    while (baseType) {
21      var interfaces = baseType.__interfaces;
22      if (interfaces) {
23        if (Array.indexOf(interfaces, interfaceType) !== -1) {
24          return cache[interfaceName] = true;
25        }
26      }
27      baseType = baseType.__baseType;
28    }
29    return cache[interfaceName] = false;
30  }
This is the JavaScript source for method prototype.implementsInterface(interfaceType) from ASP.NET AJAX Library. Full name for this method is Type$implementsInterface(interfaceType). It belongs to the class Type, 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