fix caching of foldWidgets
This commit is contained in:
parent
a82c478d6d
commit
d9f3eff921
3 changed files with 5 additions and 3 deletions
|
|
@ -129,7 +129,8 @@ var Gutter = function(parentEl) {
|
|||
|
||||
if (foldWidgets) {
|
||||
var c = foldWidgets[i];
|
||||
if (!c)
|
||||
// check if cached value is invalidated and we need to recompute
|
||||
if (c == null)
|
||||
c = foldWidgets[i] = this.session.getFoldWidget(i);
|
||||
if (c)
|
||||
html.push(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue