fix caching of foldWidgets

This commit is contained in:
nightwing 2011-12-01 23:19:42 +04:00
commit d9f3eff921
3 changed files with 5 additions and 3 deletions

View file

@ -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(