aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/resource.js
diff options
context:
space:
mode:
authorKarl Seamon2011-07-22 15:56:45 -0400
committerIgor Minar2011-07-27 15:21:31 -0700
commitb5594a773a6f07dcba914aa385f92d3305285b24 (patch)
tree40823e64e9f74b356a8065edae9bbdf351082164 /src/service/resource.js
parentf39420e7d7aca2a97eaa01853991facf65dcbd6e (diff)
downloadangular.js-b5594a773a6f07dcba914aa385f92d3305285b24.tar.bz2
feat($xhr): add custom error callback to $xhr, $xhr.cache, $xhr.bulk, $resource
Closes #408
Diffstat (limited to 'src/service/resource.js')
-rw-r--r--src/service/resource.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/service/resource.js b/src/service/resource.js
index 31d7ceeb..c11067b1 100644
--- a/src/service/resource.js
+++ b/src/service/resource.js
@@ -82,9 +82,9 @@
* The action methods on the class object or instance object can be invoked with the following
* parameters:
*
- * - HTTP GET "class" actions: `Resource.action([parameters], [callback])`
- * - non-GET "class" actions: `Resource.action(postData, [parameters], [callback])`
- * - non-GET instance actions: `instance.$action([parameters], [callback])`
+ * - HTTP GET "class" actions: `Resource.action([parameters], [success], [error])`
+ * - non-GET "class" actions: `Resource.action(postData, [parameters], [success], [error])`
+ * - non-GET instance actions: `instance.$action([parameters], [success], [error])`
*
*
* @example
@@ -142,8 +142,8 @@
});
</pre>
*
- * It's worth noting that the callback for `get`, `query` and other method gets passed in the
- * response that came from the server, so one could rewrite the above example as:
+ * It's worth noting that the success callback for `get`, `query` and other method gets passed
+ * in the response that came from the server, so one could rewrite the above example as:
*
<pre>
var User = $resource('/user/:userId', {userId:'@id'});