Merge pull request #8036 from jtyberg/8035_custom_js

Fix custom.js samples to define requirejs module rather than require it.
This commit is contained in:
Matthias Bussonnier 2015-03-12 14:24:47 -07:00
commit abbec7bddb

View File

@ -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(){