{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 'assert(condition, message, displayCaller)'
Method: assert(condition, message, displayCaller)
Method Full Name:     Sys$_Debug$assert(condition, message, displayCaller)
Class: _Debug
Namespace: Sys
Source File: MicrosoftAjax.debug.js
1   function Sys$_Debug$assert(condition, message, displayCaller) {
2     /// <summary locid="M:J#Sys._Debug.assert" />
3     /// <param name="condition" type="Boolean"></param>
4     /// <param name="message" type="String" optional="true" mayBeNull="true"></param>
5     /// <param name="displayCaller" type="Boolean" optional="true"></param>
6     var e = Function._validateParams(arguments, [
7     {name: "condition", type: Boolean},
8     {name: "message", type: String, mayBeNull: true, optional: true},
9     {name: "displayCaller", type: Boolean, optional: true}
10    ]);
11    if (e) throw e;
12    if (!condition) {
13      message = (displayCaller && this.assert.caller) ?
14      String.format(Sys.Res.assertFailedCaller, message, this.assert.caller) :
15      String.format(Sys.Res.assertFailed, message);
16      if (confirm(String.format(Sys.Res.breakIntoDebugger, message))) {
17        this.fail(message);
18      }
19    }
20  }
This is the JavaScript source for method assert(condition, message, displayCaller) from ASP.NET AJAX Library. Full name for this method is Sys$_Debug$assert(condition, message, displayCaller). It belongs to the class _Debug, which is in Sys namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map