From ac4cd7526863c0aea397f4d54ac545da71f26645 2014-07-23 18:05:36 From: MinRK Date: 2014-07-23 18:05:36 Subject: [PATCH] preserve backward-compatible $([IPython.events]) --- diff --git a/IPython/html/static/base/js/events.js b/IPython/html/static/base/js/events.js index 13c1898..4cecfdf 100644 --- a/IPython/html/static/base/js/events.js +++ b/IPython/html/static/base/js/events.js @@ -13,7 +13,7 @@ define(['base/js/namespace', 'jquery'], function(IPython, $) { var Events = function () {}; - var events = $([new Events()]); + var events = new Events(); // Backwards compatability. IPython.Events = Events; diff --git a/IPython/html/static/notebook/js/main.js b/IPython/html/static/notebook/js/main.js index 065117f..4659b30 100644 --- a/IPython/html/static/notebook/js/main.js +++ b/IPython/html/static/notebook/js/main.js @@ -125,7 +125,6 @@ require([ IPython.menubar = menubar; IPython.toolbar = toolbar; IPython.notification_area = notification_area; - IPython.events = events; IPython.keyboard_manager = keyboard_manager; IPython.save_widget = save_widget; IPython.config = user_config; diff --git a/IPython/html/static/tree/js/main.js b/IPython/html/static/tree/js/main.js index a3e0b36..d71c328 100644 --- a/IPython/html/static/tree/js/main.js +++ b/IPython/html/static/tree/js/main.js @@ -99,7 +99,6 @@ require([ IPython.session_list = session_list; IPython.kernel_list = kernel_list; IPython.login_widget = login_widget; - IPython.events = events; events.trigger('app_initialized.DashboardApp');