##// END OF EJS Templates
Make sure `element` is correct in the context of displayed JS...
Jonathan Frederic -
Show More
@@ -541,6 +541,10 b' var IPython = (function (IPython) {'
541 var container = element;
541 var container = element;
542 container.show = function(){console.log('Warning "container.show()" is deprecated.')};
542 container.show = function(){console.log('Warning "container.show()" is deprecated.')};
543 // end backward compat
543 // end backward compat
544
545 // Fix for ipython/issues/5293, make sure `element` is the area which
546 // output can be inserted into at the time of JS execution.
547 element = toinsert;
544 try {
548 try {
545 eval(js);
549 eval(js);
546 } catch(err) {
550 } catch(err) {
General Comments 0
You need to be logged in to leave comments. Login now