##// END OF EJS Templates
add missing `that = this`
Min RK -
Show More
@@ -597,12 +597,13 b' define(['
597 /**
597 /**
598 * Remove the deleted notebook.
598 * Remove the deleted notebook.
599 */
599 */
600 var that = this;
600 $( ":data(path)" ).each(function() {
601 $( ":data(path)" ).each(function() {
601 var element = $(this);
602 var element = $(this);
602 if (element.data("path") == path) {
603 if (element.data("path") === path) {
603 element.remove();
604 element.remove();
604 events.trigger('notebook_deleted.NotebookList');
605 events.trigger('notebook_deleted.NotebookList');
605 this._selection_changed();
606 that._selection_changed();
606 }
607 }
607 });
608 });
608 };
609 };
General Comments 0
You need to be logged in to leave comments. Login now