Re: [jQuery] jQuery API and docs

2006-11-01 Thread Klaus Hartl
Jörn Zaefferer schrieb: Hi jQueryians, as discussed before, the jQuery API contains quite a lot of methods. The event shortcuts or one thing, another is single methods with optional parameters. Let's take slideDown() as an example. It has two paremters, speed and callback. There is one

Re: [jQuery] jQuery API and docs

2006-11-01 Thread Jörn Zaefferer
Klaus Hartl schrieb: I found another little glitch with characters in inline documentation. Unless you do not escape it as amp; the XML for the generated docs is ill-formed. But that means, that the inline documentatin is misleading, for example for the form plugin formSerialize method:

Re: [jQuery] jQuery API and docs

2006-11-01 Thread Klaus Hartl
Jörn Zaefferer schrieb: Klaus Hartl schrieb: I found another little glitch with characters in inline documentation. Unless you do not escape it as amp; the XML for the generated docs is ill-formed. But that means, that the inline documentatin is misleading, for example for the form plugin

Re: [jQuery] jQuery API and docs

2006-11-01 Thread Jörn Zaefferer
Klaus Hartl schrieb: Agreed. I just thought that the conversion from to amp; should be done while generating that xml file... Ah, ok, good point. That makes both inline and generated docs readable. -- Jörn Zaefferer http://bassistance.de ___

Re: [jQuery] jQuery API and docs

2006-10-31 Thread Alex Cook
@jquery.com Subject: [jQuery] jQuery API and docs Hi jQueryians, as discussed before, the jQuery API contains quite a lot of methods. The event shortcuts or one thing, another is single methods with optional parameters. Let's take slideDown() as an example. It has two paremters, speed and callback

[jQuery] jQuery API and docs

2006-10-30 Thread Jörn Zaefferer
Hi jQueryians, as discussed before, the jQuery API contains quite a lot of methods. The event shortcuts or one thing, another is single methods with optional parameters. Let's take slideDown() as an example. It has two paremters, speed and callback. There is one method documented with only

Re: [jQuery] jQuery API and docs

2006-10-30 Thread Klaus Hartl
Jörn Zaefferer schrieb: Hi jQueryians, as discussed before, the jQuery API contains quite a lot of methods. The event shortcuts or one thing, another is single methods with optional parameters. Let's take slideDown() as an example. It has two paremters, speed and callback. There is one

Re: [jQuery] jQuery API and docs

2006-10-30 Thread Klaus Hartl
Output could look like this: someFunction(requiredArg[, optionalArg]); Hm, makes not so much sense for getter/setter methods where the behaviour is completly different. These methods should remain splitted. -- Klaus ___ jQuery mailing list

Re: [jQuery] jQuery API and docs

2006-10-30 Thread Jörn Zaefferer
Makes sense to me. Although I just changed that for the cookie plugin, sigh (Maybe that made you start the discussion?). Kind of. But your change makes sense, too. The method behaves quite different based on the parameters. In the fadeIn(speed[, callback]) case, it essentially does the same

Re: [jQuery] jQuery API and docs

2006-10-30 Thread Mike Alsup
While we are at it, how to go about params that can be be a string or a number (like speed)? Just stating the argument is an object is ambiguous to me. What about: @param Integer|String ? Since there is no Integer data type I'd stick with Number and doc the supported/expected values.

Re: [jQuery] jQuery API and docs

2006-10-30 Thread Klaus Hartl
Mike Alsup schrieb: While we are at it, how to go about params that can be be a string or a number (like speed)? Just stating the argument is an object is ambiguous to me. What about: @param Integer|String ? Since there is no Integer data type I'd stick with Number and doc the