From f3e50f0fd55f65a93997a1fd4820b771f8a6447d Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Tue, 19 May 2015 10:47:29 -0700 Subject: [PATCH] remove dependencies to namespace in Completer --- notebook/static/base/js/namespace.js | 1 + notebook/static/notebook/js/completer.js | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/notebook/static/base/js/namespace.js b/notebook/static/base/js/namespace.js index de828f1c9..43479f2ab 100644 --- a/notebook/static/base/js/namespace.js +++ b/notebook/static/base/js/namespace.js @@ -58,6 +58,7 @@ define(function(){ jglobal('Cell','base/js/cell'); jglobal('OutputArea','notebook/js/outputarea'); jglobal('KeyboardManager','notebook/js/keyboardmanager'); + jglobal('Completer','notebook/js/completer'); Jupyter.version = "4.0.0.dev"; Jupyter._target = '_blank'; diff --git a/notebook/static/notebook/js/completer.js b/notebook/static/notebook/js/completer.js index 81a5776f3..47d5bef7b 100644 --- a/notebook/static/notebook/js/completer.js +++ b/notebook/static/notebook/js/completer.js @@ -2,13 +2,12 @@ // Distributed under the terms of the Modified BSD License. define([ - 'base/js/namespace', 'jquery', 'base/js/utils', 'base/js/keyboard', 'notebook/js/contexthint', 'codemirror/lib/codemirror', -], function(IPython, $, utils, keyboard, CodeMirror) { +], function($, utils, keyboard, CodeMirror) { "use strict"; // easier key mapping @@ -409,8 +408,5 @@ define([ }, 50); }; - // For backwards compatability. - IPython.Completer = Completer; - return {'Completer': Completer}; });