diff --git a/IPython/html/static/notebook/js/widgets/widget.js b/IPython/html/static/notebook/js/widgets/widget.js index ee84727..c7e15ac 100644 --- a/IPython/html/static/notebook/js/widgets/widget.js +++ b/IPython/html/static/notebook/js/widgets/widget.js @@ -24,6 +24,16 @@ function(widget_manager, underscore, backbone){ //-------------------------------------------------------------------- var WidgetModel = Backbone.Model.extend({ constructor: function (widget_manager, model_id, comm) { + // Construcctor + // + // Creates a WidgetModel instance. + // + // Parameters + // ---------- + // widget_manager : WidgetManager instance + // model_id : string + // An ID unique to this model. + // comm : Comm instance (optional) this.widget_manager = widget_manager; this.pending_msgs = 0; this.msg_throttle = 3;