From 3c866ea41248a4b0950413abf095ee9bc7b53115 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Wed, 18 Dec 2013 14:45:59 -0800 Subject: [PATCH] Made widget model state update function public --- IPython/html/static/notebook/js/widgets/base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IPython/html/static/notebook/js/widgets/base.js b/IPython/html/static/notebook/js/widgets/base.js index c2c9bf275..16c11149d 100644 --- a/IPython/html/static/notebook/js/widgets/base.js +++ b/IPython/html/static/notebook/js/widgets/base.js @@ -148,7 +148,7 @@ function(widget_manager, underscore, backbone){ } break; case 'update': - this._handle_update(msg.content.data.state); + this.apply_update(msg.content.data.state); break; case 'add_class': case 'remove_class': @@ -172,7 +172,7 @@ function(widget_manager, underscore, backbone){ // Handle when a widget is updated via the python side. - _handle_update: function (state) { + apply_update: function (state) { this.updating = true; try { for (var key in state) {