mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Made widget model state update function public
This commit is contained in:
parent
8ceb29796a
commit
3c866ea412
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user