Fixed an issue with .find(expr,Function) and a Safari bug.
[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         XMLHttpRequest: "An XMLHttpRequest object (referencing a HTTP request)."
12 };
13
14 $(document).ready(function(){
15         $("span.tooltip").each(function(){
16                 if ( types[ this.innerHTML ] )
17                         this.title = types[ this.innerHTML ];
18         }).ToolTipDemo('#fff');
19
20         $("a.name").click(function(){
21                 $("div.more,div.short",this.parentNode.parentNode)
22                         .find("div.desc").each(function(){
23                                 $(this).html( $(this).html().replace(/\n\n/g, "<br/><br/>") );
24                         }).end()
25                         .toggle('slow');
26                 return false;
27         });
28         
29         $("#docs").alphaPager(function(a){
30                 return $.fn.text.apply( [a.getElementsByTagName("span")[2]] ).replace(/^\$\./,"").substr(0,1).toUpperCase();
31         });
32 });