##// END OF EJS Templates
add Mode menu to editor
add Mode menu to editor

File last commit:

r17322:27b6119f
r19319:c847b345
Show More
events.js
24 lines | 696 B | application/javascript | JavascriptLexer
Jonathan Frederic
Started work to make tree requirejs friendly.
r17189 // Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
Brian Granger
Major refactoring of saving, notification....
r6047
// 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.
MinRK
fix docstring in events.js...
r17322 // To register an event handler:
//
MinRK
return global events from require(['base/js/events'])....
r17317 // require(['base/js/events'], function (events) {
MinRK
fix docstring in events.js...
r17322 // events.on("event.Namespace", function () { do_stuff(); });
// });
MinRK
return global events from require(['base/js/events'])....
r17317
define(['base/js/namespace', 'jquery'], function(IPython, $) {
Matthias BUSSONNIER
"use strict" in most (if not all) our javascript...
r12103 "use strict";
Brian Granger
Major refactoring of saving, notification....
r6047
var Events = function () {};
Jonathan Frederic
Use ipython namepsace for instances.
r17193
MinRK
preserve backward-compatible $([IPython.events])
r17320 var events = new Events();
MinRK
return global events from require(['base/js/events'])....
r17317
Jonathan Frederic
Started work to make tree requirejs friendly.
r17189 // Backwards compatability.
Brian Granger
Major refactoring of saving, notification....
r6047 IPython.Events = Events;
MinRK
return global events from require(['base/js/events'])....
r17317 IPython.events = events;
Jonathan Frederic
Fixed events
r17195
MinRK
return global events from require(['base/js/events'])....
r17317 return $([events]);
Jonathan Frederic
Started work to make tree requirejs friendly.
r17189 });