Skip to content

Commit

Permalink
Deserialize initial state
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainCorlay committed Jul 13, 2015
1 parent 59eec2f commit c7dab12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ipywidgets/static/widgets/js/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,10 @@ define([
model_module: msg.content.data._model_module,
comm: comm,
}).then(function(model) {
model.set_state(msg.content.data);
return model;
return model._deserialize_state(msg.content.data).then(function(state) {
model.set_state(state);
return model;
});
});
}

Expand Down

0 comments on commit c7dab12

Please sign in to comment.