Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for KuCalc : devops.
Download
50650 views
1
// Copyright (c) IPython Development Team.
2
// Distributed under the terms of the Modified BSD License.
3
4
// Give us an object to bind all events to. This object should be created
5
// before all other objects so it exists when others register event handlers.
6
// To register an event handler:
7
//
8
// require(['base/js/events'], function (events) {
9
// events.on("event.Namespace", function () { do_stuff(); });
10
// });
11
12
define(['base/js/namespace', 'jquery'], function(IPython, $) {
13
"use strict";
14
15
var Events = function () {};
16
17
var events = new Events();
18
19
// Backwards compatability.
20
IPython.Events = Events;
21
IPython.events = events;
22
23
return $([events]);
24
});
25
26