Skip to content

Commit 8ea9f98

Browse files
author
Jürgen Hasch
committed
Fix init_delay usage
1 parent 3c06be4 commit 8ea9f98

File tree

1 file changed

+5
-5
lines changed
  • src/jupyter_contrib_nbextensions/nbextensions/codefolding

1 file changed

+5
-5
lines changed

src/jupyter_contrib_nbextensions/nbextensions/codefolding/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ define([
2727
// define default config parameter values
2828
var params = {
2929
codefolding_hotkey : 'Alt-f',
30-
init_timeout : 1000
30+
init_delay : 1000
3131
};
3232

3333
// updates default params with any specified in the provided config data
@@ -244,9 +244,9 @@ define([
244244
require(['./firstline-fold', './magic-fold'], function () {
245245
if (Jupyter.notebook._fully_loaded) {
246246
setTimeout(function () {
247-
console.log('Codefolding: Wait for', params.init_timeout, 'ms');
247+
console.log('Codefolding: Wait for', params.init_delay, 'ms');
248248
initExistingCells();
249-
}, params.init_timeout);
249+
}, params.init_delay);
250250
}
251251
else {
252252
events.one('notebook_loaded.Notebook', initExistingCells);
@@ -256,9 +256,9 @@ define([
256256
else {
257257
activate_cm_folding(Jupyter.editor.codemirror);
258258
setTimeout(function () {
259-
console.log('Codefolding: Wait for', params.init_timeout, 'ms');
259+
console.log('Codefolding: Wait for', params.init_delay, 'ms');
260260
Jupyter.editor.codemirror.refresh();
261-
}, params.init_timeout);
261+
}, params.init_delay);
262262
}
263263
};
264264

0 commit comments

Comments
 (0)