Update inline documentation.

This commit is contained in:
Andrew Dupont 2009-06-13 19:27:22 -05:00
parent 068f3bba56
commit 16b69a2ebf
2 changed files with 10 additions and 2 deletions

View File

@ -31,8 +31,8 @@
*
* * `asynchronous` ([[Boolean]]; default `true`): Determines whether
* `XMLHttpRequest` is used asynchronously or not. Synchronous usage is
* seriously discouraged — it halts all script execution for the duration of
* the request _and_ blocks the browser UI.
* **strongly discouraged** — it halts all script execution for the
* duration of the request _and_ blocks the browser UI.
* * `contentType` ([[String]]; default `application/x-www-form-urlencoded`):
* The `Content-type` header for your request. Change this header if you
* want to send data in another format (like XML).

View File

@ -254,6 +254,14 @@ Object.extend(String.prototype, (function() {
*
* Converts a string separated by dashes into a camelCase equivalent.
* For instance, 'foo-bar' would be converted to 'fooBar'.
*
* <h4>Examples</h4>
*
* 'background-color'.camelize();
* // -> 'backgroundColor'
*
* '-moz-binding'.camelize();
* // -> 'MozBinding'
**/
function camelize() {
var parts = this.split('-'), len = parts.length;