remove rever dependency in sesson and loginwidget

This commit is contained in:
Matthias Bussonnier 2015-05-18 17:18:56 -07:00
parent 85fd9fff23
commit cd888ad8c3
3 changed files with 5 additions and 11 deletions

View File

@ -2,10 +2,9 @@
// Distributed under the terms of the Modified BSD License.
define([
'base/js/namespace',
'base/js/utils',
'jquery',
], function(IPython, utils, $){
], function(utils, $){
"use strict";
var LoginWidget = function (selector, options) {
@ -19,7 +18,6 @@ define([
};
LoginWidget.prototype.bind_events = function () {
var that = this;
this.element.find("button#logout").click(function () {
@ -36,8 +34,5 @@ define([
});
};
// Set module variables
IPython.LoginWidget = LoginWidget;
return {'LoginWidget': LoginWidget};
});

View File

@ -21,6 +21,8 @@ define(function(){
Jupyter.NotificationWidget = require('base/js/notificationwidget').NotificationWidget;
Jupyter.Kernel = require('services/kernels/kernel').Kernel;
Jupyter.Session = require('services/kernels/session').Session;
Jupyter.LoginWidget = require('auth/js/loginwidget').LoginWidget
Jupyter.version = "4.0.0.dev";
Jupyter._target = '_blank';

View File

@ -2,11 +2,10 @@
// Distributed under the terms of the Modified BSD License.
define([
'base/js/namespace',
'jquery',
'base/js/utils',
'services/kernels/kernel',
], function(IPython, $, utils, kernel) {
], function($, utils, kernel) {
"use strict";
/**
@ -309,11 +308,9 @@ define([
this.name = "SessionAlreadyStarting";
this.message = (message || "");
};
SessionAlreadyStarting.prototype = Error.prototype;
// For backwards compatability.
IPython.Session = Session;
return {
Session: Session,
SessionAlreadyStarting: SessionAlreadyStarting