Show More
@@ -0,0 +1,3 b'' | |||||
|
1 | * calling `container.show()` on javascript display is deprecated and will | |||
|
2 | trigger errors on future IPython notebook versions. `container` now show | |||
|
3 | itself as soon as non-empty |
@@ -558,9 +558,11 b' var IPython = (function (IPython) {' | |||||
558 | var toinsert = this.create_output_subarea(md, "output_javascript", type); |
|
558 | var toinsert = this.create_output_subarea(md, "output_javascript", type); | |
559 | IPython.keyboard_manager.register_events(toinsert); |
|
559 | IPython.keyboard_manager.register_events(toinsert); | |
560 | element.append(toinsert); |
|
560 | element.append(toinsert); | |
|
561 | // FIXME TODO : remove `container element for 3.0` | |||
561 | //backward compat, js should be eval'ed in a context where `container` is defined. |
|
562 | //backward compat, js should be eval'ed in a context where `container` is defined. | |
562 | var container = element; |
|
563 | var container = element; | |
563 | container.show = function(){console.log('Warning "container.show()" is deprecated.')}; |
|
564 | container.show = function(){console.log('Warning "container.show()" is deprecated.')}; | |
|
565 | // end backward compat | |||
564 | try { |
|
566 | try { | |
565 | eval(js); |
|
567 | eval(js); | |
566 | } catch(err) { |
|
568 | } catch(err) { |
General Comments 0
You need to be logged in to leave comments.
Login now