1
//----------------------------------------------------------------------------
2
// Copyright (C) 2008-2011 The IPython Development Team
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
//----------------------------------------------------------------------------
8
//============================================================================
10
//============================================================================
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);
17
// $([IPython.events]).on('event.Namespace',function () {});
19
var IPython = (function (IPython) {
21
var utils = IPython.utils;
23
var Events = function () {};
25
IPython.Events = Events;
26
IPython.events = new Events();