-
Notifications
You must be signed in to change notification settings - Fork 839
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* Restful Resources service for AngularJS apps | ||
* @version v1.3.0 - 2014-01-29 * @link https://github.com/mgonto/restangular | ||
* @version v1.3.1 - 2014-01-29 * @link https://github.com/mgonto/restangular | ||
* @author Martin Gontovnikas <[email protected]> | ||
* @license MIT License, http://www.opensource.org/licenses/MIT | ||
*/(function() { | ||
|
@@ -1053,11 +1053,11 @@ module.provider('Restangular', function() { | |
urlHandler.resource(this, $http, request.httpConfig, request.headers, request.params, what, | ||
this[config.restangularFields.etag], operation)[method]().then(function(response) { | ||
var resData = response.data; | ||
if (!_.isArray(resData)) { | ||
throw new Error("Response for getList SHOULD be an array and not an object or something else"); | ||
} | ||
var fullParams = response.config.params; | ||
var data = parseResponse(resData, operation, whatFetched, url, response, deferred); | ||
if (!_.isArray(data)) { | ||
throw new Error("Response for getList SHOULD be an array and not an object or something else"); | ||
} | ||
var processedData = _.map(data, function(elem) { | ||
if (!__this[config.restangularFields.restangularCollection]) { | ||
return restangularizeElem(__this, elem, what, true, data); | ||
|
Oops, something went wrong.