##// END OF EJS Templates
Fix custom.js samples to define requirejs module rather than require it.
Justin Tyberg -
Show More
@@ -18,7 +18,7 b''
18 18 * IPython.Cell.options_default.cm_config.extraKeys['End'] = 'goLineRight';
19 19 *
20 20 * Instances are created later however and must be accessed using events:
21 * require([
21 * define([
22 22 * 'base/js/namespace',
23 23 * 'base/js/events'
24 24 * ], function(IPython, events) {
@@ -32,7 +32,7 b''
32 32 * Create a custom button in toolbar that execute `%qtconsole` in kernel
33 33 * and hence open a qtconsole attached to the same kernel as the current notebook
34 34 *
35 * require([
35 * define([
36 36 * 'base/js/namespace',
37 37 * 'base/js/events'
38 38 * ], function(IPython, events) {
@@ -55,7 +55,7 b''
55 55 * At the completion of the dashboard loading, load an unofficial javascript extension
56 56 * that is installed in profile/static/custom/
57 57 *
58 * require([
58 * define([
59 59 * 'base/js/events'
60 60 * ], function(events) {
61 61 * events.on('app_initialized.DashboardApp', function(){
General Comments 0
You need to be logged in to leave comments. Login now