Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for KuCalc : devops.
Download
50659 views
1
//----------------------------------------------------------------------------
2
// Copyright (C) 2008-2011 The IPython Development Team
3
//
4
// Distributed under the terms of the BSD License. The full license is in
5
// the file COPYING, distributed as part of this software.
6
//----------------------------------------------------------------------------
7
8
//============================================================================
9
// Events
10
//============================================================================
11
12
// Give us an object to bind all events to. This object should be created
13
// before all other objects so it exists when others register event handlers.
14
// To trigger an event handler:
15
// $([IPython.events]).trigger('event.Namespace');
16
// To handle it:
17
// $([IPython.events]).on('event.Namespace',function () {});
18
19
var IPython = (function (IPython) {
20
"use strict";
21
22
var utils = IPython.utils;
23
24
var Events = function () {};
25
26
IPython.Events = Events;
27
IPython.events = new Events();
28
29
return IPython;
30
31
}(IPython));
32
33
34