From 0986a2644974d5dc9f5a83a72f67bcaceb227cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Domaga=C5=82a?= Date: Thu, 27 Aug 2015 10:59:09 +0200 Subject: [PATCH 1/2] Fetch issue fixed --- backbone.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backbone.js b/backbone.js index 9ade990f3..08538908e 100644 --- a/backbone.js +++ b/backbone.js @@ -595,7 +595,9 @@ model.trigger('sync', model, resp, options); }; wrapError(this, options); - return this.sync('read', this, options); + return this.sync('read', this, options).then(function(response) { + return model.parse(response); + }); }, // Set a hash of model attributes, and sync the model to the server. From 1572151e0081d647c0f4b4c8dd315093a5c85086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Domaga=C5=82a?= Date: Thu, 27 Aug 2015 11:01:44 +0200 Subject: [PATCH 2/2] Fetch issue fixed --- backbone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backbone.js b/backbone.js index 08538908e..d80daabb2 100644 --- a/backbone.js +++ b/backbone.js @@ -595,8 +595,8 @@ model.trigger('sync', model, resp, options); }; wrapError(this, options); - return this.sync('read', this, options).then(function(response) { - return model.parse(response); + return this.sync('read', this, options).then(function(resp) { + return options.parse ? model.parse(resp, options) : resp; }); },