code folding cleanups

This commit is contained in:
Fabian Jakobs 2011-12-01 11:27:26 +01:00
commit f45b4ed783
2 changed files with 6 additions and 5 deletions

View file

@ -127,9 +127,9 @@ var Gutter = function(parentEl) {
if (foldWidgets) {
var c = foldWidgets[i];
if (c == null)
if (!c)
c = foldWidgets[i] = this.session.getFoldWidget(i);
if(c)
if (c)
html.push(
"<span class='ace_fold-widget ", c,
c == "start" && i == foldStart && i < fold.end.row ? " closed" : " open",