##// END OF EJS Templates
Add constructor comment for widget model.
Jonathan Frederic -
Show More
@@ -24,6 +24,16 function(widget_manager, underscore, backbone){
24 //--------------------------------------------------------------------
24 //--------------------------------------------------------------------
25 var WidgetModel = Backbone.Model.extend({
25 var WidgetModel = Backbone.Model.extend({
26 constructor: function (widget_manager, model_id, comm) {
26 constructor: function (widget_manager, model_id, comm) {
27 // Construcctor
28 //
29 // Creates a WidgetModel instance.
30 //
31 // Parameters
32 // ----------
33 // widget_manager : WidgetManager instance
34 // model_id : string
35 // An ID unique to this model.
36 // comm : Comm instance (optional)
27 this.widget_manager = widget_manager;
37 this.widget_manager = widget_manager;
28 this.pending_msgs = 0;
38 this.pending_msgs = 0;
29 this.msg_throttle = 3;
39 this.msg_throttle = 3;
General Comments 0
You need to be logged in to leave comments. Login now