##// END OF EJS Templates
Fixed some typos related to _.each loops
Jonathan Frederic -
Show More
@@ -37,8 +37,9
37 37 this._models = {}; /* Dictionary of model ids and model instances */
38 38
39 39 // Register already-registered widget model types with the comm manager.
40 var that = this;
40 41 _.each(WidgetManager._model_types, function(value, key) {
41 this.comm_manager.register_target(value, $.proxy(this._handle_comm_open, this));
42 that.comm_manager.register_target(value, $.proxy(that._handle_comm_open, that));
42 43 });
43 44 };
44 45
@@ -172,7 +172,7 define(["notebook/js/widgets/widget"], function(WidgetManager){
172 172 _.each(items, function(item, index) {
173 173 if (item == value) {
174 174 found = true;
175 break;
175 return false;
176 176 }
177 177 });
178 178
@@ -257,7 +257,7 define(["notebook/js/widgets/widget"], function(WidgetManager){
257 257 _.each(items, function(item, index) {
258 258 if (item == value) {
259 259 found = true;
260 break;
260 return false;
261 261 }
262 262 });
263 263
@@ -339,7 +339,7 define(["notebook/js/widgets/widget"], function(WidgetManager){
339 339 _.each(items, function(item, index) {
340 340 if (item == value) {
341 341 found = true;
342 break;
342 return false;
343 343 }
344 344 });
345 345
General Comments 0
You need to be logged in to leave comments. Login now