From 0e5ee5bc341af77745f8e4148ff34f15ca4eaf23 Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 12 Jan 2015 13:53:48 -0800 Subject: [PATCH] move promise sync to kernelselector, from notebook --- IPython/html/static/notebook/js/notebook.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 0cbb8c81f..d0e591a71 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -2082,11 +2082,7 @@ define([ this.notebook_name = utils.url_path_split(this.notebook_path)[1]; this.events.trigger('notebook_loading.Notebook'); this.contents.get(notebook_path, {type: 'notebook'}).then( - function (data) { - that.kernel_selector.loaded.then( - that.load_notebook_success(data) - ); - }, + $.proxy(this.load_notebook_success, this), $.proxy(this.load_notebook_error, this) ); };