diff options
| author | Vojta Jina | 2011-08-10 15:59:55 +0200 |
|---|---|---|
| committer | Igor Minar | 2011-11-30 11:03:41 -0500 |
| commit | 45f47ff6cd264dcd347e6df92c9ef39b0ae8aaba (patch) | |
| tree | 3b18d13dca703ee7ce21f11729ff3db31a55cfb9 /src/service/resource.js | |
| parent | 0c8b35681e2ea9ce3ee6a188476f89be1336f1cb (diff) | |
| download | angular.js-45f47ff6cd264dcd347e6df92c9ef39b0ae8aaba.tar.bz2 | |
fix($browser.xhr): change method "JSON" to "JSONP"
Breaks "JSON" xhr method is now called "JSONP"
Diffstat (limited to 'src/service/resource.js')
| -rw-r--r-- | src/service/resource.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service/resource.js b/src/service/resource.js index 969e4be1..2082b9ed 100644 --- a/src/service/resource.js +++ b/src/service/resource.js @@ -40,7 +40,7 @@ * - `action` – {string} – The name of action. This name becomes the name of the method on your * resource object. * - `method` – {string} – HTTP request method. Valid methods are: `GET`, `POST`, `PUT`, `DELETE`, - * and `JSON` (also known as JSONP). + * and `JSONP` * - `params` – {object=} – Optional set of pre-bound parameters for this action. * - isArray – {boolean=} – If true then the returned object for this action is an array, see * `returns` section. @@ -163,7 +163,7 @@ this.Activity = $resource( 'https://www.googleapis.com/buzz/v1/activities/:userId/:visibility/:activityId/:comments', {alt:'json', callback:'JSON_CALLBACK'}, - {get:{method:'JSON', params:{visibility:'@self'}}, replies: {method:'JSON', params:{visibility:'@self', comments:'@comments'}}} + {get:{method:'JSONP', params:{visibility:'@self'}}, replies: {method:'JSONP', params:{visibility:'@self', comments:'@comments'}}} ); } |
