Update inline documentation.
This commit is contained in:
parent
068f3bba56
commit
16b69a2ebf
@ -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).
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user