Skip to content

Commit

Permalink
v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonto committed Jan 29, 2014
1 parent da3d055 commit 5147a6a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "restangular",
"version": "1.3.0",
"version": "1.3.1",
"main": "./dist/restangular.js",
"description": "Restful Resources service for AngularJS apps",
"repository": {
Expand Down
8 changes: 4 additions & 4 deletions dist/restangular.js
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() {
Expand Down Expand Up @@ -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);
Expand Down
Loading

0 comments on commit 5147a6a

Please sign in to comment.