Commit e25df5b3 authored by Romain Casati's avatar Romain Casati
Browse files

Better module strategy for mplBus.

parent 98865afe
Pipeline #358022 passed with stages
in 3 minutes and 47 seconds
......@@ -8,10 +8,8 @@ define([], function() {
* Matplotlib variable exchanger (Bus) to bypass stringifying
* messages between frontend and kernel that prevents DOMNode sharing.
*/
var mplBus = {};
(function() {
var that = mplBus;
window.mplBus = that;
var mplBus = window.mplBus = (function() {
var that = {};
/**
* The actual bus is a dict.
......@@ -40,6 +38,8 @@ define([], function() {
delete that._bus[id];
return res;
};
return that;
})();
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment