diff --git a/IPython/html/static/services/kernels/comm.js b/IPython/html/static/services/kernels/comm.js
index 2ef5d33..1a3aeba 100644
--- a/IPython/html/static/services/kernels/comm.js
+++ b/IPython/html/static/services/kernels/comm.js
@@ -78,7 +78,7 @@ define([
comm.close();
that.unregister_comm(comm);
}
- }, console.error);
+ }, $.proxy(console.error, console));
};
CommManager.prototype.comm_close = function (msg) {
diff --git a/IPython/html/static/widgets/js/manager.js b/IPython/html/static/widgets/js/manager.js
index 07dc383..64eed36 100644
--- a/IPython/html/static/widgets/js/manager.js
+++ b/IPython/html/static/widgets/js/manager.js
@@ -66,7 +66,7 @@ define([
dummy.replaceWith(view.$el);
}
view.trigger('displayed');
- }, console.error);
+ }, $.proxy(console.error, console));
}
};
@@ -208,7 +208,7 @@ define([
// model_name: 'WidgetModel',
// widget_class: 'IPython.html.widgets.widget_int.IntSlider'})
// .then(function(model) { console.log('Create success!', model); },
- // console.error);
+ // $.proxy(console.error, console));
//
// Parameters
// ----------
diff --git a/IPython/html/static/widgets/js/widget.js b/IPython/html/static/widgets/js/widget.js
index 6e99190..dbc98d3 100644
--- a/IPython/html/static/widgets/js/widget.js
+++ b/IPython/html/static/widgets/js/widget.js
@@ -107,7 +107,7 @@ define(["widgets/js/manager",
unpacked_state[state_keys[i]] = promise_values[i];
}
WidgetModel.__super__.set.apply(this, [unpacked_state]);
- }, console.error);
+ }, $.proxy(console.error, console));
} finally {
this.state_lock = null;
}
diff --git a/IPython/html/static/widgets/js/widget_box.js b/IPython/html/static/widgets/js/widget_box.js
index 323c5d8..ae0a1f2 100644
--- a/IPython/html/static/widgets/js/widget_box.js
+++ b/IPython/html/static/widgets/js/widget_box.js
@@ -84,7 +84,7 @@ define([
that.after_displayed(function() {
view.trigger('displayed');
});
- }, console.error);
+ }, $.proxy(console.error, console));
},
});
diff --git a/IPython/html/static/widgets/js/widget_selectioncontainer.js b/IPython/html/static/widgets/js/widget_selectioncontainer.js
index 90603c2..5e26d0f 100644
--- a/IPython/html/static/widgets/js/widget_selectioncontainer.js
+++ b/IPython/html/static/widgets/js/widget_selectioncontainer.js
@@ -125,7 +125,7 @@ define([
that.after_displayed(function() {
view.trigger('displayed');
});
- }, console.error);
+ }, $.proxy(console.error, console));
},
});
@@ -219,7 +219,7 @@ define([
that.after_displayed(function() {
view.trigger('displayed');
});
- }, console.error);
+ }, $.proxy(console.error, console));
},
update: function(options) {