From da706ffac714bdca85562083e829c37ba6601b9a 2014-07-18 22:26:21 From: Sylvain Corlay Date: 2014-07-18 22:26:21 Subject: [PATCH] unnecessary context variable specify --- diff --git a/IPython/html/static/widgets/js/widget_container.js b/IPython/html/static/widgets/js/widget_container.js index 211845e..e545751 100644 --- a/IPython/html/static/widgets/js/widget_container.js +++ b/IPython/html/static/widgets/js/widget_container.js @@ -38,7 +38,9 @@ define([ this.$el.append(view.$el); // Trigger the displayed event once this model is displayed. - this.once_displayed(function() { view.trigger('displayed'); }, this); + this.once_displayed(function() { + view.trigger('displayed'); + }); }, update: function(){ @@ -228,9 +230,9 @@ define([ this.$body.append(view.$el); // Trigger the displayed event once this model is displayed. - this.once_displayed(function() { - view.trigger('displayed'); - }, this); + this.once_displayed(function() { + view.trigger('displayed'); + }); }, update: function(){