Skip to content

Commit 5147a6a

Browse files
committed
v1.3.1
1 parent da3d055 commit 5147a6a

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "restangular",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"main": "./dist/restangular.js",
55
"description": "Restful Resources service for AngularJS apps",
66
"repository": {

dist/restangular.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Restful Resources service for AngularJS apps
3-
* @version v1.3.0 - 2014-01-29 * @link https://github.com/mgonto/restangular
3+
* @version v1.3.1 - 2014-01-29 * @link https://github.com/mgonto/restangular
44
* @author Martin Gontovnikas <martin@gon.to>
55
* @license MIT License, http://www.opensource.org/licenses/MIT
66
*/(function() {
@@ -1053,11 +1053,11 @@ module.provider('Restangular', function() {
10531053
urlHandler.resource(this, $http, request.httpConfig, request.headers, request.params, what,
10541054
this[config.restangularFields.etag], operation)[method]().then(function(response) {
10551055
var resData = response.data;
1056-
if (!_.isArray(resData)) {
1057-
throw new Error("Response for getList SHOULD be an array and not an object or something else");
1058-
}
10591056
var fullParams = response.config.params;
10601057
var data = parseResponse(resData, operation, whatFetched, url, response, deferred);
1058+
if (!_.isArray(data)) {
1059+
throw new Error("Response for getList SHOULD be an array and not an object or something else");
1060+
}
10611061
var processedData = _.map(data, function(elem) {
10621062
if (!__this[config.restangularFields.restangularCollection]) {
10631063
return restangularizeElem(__this, elem, what, true, data);

0 commit comments

Comments
 (0)