From 18ff9c5e1c18a9b589c6e1a43c138054a07ee332 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Tue, 24 Mar 2015 23:06:02 +0000 Subject: [PATCH] Fix two calls to utils.reject (misplaced parens) --- IPython/html/static/widgets/js/widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IPython/html/static/widgets/js/widget.js b/IPython/html/static/widgets/js/widget.js index d6ae99daf..fdd99e495 100644 --- a/IPython/html/static/widgets/js/widget.js +++ b/IPython/html/static/widgets/js/widget.js @@ -396,7 +396,7 @@ define(["widgets/js/manager", } } 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) { that.pending_msgs--; return error; @@ -480,7 +480,7 @@ define(["widgets/js/manager", */ var that = this; 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(){