Fixed an issue with .find(expr,Function) and a Safari bug.
This commit is contained in:
parent
025049a67a
commit
fb11b33d68
1 changed files with 5 additions and 4 deletions
|
@ -7,7 +7,8 @@ var types = {
|
||||||
Hash: "A Javascript object that contains key/value pairs in the form of properties and values.",
|
Hash: "A Javascript object that contains key/value pairs in the form of properties and values.",
|
||||||
"Array<Element>": "An Array of DOM Elements.",
|
"Array<Element>": "An Array of DOM Elements.",
|
||||||
"Array<String>": "An Array of strings.",
|
"Array<String>": "An Array of strings.",
|
||||||
Function: "A reference to a Javascript function."
|
Function: "A reference to a Javascript function.",
|
||||||
|
XMLHttpRequest: "An XMLHttpRequest object (referencing a HTTP request)."
|
||||||
};
|
};
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
@ -18,14 +19,14 @@ $(document).ready(function(){
|
||||||
|
|
||||||
$("a.name").click(function(){
|
$("a.name").click(function(){
|
||||||
$("div.more,div.short",this.parentNode.parentNode)
|
$("div.more,div.short",this.parentNode.parentNode)
|
||||||
.find("div.desc",function(){
|
.find("div.desc").each(function(){
|
||||||
$(this).html( $(this).html().replace(/\n\n/g, "<br/><br/>") );
|
$(this).html( $(this).html().replace(/\n\n/g, "<br/><br/>") );
|
||||||
})
|
}).end()
|
||||||
.toggle('slow');
|
.toggle('slow');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#docs").alphaPager(function(a){
|
$("#docs").alphaPager(function(a){
|
||||||
return $.fn.text.apply( [a.childNodes[1]] ).replace(/^\$\./,"").substr(0,1).toUpperCase();
|
return $.fn.text.apply( [a.getElementsByTagName("span")[2]] ).replace(/^\$\./,"").substr(0,1).toUpperCase();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue