File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
notebook/static/notebook/js Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -962,11 +962,15 @@ define([
962
962
"application/pdf" : append_pdf
963
963
} ;
964
964
965
- OutputArea . prototype . register_mime_type = function ( mimetype , append , safe ) {
965
+ OutputArea . prototype . mime_types = function ( ) {
966
+ return OutputArea . display_order ;
967
+ } ;
968
+
969
+ OutputArea . prototype . register_mime_type = function ( mimetype , append , options ) {
966
970
if ( mimetype && typeof ( append ) === 'function' ) {
967
971
OutputArea . output_types . push ( mimetype ) ;
968
- if ( safe ) OutputArea . safe_outputs [ mimetype ] = true ;
969
- OutputArea . display_order . unshift ( mimetype ) ;
972
+ if ( options . safe ) OutputArea . safe_outputs [ mimetype ] = true ;
973
+ OutputArea . display_order . splice ( options . index || 0 , 0 , mimetype ) ;
970
974
OutputArea . append_map [ mimetype ] = append ;
971
975
}
972
976
} ;
You can’t perform that action at this time.
0 commit comments