Make widget views work with new keyboard manager.

This commit is contained in:
Jonathan Frederic 2014-01-16 10:45:21 +00:00
parent f86fe40c97
commit 2aeac3a424

View File

@ -98,6 +98,7 @@
var parameters = {model: model, options: options};
var view = new ViewType(parameters);
view.render();
IPython.keyboard_manager.register_events(view.$el);
model.views.push(view);
model.on('destroy', view.remove, view);
return view;