From 27b6119fcc5097f3ec0cc90eb4ffce57a456953f 2014-07-23 18:05:36 From: MinRK Date: 2014-07-23 18:05:36 Subject: [PATCH] fix docstring in events.js example shows registering a handler, not triggering an event. --- diff --git a/IPython/html/static/base/js/events.js b/IPython/html/static/base/js/events.js index 4cecfdf..48d3183 100644 --- a/IPython/html/static/base/js/events.js +++ b/IPython/html/static/base/js/events.js @@ -3,10 +3,11 @@ // 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: +// To register an event handler: +// // require(['base/js/events'], function (events) { -// events.on("event.Namespace", function () {do_stuff(); }); -// }) +// events.on("event.Namespace", function () { do_stuff(); }); +// }); define(['base/js/namespace', 'jquery'], function(IPython, $) { "use strict";