Skip to content

Commit 1386654

Browse files
committed
Change to use jQuery's function for checking if a single element is visible.
To achieve the same comprehensive check of visibility as the original $el.is(":visible") code, we use jQuery's function for checking if a single element is visible. Which is a different method to $el.is(":visible") which looks for $el in the array of elements that match :visible from the entire DOM
1 parent a844574 commit 1386654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/view.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class View
4444
#
4545
# @return [Boolean]
4646
visible: ->
47-
@$el[0].style.display == "block"
47+
$.expr.filters.visible(@$el[0])
4848

4949
highlighted: ->
5050
@$el.find(".cur").length > 0

0 commit comments

Comments
 (0)