mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
remove rever dependency in sesson and loginwidget
This commit is contained in:
parent
85fd9fff23
commit
cd888ad8c3
@ -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};
|
||||
});
|
||||
|
@ -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';
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user