From 8f3858749af502a91422687e685be08934127ba3 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Tue, 26 May 2015 12:03:32 -0700 Subject: [PATCH] remove dependencies to namespace in MenuBar --- notebook/static/base/js/namespace.js | 1 + notebook/static/notebook/js/menubar.js | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/notebook/static/base/js/namespace.js b/notebook/static/base/js/namespace.js index b86fa39dc..20c1f3f52 100644 --- a/notebook/static/base/js/namespace.js +++ b/notebook/static/base/js/namespace.js @@ -70,6 +70,7 @@ define(function(){ jglobal('MainToolBar','notebook/js/maintoolbar'); jglobal('NotebookNotificationArea','notebook/js/notificationarea'); jglobal('NotebookTour', 'notebook/js/tour'); + jglobal('MenuBar', 'notebook/js/menubar'); // tree jglobal('SessionList','tree/js/sessionlist'); diff --git a/notebook/static/notebook/js/menubar.js b/notebook/static/notebook/js/menubar.js index 56f1099c9..02ffcd318 100644 --- a/notebook/static/notebook/js/menubar.js +++ b/notebook/static/notebook/js/menubar.js @@ -16,7 +16,7 @@ define([ /** * Constructor * - * A MenuBar Class to generate the menubar of IPython notebook + * A MenuBar Class to generate the menubar of Jupyter notebook * * Parameters: * selector: string @@ -414,8 +414,5 @@ define([ }; - // Backwards compatability. - IPython.MenuBar = MenuBar; - return {'MenuBar': MenuBar}; });