##// END OF EJS Templates
rename ipevents to events for consistency
Matthias BUSSONNIER -
Show More
@@ -5,7 +5,7 b' define(['
5 'base/js/namespace',
5 'base/js/namespace',
6 'jquery',
6 'jquery',
7 'base/js/events'
7 'base/js/events'
8 ], function(IPython, $, ipevents) {
8 ], function(IPython, $, events) {
9 "use strict";
9 "use strict";
10
10
11 var CellToolbar = function (options) {
11 var CellToolbar = function (options) {
@@ -177,7 +177,7 b' define(['
177 */
177 */
178 CellToolbar.register_preset = function(name, preset_list, notebook) {
178 CellToolbar.register_preset = function(name, preset_list, notebook) {
179 CellToolbar._presets[name] = preset_list;
179 CellToolbar._presets[name] = preset_list;
180 ipevents.trigger('preset_added.CellToolbar', {name: name});
180 events.trigger('preset_added.CellToolbar', {name: name});
181 // When "register_callback" is called by a custom extension, it may be executed after notebook is loaded.
181 // When "register_callback" is called by a custom extension, it may be executed after notebook is loaded.
182 // In that case, activate the preset if needed.
182 // In that case, activate the preset if needed.
183 if (notebook && notebook.metadata && notebook.metadata.celltoolbar === name){
183 if (notebook && notebook.metadata && notebook.metadata.celltoolbar === name){
@@ -223,7 +223,7 b' define(['
223 CellToolbar.rebuild_all();
223 CellToolbar.rebuild_all();
224 }
224 }
225
225
226 ipevents.trigger('preset_activated.CellToolbar', {name: preset_name});
226 events.trigger('preset_activated.CellToolbar', {name: preset_name});
227 };
227 };
228
228
229
229
General Comments 0
You need to be logged in to leave comments. Login now