##// END OF EJS Templates
Explicitly return null if there aren't any results
Jonathan Frederic -
Show More
@@ -77,7 +77,7 b''
77 " message was from. Widget will not be displayed");
77 " message was from. Widget will not be displayed");
78 } else {
78 } else {
79 var view = this.create_view(model, {cell: cell});
79 var view = this.create_view(model, {cell: cell});
80 if (view === undefined) {
80 if (view === null) {
81 console.error("View creation failed", model);
81 console.error("View creation failed", model);
82 }
82 }
83 if (cell.widget_subarea !== undefined
83 if (cell.widget_subarea !== undefined
@@ -101,6 +101,7 b''
101 model.on('destroy', view.remove, view);
101 model.on('destroy', view.remove, view);
102 return view;
102 return view;
103 }
103 }
104 return null;
104 },
105 },
105
106
106 WidgetManager.prototype.get_msg_cell = function (msg_id) {
107 WidgetManager.prototype.get_msg_cell = function (msg_id) {
General Comments 0
You need to be logged in to leave comments. Login now