aboutsummaryrefslogtreecommitdiffstats
path: root/src/Resource.js
diff options
context:
space:
mode:
authorMisko Hevery2010-03-18 12:20:06 -0700
committerMisko Hevery2010-03-18 12:20:06 -0700
commit7634a3ed5227f8bc2a2ba83752d0e2c78adb6051 (patch)
treeef94843f25eae83d0492b18149a084868829693c /src/Resource.js
parentf1b50b92ac69f5c58984f5e88015507552d29df2 (diff)
downloadangular.js-7634a3ed5227f8bc2a2ba83752d0e2c78adb6051.tar.bz2
initial revision of new plugable compiler
Diffstat (limited to 'src/Resource.js')
-rw-r--r--src/Resource.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Resource.js b/src/Resource.js
index 587c331e..971ad6e5 100644
--- a/src/Resource.js
+++ b/src/Resource.js
@@ -79,7 +79,7 @@ ResourceFactory.prototype = {
case 1: if (isPost) data = a1; else params = a1; break;
case 0: break;
default:
- throw "Expected between 0-3 arguments [params, data, callback], got " + arguments.length + " arguments."
+ throw "Expected between 0-3 arguments [params, data, callback], got " + arguments.length + " arguments.";
}
var value = action.isArray ? [] : new Resource(data);
@@ -109,7 +109,7 @@ ResourceFactory.prototype = {
case 1: if (typeof a1 == 'function') callback = a1; else params = a1;
case 0: break;
default:
- throw "Expected between 1-3 arguments [params, data, callback], got " + arguments.length + " arguments."
+ throw "Expected between 1-3 arguments [params, data, callback], got " + arguments.length + " arguments.";
}
var self = this;
Resource[name](params, this, function(response){