diff --git a/src/ajax.js b/src/ajax.js index 96cd928..3102025 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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). diff --git a/src/lang/string.js b/src/lang/string.js index 4b125dd..5066d0d 100644 --- a/src/lang/string.js +++ b/src/lang/string.js @@ -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'. + * + *

Examples

+ * + * 'background-color'.camelize(); + * // -> 'backgroundColor' + * + * '-moz-binding'.camelize(); + * // -> 'MozBinding' **/ function camelize() { var parts = this.split('-'), len = parts.length;