Skip to content

Commit 79401b1

Browse files
authored
Merge pull request #60 from canjs/chasenlehara-patch-1
Clean up the docs
2 parents 9478270 + 4a40273 commit 79401b1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

can-ajax.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ var param = require("can-param");
1616
*
1717
* @signature `ajax( ajaxOptions )`
1818
*
19-
* Is used to make an asynchronous HTTP (AJAX) request similar to [http://api.jquery.com/jQuery.ajax/jQuery.ajax].
19+
* Is used to make an asynchronous HTTP (AJAX) request similar to [jQuery.ajax()](http://api.jquery.com/jQuery.ajax/).
2020
*
21-
* ```
22-
* var ajax = require("can-ajax");
21+
* ```js
22+
* import { ajax } from "can";
2323
*
2424
* ajax({
2525
* url: "http://query.yahooapis.com/v1/public/yql",
@@ -52,8 +52,8 @@ var param = require("can-param");
5252
* Is used to persist ajaxOptions across all ajax requests and they can be over-written in the ajaxOptions of the actual request.
5353
* [https://api.jquery.com/jquery.ajaxsetup/]
5454
*
55-
* ```
56-
* var ajax = require("can-ajax");
55+
* ```js
56+
* import { ajax } from "can";
5757
*
5858
* ajax.ajaxSetup({xhrFields: {withCredentials: true}});
5959
*

0 commit comments

Comments
 (0)