##// END OF EJS Templates
don’t load custom.js in page template...
don’t load custom.js in page template we are loading it in require, and don’t want to load it twice

File last commit:

r17320:ac4cd752
r17321:fc18b9b4
Show More
events.js
23 lines | 690 B | application/javascript | JavascriptLexer
// Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
// Give us an object to bind all events to. This object should be created
// before all other objects so it exists when others register event handlers.
// To trigger an event handler:
// require(['base/js/events'], function (events) {
// events.on("event.Namespace", function () {do_stuff(); });
// })
define(['base/js/namespace', 'jquery'], function(IPython, $) {
"use strict";
var Events = function () {};
var events = new Events();
// Backwards compatability.
IPython.Events = Events;
IPython.events = events;
return $([events]);
});