From 8c486f096369455fb8c270c20692d66d4b78d327 Mon Sep 17 00:00:00 2001 From: Justin Tyberg Date: Thu, 12 Mar 2015 16:17:50 -0400 Subject: [PATCH] Fix custom.js samples to define requirejs module rather than require it. --- IPython/html/static/custom/custom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IPython/html/static/custom/custom.js b/IPython/html/static/custom/custom.js index 0b9fed081..4be58ae02 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(){