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

View File

@ -21,6 +21,8 @@ define(function(){
Jupyter.NotificationWidget = require('base/js/notificationwidget').NotificationWidget; Jupyter.NotificationWidget = require('base/js/notificationwidget').NotificationWidget;
Jupyter.Kernel = require('services/kernels/kernel').Kernel; 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.version = "4.0.0.dev";
Jupyter._target = '_blank'; Jupyter._target = '_blank';

View File

@ -2,11 +2,10 @@
// 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',
'services/kernels/kernel', 'services/kernels/kernel',
], function(IPython, $, utils, kernel) { ], function($, utils, kernel) {
"use strict"; "use strict";
/** /**
@ -309,11 +308,9 @@ define([
this.name = "SessionAlreadyStarting"; this.name = "SessionAlreadyStarting";
this.message = (message || ""); this.message = (message || "");
}; };
SessionAlreadyStarting.prototype = Error.prototype; SessionAlreadyStarting.prototype = Error.prototype;
// For backwards compatability.
IPython.Session = Session;
return { return {
Session: Session, Session: Session,
SessionAlreadyStarting: SessionAlreadyStarting SessionAlreadyStarting: SessionAlreadyStarting