##// END OF EJS Templates
Simplify error handling for errors in sending sync messages from js
Jason Grout -
Show More
@@ -396,11 +396,10 b' define(["widgets/js/manager",'
396 396 }
397 397 }
398 398 that.comm.send({method: 'backbone', sync_data: state, buffer_keys: buffer_keys}, callbacks, {}, buffers);
399 }).catch(utils.reject("Couldn't send widget sync message", true))
400 .catch(function(error) {
401 that.pending_msgs--;
402 return error;
403 });
399 }).catch(function(error) {
400 that.pending_msgs--;
401 return (utils.reject("Couldn't send widget sync message", true))(error);
402 });
404 403 },
405 404
406 405 serialize: function(model, attrs) {
General Comments 0
You need to be logged in to leave comments. Login now