Massive overhauls to the test suite - it is now generated dynamically, along with...
[jquery.git] / build / docs / js / doc.js
1 var types = {
2         jQuery: "A jQuery object.",
3         Object: "A simple Javascript object. For example, it could be a String or a Number.",
4         String: "A string of characters.",
5         Number: "A numeric valid.",
6         Element: "The Javascript object representation of a DOM Element.",
7         Hash: "A Javascript object that contains key/value pairs in the form of properties and values.",
8         "Array<Element>": "An Array of DOM Elements.",
9         "Array<String>": "An Array of strings.",
10         Function: "A reference to a Javascript function."
11 };
12
13 $(document).ready(function(){
14         $("span.tooltip").each(function(){
15                 if ( types[ this.innerHTML ] )
16                         this.title = types[ this.innerHTML ];
17         }).ToolTipDemo('#fff');
18
19         $("a.name").click(function(){
20                 $("div.more,div.short",this.parentNode.parentNode).toggle().find("div.desc",function(){
21                         $(this).html( $(this).html().replace(/\n\n/g, "<br/><br/>") );
22                 });
23                 return false;
24         });
25
26         $("#docs").alphaPager( 1 );
27 });