diff --git a/IPython/html/static/widgets/js/widget.js b/IPython/html/static/widgets/js/widget.js index 8dcda6d..730c319 100644 --- a/IPython/html/static/widgets/js/widget.js +++ b/IPython/html/static/widgets/js/widget.js @@ -264,6 +264,14 @@ define(["widgets/js/manager", } }, + on_bulk_change: function(keys, callback, context) { + this.on('change', function() { + if (keys.some(this.hasChanged, this)) { + callback.apply(context); + } + }, this); + + }, }); widgetmanager.WidgetManager.register_widget_model('WidgetModel', WidgetModel);