Skip to content

Commit e02ca0c

Browse files
committed
[toc2] remove deprecated st var from template
1 parent 47baf26 commit e02ca0c

File tree

1 file changed

+1
-5
lines changed
  • src/jupyter_contrib_nbextensions/templates

1 file changed

+1
-5
lines changed

src/jupyter_contrib_nbextensions/templates/toc2.tpl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,11 @@ $( document ).ready(function(){
4040
title_sidebar: 'Contents',
4141
}
4242
43-
var st={}; // some variables used in the script
44-
st.oldTocHeight = undefined
45-
4643
// fire the main function with these parameters
4744
require(['nbextensions/toc2/toc2'], function (toc2) {
48-
toc2.table_of_contents(cfg, st);
45+
toc2.table_of_contents(cfg);
4946
});
5047
});
5148
</script>
5249
53-
5450
{%- endblock header -%}

0 commit comments

Comments
 (0)