- Timestamp:
- 03/08/14 22:51:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/model/classes/responses.js
r487 r490 43 43 handleAs: 'json', 44 44 contentType: false 45 }).then(lang.hitch(this,'_doDeserialize'),function(err){ 46 return new Deferred().reject(json.fromJson(err.responseText)); 47 }); 45 }).then(lang.hitch(this,'_doDeserialize'), 46 lang.hitch(this,'_deserializeError')); 48 47 }, 49 48 postWithSecret: function(response,secret) { … … 55 54 contentType: 'application/json', 56 55 rawBody: body 57 }).then(lang.hitch(this,'_doDeserialize'),function(err){ 58 return new Deferred().reject(json.fromJson(err.responseText)); 59 }); 56 }).then(lang.hitch(this,'_doDeserialize'), 57 lang.hitch(this,'_deserializeError')); 60 58 }, 61 59 putWithSecret: function(response,secret) { … … 67 65 contentType: 'application/json', 68 66 rawBody: body 69 }).then(lang.hitch(this,'_doDeserialize'),function(err){ 70 return new Deferred().reject(json.fromJson(err.responseText)); 71 }); 67 }).then(lang.hitch(this,'_doDeserialize'), 68 lang.hitch(this,'_deserializeError')); 72 69 }, 73 70 removeWithSecret: function(response,secret) { … … 85 82 contentType: 'application/json', 86 83 rawBody: body 87 }) ;84 }).otherwise(lang.hitch(this,'_deserializeError')); 88 85 } 89 86 });
Note: See TracChangeset
for help on using the changeset viewer.