// Copyright (c) IPython Development Team.1// Distributed under the terms of the Modified BSD License.23// Give us an object to bind all events to. This object should be created4// before all other objects so it exists when others register event handlers.5// To register an event handler:6//7// require(['base/js/events'], function (events) {8// events.on("event.Namespace", function () { do_stuff(); });9// });1011define(['base/js/namespace', 'jquery'], function(IPython, $) {12"use strict";1314var Events = function () {};1516var events = new Events();1718// Backwards compatability.19IPython.Events = Events;20IPython.events = events;2122return $([events]);23});242526