remove dependencies to namespace in SessionList

This commit is contained in:
Matthias Bussonnier 2015-05-19 11:01:34 -07:00
parent 4c08e4caf4
commit 44de1ac270
2 changed files with 6 additions and 5 deletions

View File

@ -56,6 +56,8 @@ define(function(){
jglobal('MarkdownCell','base/js/textcell'); jglobal('MarkdownCell','base/js/textcell');
jglobal('RawCell','base/js/textcell'); jglobal('RawCell','base/js/textcell');
jglobal('Cell','base/js/cell'); jglobal('Cell','base/js/cell');
// notebook
jglobal('OutputArea','notebook/js/outputarea'); jglobal('OutputArea','notebook/js/outputarea');
jglobal('KeyboardManager','notebook/js/keyboardmanager'); jglobal('KeyboardManager','notebook/js/keyboardmanager');
jglobal('Completer','notebook/js/completer'); jglobal('Completer','notebook/js/completer');
@ -66,6 +68,9 @@ define(function(){
jglobal('Pager','notebook/js/pager'); jglobal('Pager','notebook/js/pager');
jglobal('QuickHelp','notebook/js/quickhelp'); jglobal('QuickHelp','notebook/js/quickhelp');
// tree
jglobal('SessionList','tree/js/sessionlist');
Jupyter.version = "4.0.0.dev"; Jupyter.version = "4.0.0.dev";
Jupyter._target = '_blank'; Jupyter._target = '_blank';
return Jupyter; return Jupyter;

View File

@ -2,10 +2,9 @@
// Distributed under the terms of the Modified BSD License. // Distributed under the terms of the Modified BSD License.
define([ define([
'base/js/namespace',
'jquery', 'jquery',
'base/js/utils', 'base/js/utils',
], function(IPython, $, utils) { ], function($, utils) {
"use strict"; "use strict";
var SesssionList = function (options) { var SesssionList = function (options) {
@ -78,8 +77,5 @@ define([
this.events.trigger('sessions_loaded.Dashboard', this.sessions); this.events.trigger('sessions_loaded.Dashboard', this.sessions);
}; };
// Backwards compatability.
IPython.SesssionList = SesssionList;
return {'SesssionList': SesssionList}; return {'SesssionList': SesssionList};
}); });