mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
Fix two calls to utils.reject (misplaced parens)
This commit is contained in:
parent
c70f687c0e
commit
18ff9c5e1c
@ -396,7 +396,7 @@ define(["widgets/js/manager",
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
that.comm.send({method: 'backbone', sync_data: state, buffer_keys: buffer_keys}, callbacks, {}, buffers);
|
that.comm.send({method: 'backbone', sync_data: state, buffer_keys: buffer_keys}, callbacks, {}, buffers);
|
||||||
}).catch(utils.reject("Couldn't send widget sync message"), true)
|
}).catch(utils.reject("Couldn't send widget sync message", true))
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
that.pending_msgs--;
|
that.pending_msgs--;
|
||||||
return error;
|
return error;
|
||||||
@ -480,7 +480,7 @@ define(["widgets/js/manager",
|
|||||||
*/
|
*/
|
||||||
var that = this;
|
var that = this;
|
||||||
options = $.extend({ parent: this }, options || {});
|
options = $.extend({ parent: this }, options || {});
|
||||||
return this.model.widget_manager.create_view(child_model, options).catch(utils.reject("Couldn't create child view"), true);
|
return this.model.widget_manager.create_view(child_model, options).catch(utils.reject("Couldn't create child view", true));
|
||||||
},
|
},
|
||||||
|
|
||||||
callbacks: function(){
|
callbacks: function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user