Fix serialization of models from js -> kernel

Jason Grout 11 years ago
parent 2193a21fc6
commit d6def13dbd

@ -440,6 +440,14 @@ define(["widgets/js/manager",
}, this);
},
toJSON: function(options) {
/**
* Serialize the model. See the types.js deserialization function
* and the kernel-side serializer/deserializer
*/
return "IPY_MODEL_"+this.id;
}
});
widgetmanager.WidgetManager.register_widget_model('WidgetModel', WidgetModel);

Loading…
Cancel
Save