##// END OF EJS Templates
move promise sync to kernelselector, from notebook
Min RK -
Show More
@@ -2082,11 +2082,7 b' define(['
2082 this.notebook_name = utils.url_path_split(this.notebook_path)[1];
2082 this.notebook_name = utils.url_path_split(this.notebook_path)[1];
2083 this.events.trigger('notebook_loading.Notebook');
2083 this.events.trigger('notebook_loading.Notebook');
2084 this.contents.get(notebook_path, {type: 'notebook'}).then(
2084 this.contents.get(notebook_path, {type: 'notebook'}).then(
2085 function (data) {
2085 $.proxy(this.load_notebook_success, this),
2086 that.kernel_selector.loaded.then(
2087 that.load_notebook_success(data)
2088 );
2089 },
2090 $.proxy(this.load_notebook_error, this)
2086 $.proxy(this.load_notebook_error, this)
2091 );
2087 );
2092 };
2088 };
General Comments 0
You need to be logged in to leave comments. Login now