Skip to content

Commit 40f2bb7

Browse files
committed
Gadgets/Stdrev: Fix revision_map_to_visibility()
1 parent 4c6b316 commit 40f2bb7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gadgets/standard_revisions.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,9 +1660,7 @@ $(function() {
16601660
StandardRevisionPlugin.prototype.revision_map_to_visibility = function(revs) {
16611661
var visible = new VisibilityMap();
16621662
for (var i = 0; i < revs.length; ++i) {
1663-
for (var j = 0; j < revs[i].length; ++j) {
1664-
visible.add(revs[i][j]);
1665-
}
1663+
visible.combine_or(revs[i]);
16661664
}
16671665
return visible;
16681666
};

0 commit comments

Comments
 (0)