You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ORPA-pyOpenRPA/Resources/WPy64-3720/python-3.7.2.amd64/Lib/site-packages/notebook/static/base/js/promises.js

27 lines
816 B

// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
// Define an object to attach promises to for one-time events.
define(['base/js/events', 'base/js/namespace'], function(events, Jupyter) {
"use strict";
// Promise to be resolved when the application is initialized.
// The value is the name of the app on the current page.
var app_initialized = new Promise(function(resolve, reject) {
events.on('app_initialized.NotebookApp', function() {
resolve('NotebookApp');
});
events.on('app_initialized.DashboardApp', function() {
resolve('DashboardApp');
});
});
var promises = {
app_initialized: app_initialized
};
Jupyter.promises = promises;
return promises;
});