From b930de1dab405bf16aed67dc2717134483534a7d 2015-03-12 20:17:50 From: Justin Tyberg Date: 2015-03-12 20:17:50 Subject: [PATCH] Fix custom.js samples to define requirejs module rather than require it. --- diff --git a/IPython/html/static/custom/custom.js b/IPython/html/static/custom/custom.js index 0b9fed0..4be58ae 100644 --- a/IPython/html/static/custom/custom.js +++ b/IPython/html/static/custom/custom.js @@ -18,7 +18,7 @@ * IPython.Cell.options_default.cm_config.extraKeys['End'] = 'goLineRight'; * * Instances are created later however and must be accessed using events: - * require([ + * define([ * 'base/js/namespace', * 'base/js/events' * ], function(IPython, events) { @@ -32,7 +32,7 @@ * Create a custom button in toolbar that execute `%qtconsole` in kernel * and hence open a qtconsole attached to the same kernel as the current notebook * - * require([ + * define([ * 'base/js/namespace', * 'base/js/events' * ], function(IPython, events) { @@ -55,7 +55,7 @@ * At the completion of the dashboard loading, load an unofficial javascript extension * that is installed in profile/static/custom/ * - * require([ + * define([ * 'base/js/events' * ], function(events) { * events.on('app_initialized.DashboardApp', function(){