From 5ffcb42d2905b2f0993bfe62e11cf54f7cfcc118 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Mon, 18 May 2015 16:50:10 -0700 Subject: [PATCH] remove reverse dependency for Keyboard --- notebook/static/base/js/keyboard.js | 6 +----- notebook/static/base/js/namespace.js | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/notebook/static/base/js/keyboard.js b/notebook/static/base/js/keyboard.js index 5eda10a06..f2e41f0e1 100644 --- a/notebook/static/base/js/keyboard.js +++ b/notebook/static/base/js/keyboard.js @@ -9,11 +9,10 @@ */ define([ - 'base/js/namespace', 'jquery', 'base/js/utils', 'underscore', -], function(IPython, $, utils, _) { +], function($, utils, _) { "use strict"; @@ -447,8 +446,5 @@ define([ event_to_shortcut : event_to_shortcut, }; - // For backwards compatibility. - IPython.keyboard = keyboard; - return keyboard; }); diff --git a/notebook/static/base/js/namespace.js b/notebook/static/base/js/namespace.js index f3e72692e..bf48907b6 100644 --- a/notebook/static/base/js/namespace.js +++ b/notebook/static/base/js/namespace.js @@ -5,6 +5,7 @@ var IPython = IPython || {}; define(function(){ var utils = require('base/js/utils'); IPython.security = require('base/js/security'); + IPython.keyboard = require('base/js/keyboard'); IPython.utils = utils; IPython.load_extensions = utils.load_extensions;