Skip to content

Commit

Permalink
Merge pull request #86 from SylvainCorlay/fix_master
Browse files Browse the repository at this point in the history
Deserialize initial state
  • Loading branch information
minrk committed Jul 13, 2015
2 parents babba0c + c7dab12 commit 466b6ec
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 466b6ec

Please sign in to comment.