jupyter-js-widgets
Advanced tools
Comparing version 0.0.23 to 0.0.24
{ | ||
"name": "jupyter-js-widgets", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "Jupyter widget Javascript", | ||
@@ -5,0 +5,0 @@ "author": "Project Jupyter", |
@@ -356,3 +356,2 @@ // Copyright (c) Jupyter Development Team. | ||
var model_promises = []; | ||
for (var model_id in models) { | ||
@@ -367,26 +366,23 @@ if (models.hasOwnProperty(model_id)) { | ||
if (displayed_flag && live_flag) { | ||
state[model_id] = { | ||
state[model_id] = utils.resolvePromisesDict({ | ||
model_name: model.name, | ||
model_module: model.module, | ||
state: model.constructor._serialize_state(model.get_state(options.drop_defaults), that), | ||
views: [], | ||
}; | ||
// Get the views that are displayed *now*. | ||
(function(local_state) { | ||
model_promises.push(utils.resolvePromisesDict(model.views).then(function(model_views) { | ||
for (var id in model_views) { | ||
if (model_views.hasOwnProperty(id)) { | ||
var view = model_views[id]; | ||
views: utils.resolvePromisesDict(model.views).then(function (views) { | ||
var v = []; | ||
for (var id in views) { | ||
if (views.hasOwnProperty(id)) { | ||
var view = views[id]; | ||
if (view.options !== undefined && view.options.root) { | ||
local_state.views.push(view.options); | ||
v.push(view.options); | ||
} | ||
} | ||
} | ||
})); | ||
})(state[model_id]); | ||
return v; | ||
}) | ||
}); | ||
} | ||
} | ||
} | ||
return Promise.all(model_promises).then(function() { return state; }); | ||
return utils.resolvePromisesDict(state); | ||
}).catch(utils.reject('Could not get state of widget manager', true)); | ||
@@ -393,0 +389,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3693408
37061