Made widget model state update function public

This commit is contained in:
Jonathan Frederic 2013-12-18 14:45:59 -08:00 committed by Jonathan Frederic
parent 8ceb29796a
commit 3c866ea412

View File

@ -148,7 +148,7 @@ function(widget_manager, underscore, backbone){
} }
break; break;
case 'update': case 'update':
this._handle_update(msg.content.data.state); this.apply_update(msg.content.data.state);
break; break;
case 'add_class': case 'add_class':
case 'remove_class': case 'remove_class':
@ -172,7 +172,7 @@ function(widget_manager, underscore, backbone){
// Handle when a widget is updated via the python side. // Handle when a widget is updated via the python side.
_handle_update: function (state) { apply_update: function (state) {
this.updating = true; this.updating = true;
try { try {
for (var key in state) { for (var key in state) {