Skip to content

Commit

Permalink
[toc2] remove deprecated st var from template
Browse files Browse the repository at this point in the history
  • Loading branch information
jcb91 committed Jan 16, 2018
1 parent 47baf26 commit e02ca0c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/jupyter_contrib_nbextensions/templates/toc2.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,11 @@ $( document ).ready(function(){
title_sidebar: 'Contents',
}
var st={}; // some variables used in the script
st.oldTocHeight = undefined
// fire the main function with these parameters
require(['nbextensions/toc2/toc2'], function (toc2) {
toc2.table_of_contents(cfg, st);
toc2.table_of_contents(cfg);
});
});
</script>
{%- endblock header -%}

0 comments on commit e02ca0c

Please sign in to comment.